listPaperSetting.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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
  9. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  10. rel="stylesheet" type="text/css" />
  11. <script
  12. src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
  13. type="text/javascript"></script>
  14. <script
  15. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
  16. type="text/javascript"></script>
  17. <script
  18. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
  19. type="text/javascript"></script>
  20. <link href="${pageContext.request.contextPath}/main.css"
  21. rel="stylesheet" type="text/css" />
  22. <script type="text/javascript" src="/shares/js/constant.js"></script>
  23. <script type="text/javascript" src="/shares/js/common.js"></script>
  24. <script
  25. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js"
  26. type="text/javascript"></script>
  27. <script type="text/javascript">
  28. var grid = null;
  29. function loadPaperSettingList(params) {
  30. // var checkbox = false;
  31. // if ("${checkbox}" == 'false' || "${checkbox}" == '') {
  32. // checkbox = false;
  33. // } else {
  34. // checkbox = true;
  35. // }
  36. var columns = [
  37. // { display: '序号', name: 'sordernum', width: 100 },
  38. {
  39. display : '打印类型',
  40. name : 'p_print_type',
  41. width : 120,
  42. render : function(row) {
  43. if (row.p_print_type == "1") {
  44. return "条形码打印";
  45. } else {
  46. return "二维码打印";
  47. }
  48. }
  49. }, {
  50. display : '纸张宽度',
  51. name : 'p_paper_width',
  52. width : 120
  53. }, {
  54. display : '纸张高度',
  55. name : 'p_pager_height',
  56. width : 100
  57. }, {
  58. display : '打印开始X坐标',
  59. name : 'p_image_x',
  60. width : 100
  61. }, {
  62. display : '打印开始Y坐标',
  63. name : 'p_image_y',
  64. width : 100
  65. }, {
  66. display : '成像区域宽度',
  67. name : 'p_image_able_area_width',
  68. width : 100
  69. }, {
  70. display : '成像区域高度',
  71. name : 'p_image_able_area_height',
  72. width : 100
  73. }, {
  74. display : '条码图片宽度',
  75. name : 'p_code_image_width',
  76. width : 100
  77. }, {
  78. display : '条码图片高度',
  79. name : 'p_code_image_height',
  80. width : 100
  81. } ];
  82. // if ("${requestScope.lookup }" == "") {
  83. columns
  84. .push({
  85. display : '操作',
  86. isAllowHide : false,
  87. render : function(row) {
  88. var html = "";
  89. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(\'editPaperSetting\', \'修改设置信息\', \'${pageContext.request.contextPath }/paperSettingAction.do?task=toEdit&p_id='
  90. + row.p_id
  91. + '&tabid='
  92. + getCurrentTabId()
  93. + '\');\">编辑</a>&nbsp;';
  94. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(\'viewPaperSetting\', \'查看设置信息\', \'${pageContext.request.contextPath }/paperSettingAction.do?task=toView&p_id='
  95. + row.p_id
  96. + '&tabid='
  97. + getCurrentTabId()
  98. + '\');\">查看</a>&nbsp;';
  99. return html;
  100. }
  101. });
  102. // }
  103. grid = $("#maingrid4").ligerGrid(
  104. {
  105. columns : columns,
  106. pageSize : 20,
  107. url : 'paperSettingAction.do?task=getList&time='
  108. + new Date().getTime() + params,
  109. pageParmName : 'p', //页索引参数名,(提交给服务器)
  110. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  111. width : '99.9%',
  112. height : '99%',
  113. checkbox : false
  114. });
  115. $("#pageloading").hide();
  116. }
  117. $(function() {
  118. loadPaperSettingList();
  119. });
  120. function searchByKword() {
  121. var depot_num = document.getElementById("depot_num");//仓库编号
  122. var depot_name = document.getElementById("depot_name");//仓库编号
  123. var s = "";
  124. if (depot_num.value != "" && typeof (depot_num.value) != "undefined") {
  125. s += "&depot_num=" + encodeURI(encodeURI(depot_num.value));
  126. }
  127. if (depot_name.value != "" && typeof (depot_name.value) != "undefined") {
  128. s += "&depot_name=" + encodeURI(encodeURI(depot_name.value));
  129. }
  130. $(function() {
  131. loadPaperSettingList(s);
  132. });
  133. }
  134. function f_select() {
  135. var rows = grid.getCheckedRows();
  136. return rows;
  137. }
  138. </script>
  139. </head>
  140. <body>
  141. <%@ include file="/include/message.jsp"%>
  142. <div class="container">
  143. <!-- <div class="default_search" style="margin: 0;"> -->
  144. <!-- <ul class="list_search"> -->
  145. <!-- <li class="title">仓库编号:</li> -->
  146. <!-- <li class="text"><input type="text" name="depot_num" -->
  147. <!-- id="depot_num"></li> -->
  148. <!-- </ul> -->
  149. <!-- <ul class="list_search"> -->
  150. <!-- <li class="title">仓库名称:</li> -->
  151. <!-- <li class="text"><input type="text" name="depot_name" -->
  152. <!-- id="depot_name"></li> -->
  153. <!-- </ul> -->
  154. <!-- <ul> -->
  155. <!-- <li class="search-button"><input type="button" class='l-button' -->
  156. <!-- name="search" onclick="searchByKword()" value="查询" /></li> -->
  157. <!-- </ul> -->
  158. <!-- </div> -->
  159. <div style="overflow: hidden; clear: both;">
  160. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  161. </div>
  162. </div>
  163. </body>
  164. </html>