editDataDictionary.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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 src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
  51. <script src="/shares/js/common.js" type="text/javascript"></script>
  52. <script type="text/javascript" src="/shares/js/yw/ams/config/common.js"></script>
  53. <script type="text/javascript" src="/shares/js/yw/ams/config/editDataDictionary.js"></script>
  54. <style type="text/css">
  55. .l-table-edit-text {
  56. width: 100px;
  57. font-weight: bold;
  58. color: #cc000
  59. }
  60. .default-select {
  61. width: 250px;
  62. height: 22px;
  63. line-height: 22px;
  64. }
  65. .short-select {
  66. width: 250px;
  67. height: 22px;
  68. line-height: 22px;
  69. }
  70. .default-text {
  71. width: 250px;
  72. height: 22px;
  73. line-height: 22px
  74. }
  75. .short-text {
  76. width: 150px;
  77. line-height: 22px;
  78. height: 22px;
  79. }
  80. .l-text {
  81. width: 150px;
  82. line-height: 22px;
  83. height: 22px;
  84. }
  85. .text {
  86. height: 22px;
  87. line-height: 22px;
  88. margin-right: 10px;
  89. display: inline-block;
  90. margin-left: 1px
  91. }
  92. .title {
  93. font-size: 20px;
  94. font-weight: bold;
  95. padding-bottom: 20px;
  96. padding-left: 5px;
  97. border-bottom: 1px solid #ededed;
  98. vertical-align: middle;
  99. }
  100. .forum-container-2 tr {
  101. height: 20px;
  102. line-height: 20px
  103. }
  104. .forum-container-2 table {
  105. width: 100%;
  106. margin-top: 0px;
  107. margin-right: 0px;
  108. margin-left: 0px;
  109. }
  110. </style>
  111. <script type="text/javascript">
  112. var parentId = "${requestScope.dataDictionary.universalid}";
  113. var isValidEditorSelect = [{ value: 1, text: '是' }, { value: 0, text: '否'}];
  114. var isDefaultEditorSelect = [{ value: 0, text: '否' }, { value: 1, text: '是'}];
  115. <c:choose>
  116. <c:when test="${dataDictionary.type == 'U'}">
  117. var dnameEditor = { type: 'text' };
  118. var dvalueEditor = {type: 'text' };
  119. var dorderEditor = { type: 'int',minValue :0};
  120. var isDefaultEditor = { type: 'select', data: isDefaultEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  121. var isValidEditor = { type: 'select', data: isValidEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  122. </c:when>
  123. </c:choose>
  124. function getTypeText(type){
  125. if(type == "U"){
  126. return "普通";
  127. }else if(type == "S"){
  128. return "系统";
  129. }else if(type == "C"){
  130. return "内置";
  131. }else{
  132. return "未知";
  133. }
  134. }
  135. $(function() {
  136. $("#type").val(getTypeText($("#type").val()));
  137. <c:if test="${dataDictionary.type != 'S'}">
  138. searchChildList();
  139. </c:if>
  140. });
  141. </script>
  142. </head>
  143. <body>
  144. <div class="container-layout">
  145. <div class="form-button">
  146. <input type="button" class="l-button" value="保存" onclick="save()" />
  147. <input type="button" value="关闭" class="l-button"
  148. onclick="closeWindow();" />
  149. </div>
  150. <div class="forum-container-2">
  151. <table border="0" cellspacing="1" cellpadding="0"
  152. style="border: 1px solid #ededed; width: 100%; margin-top: 0px";margin-right: 0px; margin-left: 0px;">
  153. <thead>
  154. <tr>
  155. <th colspan="5">
  156. <div class="l-table-edit line">请填写以下标准基本信息</div>
  157. </th>
  158. </tr>
  159. </thead>
  160. <tr>
  161. <td class="l-table-edit-text" style="width: 89px;">标准名称<FONT
  162. COLOR="red">*</FONT>:
  163. </td>
  164. <td class="l-table-edit-td"><input type="hidden"
  165. name="universalid" id="universalid"
  166. value="${dataDictionary.universalid }"> <input type="text"
  167. class="default-text" name="dname" id="dname"
  168. value="${dataDictionary.dname }" disabled="disabled"
  169. readonly="readonly"> <label id="dnameMsg"></label></td>
  170. <td></td>
  171. <td class="l-table-edit-text" style="width: 89px;">摘要:</td>
  172. <td class="l-table-edit-td"><input type="text"
  173. class="default-text" name="remark" id="remark"
  174. value="${dataDictionary.remark }" disabled="disabled"
  175. readonly="readonly" /></td>
  176. </tr>
  177. <tr>
  178. <td class="l-table-edit-text" style="width: 89px;">设定值<FONT
  179. COLOR="red">*</FONT>:
  180. </td>
  181. <td class="l-table-edit-td"><input type="text"
  182. class="default-text" name="dvalue" id="dvalue"
  183. value="${dataDictionary.dvalue }"
  184. ${dataDictionary.type == 'S' ? '' : 'disabled'} /> <label
  185. id="dvalueMsg"></label></td>
  186. <td></td>
  187. <td class="l-table-edit-text" style="width: 89px;">类型:</td>
  188. <td class="l-table-edit-td"><input type="text"
  189. class="default-text" name="type" id="type"
  190. value="${dataDictionary.type }" disabled="disabled" /> <label
  191. id="dorderMsg"></label></td>
  192. </tr>
  193. </table>
  194. </div>
  195. <c:if test="${dataDictionary.type != 'S'}">
  196. <div class="forum-container-2">
  197. <table border="0" cellspacing="0" cellpadding="0">
  198. <thead>
  199. <tr>
  200. <th>标准项配置&nbsp;&nbsp;&nbsp;&nbsp; <input type="button"
  201. class="l-button" onclick="addNewRow()" value="新增标准项"
  202. style="font-weight: normal; width: 80px; margin-top: -3px" />
  203. </th>
  204. </tr>
  205. </thead>
  206. </table>
  207. </div>
  208. <div id="childDataDictionaryTable" style="margin: 0; clear: both"></div>
  209. </c:if>
  210. </div>
  211. </body>
  212. </html>