一、源码
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 οnclick="queryZc()">查询</button></td>
<td class="FieldButton"><button οnclick="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去掉---------具体原因待查?????????!!!!!!!!
本文发布于:2024-02-04 10:29:16,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170705101954764.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |