在jsp页面上添加了用户输入的查询框,根据输入框的时间,本页面的表格做替换<div>
<h3>订单管理</h3>
<div>
<div id="so">
<center>
<table class="gridtable">
<tr>
<th>選擇</th>
<th>客戶編號</th>
<th>訂 單 日 期</th>
<th>訂單類型</th>
<!-- <th>客戶PO號</th>
<th>付款方式</th>
<th>完成狀態</th>
<th>審核者 </th>
<th>幣  種</th>
<th>匯  率</th>
<th> 備  注 </th>-->
<!-- -------------------------So——Item -->
<th>訂單編號</th>
<th>產品編號</th>
<th>訂單序號</th>
<th>VSC品號</th>
<th>單 價 </th>
<th>訂單數量</th>
<th>需 求 日 期</th>
<th>出貨數量</th>
<th>退貨數量</th>
<th>客戶品號</th>
<th>單位</th>
<th>客戶編號</th>
<th>原幣單價</th>
<th>出 貨 日 期</th>
<th> 長 </th>
<th> 寬 </th>
<th> 高 </th>
</tr>
<s:iterator value="#request.soItemlist" id="st">
<tr class="solist">
<td align="center"><input type="checkbox" class="ck"/><s:property value="#st.YesOrNo"/></td>
<td align="center"><s:property value="#st.mcustno"/></td>
<td align="center"><s:property value="#st.orderDate"/></td>
<td align="center"><s:property value="#st.type"/></td>
<!-- <td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.custpono"/></td>
<td align="center"><s:property value="#st.payment"/></td>
<td align="center"><s:property value="#st.lookflag"/></td>
<td align="center"><s:property value="#st.audit"/></td>
<td align="center"><s:property value="#st.currency"/></td>
<td align="center"><s:property value="#st.exchange"/></td>
<td align="center"><s:property value="#st.re"/></td> -->
<td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.partno"/></td>
<td align="center"><s:property value="#st.itemno"/></td>
<td align="center"><s:property value="#st.vscNo"/></td>
<td align="center"><s:property value="#st.price"/></td>
<td align="center"><s:property value="#st.orderQty"/></td>
<td align="center"><s:property value="#st.sdate"/></td>
<td align="center" class="onclick"><s:property value="#st.shipQty"/></td>
<td align="center"><s:property value="#st.delQty"/></td>
<td align="center"><s:property value="#st.custpn"/></td>
<td align="center"><s:property value="#st.unit"/></td>
<td align="center"><s:property value="#st.custno"/></td>
<td align="center"><s:property value="#st.basprice"/></td>
<td align="center"><s:property value="#st.shipdate"/></td>
<td align="center"><s:property value="#st.udf54"/></td>
<td align="center"><s:property value="#st.udf55"/></td>
<td align="center"><s:property value="#st.udf56"/></td>
</tr>
</s:iterator>
这是前端后台Action:
public String getSo_Item(){
Map<String,String> condition = new HashMap<String,String>();
String orderdate=getRequest().getParameter("orderdate");
condition.put("CONDITION", "Order_date >="+"'"+orderdate+"'");
List<V_SoItem> soItemlist=GetSoItemService().selectSoItem(condition);
ServletActionContext.getRequest().setAttribute("soItemlist",soItemlist);
<h3>订单管理</h3>
<div>
<div id="so">
<center>
<table class="gridtable">
<tr>
<th>選擇</th>
<th>客戶編號</th>
<th>訂 單 日 期</th>
<th>訂單類型</th>
<!-- <th>客戶PO號</th>
<th>付款方式</th>
<th>完成狀態</th>
<th>審核者 </th>
<th>幣  種</th>
<th>匯  率</th>
<th> 備  注 </th>-->
<!-- -------------------------So——Item -->
<th>訂單編號</th>
<th>產品編號</th>
<th>訂單序號</th>
<th>VSC品號</th>
<th>單 價 </th>
<th>訂單數量</th>
<th>需 求 日 期</th>
<th>出貨數量</th>
<th>退貨數量</th>
<th>客戶品號</th>
<th>單位</th>
<th>客戶編號</th>
<th>原幣單價</th>
<th>出 貨 日 期</th>
<th> 長 </th>
<th> 寬 </th>
<th> 高 </th>
</tr>
<s:iterator value="#request.soItemlist" id="st">
<tr class="solist">
<td align="center"><input type="checkbox" class="ck"/><s:property value="#st.YesOrNo"/></td>
<td align="center"><s:property value="#st.mcustno"/></td>
<td align="center"><s:property value="#st.orderDate"/></td>
<td align="center"><s:property value="#st.type"/></td>
<!-- <td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.custpono"/></td>
<td align="center"><s:property value="#st.payment"/></td>
<td align="center"><s:property value="#st.lookflag"/></td>
<td align="center"><s:property value="#st.audit"/></td>
<td align="center"><s:property value="#st.currency"/></td>
<td align="center"><s:property value="#st.exchange"/></td>
<td align="center"><s:property value="#st.re"/></td> -->
<td align="center"><s:property value="#st.orderno"/></td>
<td align="center"><s:property value="#st.partno"/></td>
<td align="center"><s:property value="#st.itemno"/></td>
<td align="center"><s:property value="#st.vscNo"/></td>
<td align="center"><s:property value="#st.price"/></td>
<td align="center"><s:property value="#st.orderQty"/></td>
<td align="center"><s:property value="#st.sdate"/></td>
<td align="center" class="onclick"><s:property value="#st.shipQty"/></td>
<td align="center"><s:property value="#st.delQty"/></td>
<td align="center"><s:property value="#st.custpn"/></td>
<td align="center"><s:property value="#st.unit"/></td>
<td align="center"><s:property value="#st.custno"/></td>
<td align="center"><s:property value="#st.basprice"/></td>
<td align="center"><s:property value="#st.shipdate"/></td>
<td align="center"><s:property value="#st.udf54"/></td>
<td align="center"><s:property value="#st.udf55"/></td>
<td align="center"><s:property value="#st.udf56"/></td>
</tr>
</s:iterator>
这是前端后台Action:
public String getSo_Item(){
Map<String,String> condition = new HashMap<String,String>();
String orderdate=getRequest().getParameter("orderdate");
condition.put("CONDITION", "Order_date >="+"'"+orderdate+"'");
List<V_SoItem> soItemlist=GetSoItemService().selectSoItem(condition);
ServletActionContext.getRequest().setAttribute("soItemlist",soItemlist);
解决方案 »
- Myeclipse的问题
- hibernate 插入大量数据的 效率
- DW中做好的页面,拷贝到Myeclipse里 css样式没效果, 菜niao问题求助
- 问个很弱的问题,就是用户注册页面上的text,怎么与保存信息的一一对应
- 请教JSP页面动态新闻点击率问题
- 帮忙啊:有没有在网页中可以调用的扫描控件,柯达的那个控件在网页中调不了啊
- 提示上传成功 但数据没有插入到数据库(加上红色标记那句出错)
- 请教有关tomcat配置的问题?在线等待
- 汉字问题!
- 用hssf对excel文件进行写操作时,如何解决中文问题?
- 怎么在js中获取HTML中foreach中的属性值,急急急,求大牛们的帮助,动态获取属性值
- JDK发布WebService问题
或者使用jquery局部更新表格,个人更倾向后一种做法。