一、源码
1、jsp:
<%--添加查询功能start --%>
<next:Panel>
<next:Html>
<form id="queryForm" class="L5form">
<fieldset style="width: 100%">
<legend>查询条件</legend>
<table width="100%">
<tr>
<td class="FieldLabel"><label>选择设备类型:</label></td>
<td class="FieldInput"><input type="text" id="shebeileixing" title="设备类型"></td>
<td class="FieldLabel"><label>选择购置日期:</label></td>
<td class="FieldInput"><input type="text" id="gouzhiriqi"></td>
</tr>
<tr>
<td class="FieldLabel"><label>选择出厂编号:</label></td>
<td class="FieldInput"><input type="text" id="chuchangbianhao"></td>
<td class="FieldLabel"><label>选择责任人:</label></td>
<td class="FieldInput"><input type="text" id="zerenren"></td>
<td class="FieldButton"><button onclick="queryZc()">查询</button></td>
<td class="FieldButton"><button onclick="resetZc()">重置</button></td>
</tr>
</table>
</fieldset>
</form>
</next:Html>
</next:Panel>
<%--添加查询功能end --%>
2、js:
///根据查询条件进行资产查询
function queryZc(){
//设置参数值,用@分开的两段:前面是参数名,后面是比较符号
zcglDS.setParameter("SHEBEILEIXING@like",getParam("shebeileixing"));
zcglDS.setParameter("GOUZHIRIQI@like",getParam("gouzhiriqi"));
zcglDS.setParameter("CHUCHANGBIANHAO@like",getParam("chuchangbianhao"));
zcglDS.setParameter("ZERENREN@like",getParam("zerenren"));
//通过对象调用LsPlanCommand中的queryPlan方法,执行计划查询功能
zcglDS.load();
}
二、解决方法:
将form去掉---------具体原因待查?????????!!!!!!!!