editPaperSetting.jsp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. <link href="${pageContext.request.contextPath}/main.css"
  18. rel="stylesheet" type="text/css" />
  19. <script type="text/javascript" src="/shares/js/constant.js"></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
  22. <!-- <script -->
  23. <%-- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" --%>
  24. <!-- type="text/javascript"></script> -->
  25. <script type="text/javascript">
  26. $(function() {
  27. $("#p_paper_width").ligerTextBox({number:true,'float':'left'});
  28. $("#p_pager_height").ligerTextBox({number:true,'float':'left'});
  29. $("#p_image_x").ligerTextBox({number:true,'float':'left'});
  30. $("#p_image_y").ligerTextBox({number:true,'float':'left'});
  31. $("#p_image_able_area_width").ligerTextBox({number:true,'float':'left'});
  32. $("#p_image_able_area_height").ligerTextBox({number:true,'float':'left'});
  33. $("#p_code_image_width").ligerTextBox({number:true,'float':'left'});
  34. $("#p_code_image_height").ligerTextBox({number:true,'float':'left'});
  35. });
  36. function checkForm() {
  37. var rs = $.validate({
  38. name : "p_paper_width",
  39. model : [ {
  40. type : "require",
  41. msg : "纸张宽度不能为空!",
  42. }]
  43. });
  44. rs = $.validate({
  45. name : "p_pager_height",
  46. model : [ {
  47. type : "require",
  48. msg : "纸张高度不能为空!",
  49. }]
  50. })&& rs;
  51. rs = $.validate({
  52. name : "p_image_x",
  53. model : [ {
  54. type : "require",
  55. msg : "打印开始X坐标不能为空!",
  56. }]
  57. }) && rs;
  58. rs = $.validate({
  59. name : "p_image_y",
  60. model : [ {
  61. type : "require",
  62. msg : "打印开始Y坐标不能为空!"
  63. }]
  64. }) && rs;
  65. rs = $.validate({
  66. name : "p_image_able_area_width",
  67. model : [ {
  68. type : "require",
  69. msg : "可成像区域宽度不能为空!"
  70. }]
  71. }) && rs;
  72. rs = $.validate({
  73. name : "p_image_able_area_height",
  74. model : [ {
  75. type : "require",
  76. msg : "可成像区域高度不能为空!"
  77. }]
  78. }) && rs;
  79. rs = $.validate({
  80. name : "p_code_image_width",
  81. model : [ {
  82. type : "require",
  83. msg : "条码图像宽度不能为空!"
  84. }]
  85. }) && rs;
  86. rs = $.validate({
  87. name : "p_code_image_height",
  88. model : [ {
  89. type : "require",
  90. msg : "条码图像高度不能为空!"
  91. }]
  92. }) && rs;
  93. if (rs) {
  94. return true;
  95. }else{
  96. return false;
  97. }
  98. }
  99. </script>
  100. </head>
  101. <body>
  102. <%@ include file="/include/message.jsp"%>
  103. <form action="paperSettingAction.do" method="post" id="theForm" name="theForm" onsubmit="return checkForm();">
  104. <div id="title" class="form-button">
  105. <input type="submit" class="l-button" value="保存" />
  106. </div>
  107. <div class="container-layout">
  108. <div class="forum-container">
  109. <center>
  110. <table class="l-table-edit line">
  111. <tr>
  112. <th colspan="4">
  113. <c:if test="${requestScope.paperSetting.p_print_type == '1' }">条形码</c:if><c:if test="${requestScope.paperSetting.p_print_type == '2' }">二维码</c:if>打印设置
  114. </th>
  115. </tr>
  116. <tr>
  117. <td class="l-table-edit-text" width="15%">纸张宽度(毫米)<FONT COLOR="red">*</FONT> :
  118. </td>
  119. <td class="l-table-edit-td" width="35%">
  120. <input type="text" id="p_paper_width" name="p_paper_width" value="${requestScope.paperSetting.p_paper_width }" style="float: left;"><div style="float: none;"></div>
  121. </td>
  122. <td class="l-table-edit-text">纸张高度(毫米)<FONT COLOR="red">*</FONT>:
  123. </td>
  124. <td class="l-table-edit-td" width="35%">
  125. <input type="text" id="p_pager_height" name="p_pager_height" value="${requestScope.paperSetting.p_pager_height }" />
  126. </td>
  127. </tr>
  128. <tr>
  129. <td class="l-table-edit-text">打印开始X坐标(毫米)<FONT COLOR="red">*</FONT>:
  130. </td>
  131. <td class="l-table-edit-td">
  132. <input type="text" id="p_image_x" name="p_image_x" value="${requestScope.paperSetting.p_image_x }" />
  133. </td>
  134. <td class="l-table-edit-text">打印开始Y坐标(毫米)<FONT COLOR="red">*</FONT>:</td>
  135. <td class="l-table-edit-td">
  136. <input type="text" name="p_image_y" id="p_image_y" value="${requestScope.paperSetting.p_image_y }">
  137. </td>
  138. </tr>
  139. <tr>
  140. <td class="l-table-edit-text">可成像区域宽度(毫米)<FONT COLOR="red">*</FONT> :</td>
  141. <td class="l-table-edit-td">
  142. <input type="text" name="p_image_able_area_width" id="p_image_able_area_width" value="${requestScope.paperSetting.p_image_able_area_width }">
  143. </td>
  144. <td class="l-table-edit-text">可成像区域高度(毫米)<FONT COLOR="red">*</FONT> :</td>
  145. <td class="l-table-edit-td">
  146. <input type="text" name="p_image_able_area_height" id="p_image_able_area_height" value="${requestScope.paperSetting.p_image_able_area_height }">
  147. </td>
  148. </tr>
  149. <tr>
  150. <td class="l-table-edit-text">条码图像宽度(像素)<FONT COLOR="red">*</FONT>:</td>
  151. <td class="l-table-edit-td">
  152. <input id="p_code_image_width" name="p_code_image_width" value="${requestScope.paperSetting.p_code_image_width }"></input>
  153. </td>
  154. <td class="l-table-edit-text">条码图像高度(像素)<FONT COLOR="red">*</FONT>:</td>
  155. <td class="l-table-edit-td">
  156. <input id="p_code_image_height" name="p_code_image_height" value="${requestScope.paperSetting.p_code_image_height }"></input>
  157. </td>
  158. </tr>
  159. <!-- <tr> -->
  160. <!-- <td class="l-table-edit-text">备注:</td> -->
  161. <!-- <td colspan="3"><font color="blue">页面大小以点为计量单位,1点为1英寸的1/72,1英寸为25.4毫米。</font></td> -->
  162. <!-- </tr> -->
  163. </table>
  164. <input type="hidden" id="p_id" name="p_id" value="${requestScope.paperSetting.p_id }">
  165. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  166. <input type="hidden" id="task" name="task" value="doEditPaperSetting">
  167. </center>
  168. </div>
  169. </div>
  170. </form>
  171. </body>
  172. </html>