editDevMaintain.jsp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <script src="/shares/js/jquery-1.6.4.min.js" type="text/javascript"></script>
  9. <script type="text/javascript" src="/shares/js/constant.js"></script>
  10. <script type="text/javascript" src="/shares/js/common.js"></script>
  11. <script type="text/javascript" src="/shares/js/file.js"></script>
  12. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  13. <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
  14. <link href="./liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  15. rel="stylesheet" type="text/css"></link>
  16. <script src="./liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  17. <script src="./liger/lib/ligerUI/js/plugins/ligerLayout.js"
  18. type="text/javascript"></script>
  19. <script
  20. src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDateEditor.js"
  21. 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" src="/shares/js/yw/erp/deviceLookup.js"></script>
  26. <script type="text/javascript">
  27. $(function() {
  28. loadTypeTree("selectbutton1", {
  29. type : "singleuser",
  30. backId : "m_dev_main_prs",
  31. backName : "m_dev_main_prs_name",
  32. tab : 1
  33. });
  34. $("#m_start_time").ligerDateEditor({
  35. labelAlign : 'left',
  36. width : 150,
  37. height : 21,
  38. initValue : '${requestScope.devMaintain.m_start_time }'
  39. });
  40. $("#m_end_time").ligerDateEditor({
  41. labelAlign : 'left',
  42. width : 150,
  43. height : 21,
  44. initValue : '${requestScope.devMaintain.m_end_time }'
  45. });
  46. });
  47. function checkForm(){
  48. var rs = $.validate({
  49. name : "m_dev_code",
  50. model : [ {
  51. type : "require",
  52. msg : "设备编号不能为空!"
  53. }, {
  54. type : "len",
  55. min : 1,
  56. max : 20,
  57. msg : "设备编号长度不能超过20个字!"
  58. } ]
  59. });
  60. rs = $.validate({
  61. name : "m_dev_name",
  62. model : [ {
  63. type : "require",
  64. msg : "设备名称不能为空!"
  65. } ]
  66. }) && rs;
  67. // rs = $.validate({
  68. // name : "dev_stock_date",
  69. // model : [ {
  70. // type : "require",
  71. // msg : "入库日期不能为空!"
  72. // } ]
  73. // }) && rs;
  74. if (rs) {
  75. return true;
  76. }else{
  77. return false;
  78. }
  79. }
  80. function refresh(obj){
  81. if(obj == "1"){
  82. parent.location.reload();
  83. }
  84. }
  85. </script>
  86. <style type="text/css">
  87. .file-style{
  88. width: 550px;
  89. }
  90. .file-style input[type='file'] {
  91. width:385px ;
  92. height:24px;
  93. line-height:22px;
  94. vertical-align: bottom;
  95. background-color: #fff;
  96. border: 1px solid #cccccc;
  97. margin-top: 2px;
  98. margin-bottom: 2px;
  99. }
  100. </style>
  101. </head>
  102. <body>
  103. <%@ include file="/include/message.jsp"%>
  104. <form action="devMaintainAction.do" method="post" onsubmit="return checkForm()">
  105. <div id="title" class="form-button">
  106. <input type="submit" class="l-button" value="保存" />
  107. </div>
  108. <div class="container-layout">
  109. <div class="forum-container">
  110. <center>
  111. <table class="l-table-edit line">
  112. <tr>
  113. <th colspan="4">
  114. <c:if test="${devMaintain.m_id == '' or devMaintain.m_id == null }">添加设备维修信息</c:if>
  115. <c:if test="${devMaintain.m_id != null }">编辑设备维修信息</c:if>
  116. </th>
  117. </tr>
  118. <tr>
  119. <td class="l-table-edit-text">设备编号<FONT COLOR="red">*</FONT>:</td>
  120. <td class="l-table-edit-td" width="30%">
  121. <input type="hidden" id="m_dev_id" name="m_dev_id" value="${requestScope.devMaintain.m_dev_id }" readonly="readonly" />
  122. <input type="text" id="m_dev_code" name="m_dev_code" value="${requestScope.devMaintain.m_dev_code }" readonly="readonly" />
  123. <input type="button" class="l-button" value="选择" onclick="chooseDevice({dev_id:'m_dev_id',dev_code:'m_dev_code',dev_name:'m_dev_name',dev_type:'m_dev_type',dev_type_name:'m_dev_type_name'})" />
  124. </td>
  125. <td class="l-table-edit-text">设备名称<FONT COLOR="red">*</FONT>:</td>
  126. <td class="l-table-edit-td">
  127. <input type="text" id="m_dev_name" name="m_dev_name" value="${requestScope.devMaintain.m_dev_name }" readonly="readonly" />
  128. </td>
  129. </tr>
  130. <tr>
  131. <td class="l-table-edit-text">设备类别<FONT COLOR="red">*</FONT>:</td>
  132. <td class="l-table-edit-td" colspan="3">
  133. <input type="hidden" id="m_dev_type" name="m_dev_type" value="${requestScope.devMaintain.m_dev_type }" readonly="readonly" />
  134. <input type="text" id="m_dev_type_name" name="m_dev_type_name" value="${requestScope.devMaintain.m_dev_type_name }" readonly="readonly" />
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="l-table-edit-text">故障现象:</td>
  139. <td class="l-table-edit-td" colspan="3">
  140. <textarea rows="5" cols="100" id="m_bad_phe" name="m_bad_phe">${requestScope.devMaintain.m_bad_phe }</textarea>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td class="l-table-edit-text">维修类型</td>
  145. <td class="l-table-edit-td">
  146. <input type="text" id="m_dev_main_type" name="m_dev_main_type" value="${requestScope.devMaintain.m_dev_main_type }">
  147. </td>
  148. <td class="l-table-edit-text">开始时间</td>
  149. <td class="l-table-edit-td">
  150. <input type="text" id="m_start_time" name="m_start_time" value="${requestScope.devMaintain.m_start_time }" />
  151. </td>
  152. </tr>
  153. <tr>
  154. <td class="l-table-edit-text">维修工时:</td>
  155. <td class="l-table-edit-td">
  156. <input type="text" id="m_dev_main_hour" name="m_dev_main_hour" value="${requestScope.devMaintain.m_dev_main_hour }" />
  157. <td class="l-table-edit-text">结束时间:</td>
  158. <td class="l-table-edit-td">
  159. <input type="text" id="m_end_time" name="m_end_time" value="${requestScope.devMaintain.m_end_time }" />
  160. </td>
  161. </tr>
  162. <tr>
  163. <td class="l-table-edit-text">维修费用:</td>
  164. <td class="l-table-edit-td">
  165. <input type="text" id="m_dev_main_cost" name="m_dev_main_cost" value="${requestScope.devMaintain.m_dev_main_cost }" />
  166. </td>
  167. <td class="l-table-edit-text">维修人:</td>
  168. <td class="l-table-edit-td">
  169. <input type="text" id="m_dev_main_prs_name" name="m_dev_main_prs_name" readonly="readonly" value="${requestScope.devMaintain.m_dev_main_prs_name }" />
  170. <input type="hidden" name="m_dev_main_prs" id="m_dev_main_prs" readonly="readonly" value="${requestScope.devMaintain.m_dev_main_prs }" />
  171. <input type="button" class="l-button" id="selectbutton1" value="选择人员" />
  172. </td>
  173. </tr>
  174. <tr>
  175. <td class="l-table-edit-text">完成情况:</td>
  176. <td class="l-table-edit-td" colspan="3">
  177. <input type="text" id=m_finishmemo name="m_finishmemo" value="${requestScope.devMaintain.m_finishmemo }" />
  178. </td>
  179. </tr>
  180. <tr>
  181. <td class="l-table-edit-text">备注:</td>
  182. <td class="l-table-edit-td" colspan="3">
  183. <textarea rows="5" cols="100" id="m_remark" name="m_remark">${requestScope.devMaintain.m_remark }</textarea>
  184. </td>
  185. </tr>
  186. </table>
  187. <input type="hidden" id="m_id" name="m_id" value="${requestScope.devMaintain.m_id }" />
  188. <input type="hidden" id="task" name="task" value="doEditDevMaintain" />
  189. <input type="hidden" id="tabid" name="tabid" value="${requestScope.tabid}" />
  190. </center>
  191. </div>
  192. </div>
  193. </form>
  194. </body>
  195. </html>