你在 <form> 里设置 两个field,名称在sql定义里引用,就行了。如下所示:
-----------------------------
web 表单写法:
-----------------------------
<form action='reportviewer?file=a.xml'>
<input name='beginDate'/>
<input name='endDate'/>
<form>
-----------------------------
设计器中 sql写法:
-----------------------------
and cb_birthdate >='${beginDate}' and cb_birthdate<='${endDate}' and hd_belongunit is not null
and hd_belongunit=un_id
and un_cityid = '469022000000'
and hd_inputday-cb_birthdate >=30