listCodeRule.jsp 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: 'rule_code', width: 150 },
  21. { display: '规则名称', name: 'rule_name', width: 250 },
  22. { display: '规则公式', name: 'rule_exp_show', width: 300 },
  23. {
  24. display: '操作', isAllowHide: false, width: 150,
  25. render: function (row)
  26. {
  27. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改编码规则\', \'${pageContext.request.contextPath }/erpCodeRuleAction.do?task=toEdit&rule_id='
  28. + row.universalid + '&tabid='+getCurrentTabId()+'\');\">编辑</a>&nbsp;';
  29. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看编码规则\', \'${pageContext.request.contextPath }/erpCodeRuleAction.do?task=info&rule_id='
  30. + row.universalid + '&tabid='+getCurrentTabId()+'\');\">查看</a>&nbsp;';
  31. return html;
  32. }
  33. }
  34. ],
  35. pageSize:20,
  36. url: 'erpCodeRuleAction.do?task=list&time=' + new Date().getTime(),
  37. parms: [{name: "rule_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: "rule_name", value: encodeURI($("#rule_name").val())}]);
  48. grid.loadData(true);
  49. }
  50. function searchAll() {
  51. $("#rule_name").val("");
  52. searchByKword();
  53. }
  54. </script>
  55. </head>
  56. <body>
  57. <div class="container-layout">
  58. <div id="title" class="form-button">
  59. <%--
  60. <input type="button" class="l-button" style="width: 100px;" value="创建编码规则" onclick="window.parent.f_addTab(new Date().getTime(), '创建编码规则', '${pageContext.request.contextPath }/erpCodeRuleAction.do?task=toCreate&tabid=' + getCurrentTabId());"/>
  61. --%>
  62. <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
  63. </div>
  64. <div class="default_search" style="margin: 0; padding:0; width: 99.7%;">
  65. <ul class="list_search">
  66. <li class="title" style="width: 90px;">规则名称:</li>
  67. <li class="text" >
  68. <input type="text" id="rule_name" name="rule_name" value="" style="width: 130px;">
  69. </li>
  70. </ul>
  71. <ul>
  72. <li class="search-button">
  73. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  74. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  75. </li>
  76. </ul>
  77. </div><div style="clear: both;">
  78. <div id="maingrid4" style="margin:0; padding:0"></div>
  79. </div>
  80. <div style="display:none;">
  81. <!-- g data total ttt -->
  82. </div>
  83. </div>
  84. <%@ include file="/include/message.jsp"%>
  85. </body>
  86. </html>