listOrderFormSetting.jsp 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>单据编号列表</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  11. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript">
  15. var grid = null;
  16. var win1 = null;
  17. $(function () {
  18. grid = $("#maingrid4").ligerGrid({
  19. columns: [
  20. { display: '单据编号名称', name: 'order_form_name', width: 120 },
  21. { display: '备注', name: 'v_remark', width: 150 },
  22. // { display: '所属公司', name: 'groupname', width: 100},
  23. {
  24. display: '操作', isAllowHide: false,
  25. render: function (row)
  26. {
  27. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改单据编号\', \'${pageContext.request.contextPath }/orderFormSettingAction.do?task=toEdit&order_form_id='
  28. + row.order_form_id + '&tabid='+getCurrentTabId()+'\');\">编辑</a>&nbsp;';
  29. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看单据编号\', \'${pageContext.request.contextPath }/orderFormSettingAction.do?task=info&order_form_id='
  30. + row.order_form_id + '&tabid='+getCurrentTabId()+'\');\">查看</a>&nbsp;';
  31. return html;
  32. }
  33. }
  34. ],
  35. pageSize:20,
  36. url: 'orderFormSettingAction.do?task=list&time=' + new Date().getTime(),
  37. parms: [{name: "order_form_name", value: ""}],
  38. pageParmName: 'p', //页索引参数名,(提交给服务器)
  39. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  40. width: '99.6%',
  41. height: '99%',//getParentHeight()-67,
  42. onError: function(){alert("数据加载失败,请刷新页面!");}
  43. });
  44. $("#pageloading").hide();
  45. });
  46. function searchByKword(){
  47. grid._setParms([{name: "order_form_name", value: encodeURI($("#order_form_name").val())}]);
  48. grid.loadData(true);
  49. }
  50. function searchAll() {
  51. $("#order_form_name").val("");
  52. searchByKword();
  53. }
  54. </script>
  55. </head>
  56. <body>
  57. <div class="container-layout">
  58. <div id="title" class="form-button">
  59. <%-- <input type="button" class="l-button" style="width: 100px;" value="创建单据编号" onclick="window.parent.f_addTab(new Date().getTime(), '创建表单枚举', '${pageContext.request.contextPath }/orderFormSettingAction.do?task=toCreate&tabid=' + getCurrentTabId());"/> --%>
  60. <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
  61. </div>
  62. <div class="default_search" style="margin: 0; padding:0; width: 99.7%;">
  63. <ul class="list_search">
  64. <li class="title" style="width: 100px;">单据编号名称:</li>
  65. <li class="text" style="width: 100px;">
  66. <input type="text" id="order_form_name" name="order_form_name" value="" style="width: 130px;">
  67. </li>
  68. </ul>
  69. <ul>
  70. <li class="search-button">
  71. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  72. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  73. </li>
  74. </ul>
  75. </div><div style="clear: both;">
  76. <div id="maingrid4" style="margin:0; padding:0"></div>
  77. </div>
  78. <div style="display:none;">
  79. <!-- g data total ttt -->
  80. </div>
  81. </div>
  82. <%@ include file="/include/message.jsp"%>
  83. </body>
  84. </html>