editDataDictionary.jsp 6.9 KB

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