editDataDictionary.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  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. <link href="/shares/xheditor/xheditor-1.1.14/demos/common.css"
  12. rel="stylesheet" type="text/css" media="screen" />
  13. <link
  14. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/Gray/css/form.css"
  15. rel="stylesheet" type="text/css" />
  16. <link href="/shares/css/yw/tms/task.css" rel="stylesheet"
  17. type="text/css" />
  18. <link href="${pageContext.request.contextPath }/main.css"
  19. rel="stylesheet" type="text/css" />
  20. <script
  21. src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
  22. type="text/javascript"></script>
  23. <script
  24. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
  25. type="text/javascript"></script>
  26. <script
  27. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
  28. type="text/javascript"></script>
  29. <script
  30. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js"
  31. type="text/javascript"></script>
  32. <script
  33. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js"
  34. type="text/javascript"></script>
  35. <script
  36. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js"
  37. type="text/javascript"></script>
  38. <script
  39. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js"
  40. type="text/javascript"></script>
  41. <script
  42. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js"
  43. type="text/javascript"></script>
  44. <script
  45. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js"
  46. type="text/javascript"></script>
  47. <script
  48. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTextBox.js"
  49. type="text/javascript"></script>
  50. <script
  51. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js"
  52. type="text/javascript"></script>
  53. <script src="/shares/js/common.js" type="text/javascript"></script>
  54. <script type="text/javascript" src="/shares/js/yw/hr/system/common.js"></script>
  55. <script type="text/javascript"
  56. src="/shares/js/yw/hr/system/editDataDictionary.js"></script>
  57. <style type="text/css">
  58. .l-table-edit-text {
  59. width: 100px;
  60. font-weight: bold;
  61. color: #cc000
  62. }
  63. .default-select {
  64. width: 250px;
  65. height: 22px;
  66. line-height: 22px;
  67. }
  68. .short-select {
  69. width: 250px;
  70. height: 22px;
  71. line-height: 22px;
  72. }
  73. .default-text {
  74. width: 250px;
  75. height: 22px;
  76. line-height: 22px
  77. }
  78. .short-text {
  79. width: 150px;
  80. line-height: 22px;
  81. height: 22px;
  82. }
  83. .l-text {
  84. width: 150px;
  85. line-height: 22px;
  86. height: 22px;
  87. }
  88. .text {
  89. height: 22px;
  90. line-height: 22px;
  91. margin-right: 10px;
  92. display: inline-block;
  93. margin-left: 1px
  94. }
  95. .title {
  96. font-size: 20px;
  97. font-weight: bold;
  98. padding-bottom: 20px;
  99. padding-left: 5px;
  100. border-bottom: 1px solid #ededed;
  101. vertical-align: middle;
  102. }
  103. .forum-container-2 tr {
  104. height: 20px;
  105. line-height: 20px
  106. }
  107. .forum-container-2 table {
  108. width: 100%;
  109. margin-top: 0px;
  110. margin-right: 0px;
  111. margin-left: 0px;
  112. }
  113. </style>
  114. <script type="text/javascript">
  115. var parentId = "${requestScope.dataDictionary.universalid}";
  116. var isValidEditorSelect = [{ value: 1, text: '是' }, { value: 0, text: '否'}];
  117. var isDefaultEditorSelect = [{ value: 0, text: '否' }, { value: 1, text: '是'}];
  118. <c:choose>
  119. <c:when test="${dataDictionary.type == 'U'}">
  120. var dnameEditor = { type: 'text' };
  121. var dvalueEditor = {type: 'text' };
  122. var dorderEditor = { type: 'int',minValue :0};
  123. var isDefaultEditor = { type: 'select', data: isDefaultEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  124. var isValidEditor = { type: 'select', data: isValidEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  125. </c:when>
  126. </c:choose>
  127. function getTypeText(type){
  128. if(type == "U"){
  129. return "普通";
  130. }else if(type == "S"){
  131. return "系统";
  132. }else if(type == "C"){
  133. return "内置";
  134. }else{
  135. return "未知";
  136. }
  137. }
  138. $(function() {
  139. $("#type").val(getTypeText($("#type").val()));
  140. <c:if test="${dataDictionary.type != 'S'}">
  141. searchChildList();
  142. </c:if>
  143. });
  144. </script>
  145. </head>
  146. <body>
  147. <div class="container-layout">
  148. <div class="form-button">
  149. <input type="button" class="l-button" value="保存" onclick="save()" />
  150. <input type="button" value="关闭" class="l-button"
  151. onclick="closeWindow();" />
  152. </div>
  153. <div class="forum-container-2">
  154. <table border="0" cellspacing="1" cellpadding="0"
  155. style="border: 1px solid #ededed; width: 100%; margin-top: 0px";margin-right: 0px; margin-left: 0px;">
  156. <thead>
  157. <tr>
  158. <th colspan="5">
  159. <div class="l-table-edit line">请填写以下标准基本信息</div>
  160. </th>
  161. </tr>
  162. </thead>
  163. <tr>
  164. <td class="l-table-edit-text" style="width: 89px;">标准名称<FONT
  165. COLOR="red">*</FONT>:
  166. </td>
  167. <td class="l-table-edit-td"><input type="hidden"
  168. name="universalid" id="universalid"
  169. value="${dataDictionary.universalid }"> <input type="text"
  170. class="default-text" name="dname" id="dname"
  171. value="${dataDictionary.dname }" disabled="disabled"
  172. readonly="readonly"> <label id="dnameMsg"></label></td>
  173. <td></td>
  174. <td class="l-table-edit-text" style="width: 89px;">摘要:</td>
  175. <td class="l-table-edit-td"><input type="text"
  176. class="default-text" name="remark" id="remark"
  177. value="${dataDictionary.remark }" disabled="disabled"
  178. readonly="readonly" /></td>
  179. </tr>
  180. <tr>
  181. <td class="l-table-edit-text" style="width: 89px;">设定值<FONT
  182. COLOR="red">*</FONT>:
  183. </td>
  184. <td class="l-table-edit-td"><input type="text"
  185. class="default-text" name="dvalue" id="dvalue"
  186. value="${dataDictionary.dvalue }"
  187. ${dataDictionary.type == 'S' ? '' : 'disabled'} /> <label
  188. id="dvalueMsg"></label></td>
  189. <td></td>
  190. <td class="l-table-edit-text" style="width: 89px;">类型:</td>
  191. <td class="l-table-edit-td"><input type="text"
  192. class="default-text" name="type" id="type"
  193. value="${dataDictionary.type }" disabled="disabled" /> <label
  194. id="dorderMsg"></label></td>
  195. </tr>
  196. </table>
  197. </div>
  198. <c:if test="${dataDictionary.type != 'S'}">
  199. <div class="forum-container-2">
  200. <table border="0" cellspacing="0" cellpadding="0">
  201. <thead>
  202. <tr>
  203. <th>标准项配置&nbsp;&nbsp;&nbsp;&nbsp; <input type="button"
  204. class="l-button" onclick="addNewRow()" value="新增标准项"
  205. style="font-weight: normal; width: 80px; margin-top: -3px" />
  206. </th>
  207. </tr>
  208. </thead>
  209. </table>
  210. </div>
  211. <div id="childDataDictionaryTable" style="margin: 0; clear: both"></div>
  212. </c:if>
  213. </div>
  214. </body>
  215. </html>