editDataDictionary.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  9. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="/shares/xheditor/xheditor-1.1.14/demos/common.css" rel="stylesheet" type="text/css" media="screen" />
  11. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/Gray/css/form.css" rel="stylesheet" type="text/css" />
  12. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
  19. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  20. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
  21. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
  22. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
  23. <script src="/shares/js/common.js" type="text/javascript"></script>
  24. <script type="text/javascript" src="/shares/js/yw/master1_asset/asset-common.js"></script>
  25. <script type="text/javascript" src="/shares/js/yw/master1_asset/editDataDictionary.js"></script>
  26. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  27. <script type="text/javascript">
  28. var parentId = "${requestScope.dataDictionary.universalid}";
  29. var isValidEditorSelect = [{ value: 1, text: '是' }, { value: 0, text: '否'}];
  30. var isDefaultEditorSelect = [{ value: 0, text: '否' }, { value: 1, text: '是'}];
  31. <c:choose>
  32. <c:when test="${dataDictionary.type == 'U'}">
  33. var dnameEditor = { type: 'text' };
  34. var dvalueEditor = {type: 'text' };
  35. var dorderEditor = { type: 'int',minValue :0};
  36. var isDefaultEditor = { type: 'select', data: isDefaultEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  37. var isValidEditor = { type: 'select', data: isValidEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
  38. </c:when>
  39. </c:choose>
  40. function getTypeText(type){
  41. if(type == "U"){
  42. return "普通";
  43. }else if(type == "S"){
  44. return "系统";
  45. }else if(type == "C"){
  46. return "内置";
  47. }else{
  48. return "未知";
  49. }
  50. }
  51. $(function() {
  52. $("#type").val(getTypeText($("#type").val()));
  53. <c:if test="${dataDictionary.type != 'S'}">
  54. searchChildList();
  55. </c:if>
  56. });
  57. </script>
  58. </head>
  59. <body style="background: #ffffff;">
  60. <div class="s_title b10 f6">
  61. <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 标准库配置
  62. <div class="article_title">
  63. <input class="art_back" title="返回" style="width: 50px;" name="" onclick="location='MTAssetDataDictionaryAction.do?task=toList';" type="button" />
  64. <input class="art_sub" title="保存" id="save" name="save" onclick="save1()" value="" type="button"/>
  65. </div>
  66. </div>
  67. <div class="container-layout" style="padding-top: 103px;">
  68. <div class="forum-container">
  69. <table class="l-table-edit">
  70. <thead>
  71. <tr>
  72. <th colspan="4">
  73. 请填写以下标准基本信息
  74. </th>
  75. </tr>
  76. </thead>
  77. <tr>
  78. <td class="l-table-edit-text">标准名称<FONT
  79. COLOR="red">*</FONT>:
  80. </td>
  81. <td class="l-table-edit-td"><input type="hidden"
  82. name="universalid" id="universalid"
  83. value="${dataDictionary.universalid }"> <input type="text"
  84. class="default-text" name="dname" id="dname"
  85. value="${dataDictionary.dname }" disabled="disabled"
  86. readonly="readonly"> <label id="dnameMsg"></label></td>
  87. <td class="l-table-edit-text">摘要:</td>
  88. <td class="l-table-edit-td"><input type="text"
  89. class="default-text" name="remark" id="remark"
  90. value="${dataDictionary.remark }" disabled="disabled"
  91. readonly="readonly" /></td>
  92. </tr>
  93. <tr>
  94. <td class="l-table-edit-text">设定值<FONT
  95. COLOR="red">*</FONT>:
  96. </td>
  97. <td class="l-table-edit-td"><input type="text"
  98. class="default-text" name="dvalue" id="dvalue"
  99. value="${dataDictionary.dvalue }"
  100. ${dataDictionary.type == 'S' ? '' : 'disabled'} /> <label
  101. id="dvalueMsg"></label></td>
  102. <td class="l-table-edit-text">类型:</td>
  103. <td class="l-table-edit-td"><input type="text"
  104. class="default-text" name="type" id="type"
  105. value="${dataDictionary.type }" disabled="disabled" /> <label
  106. id="dorderMsg"></label></td>
  107. </tr>
  108. <c:if test="${dataDictionary.type != 'S'}">
  109. <tr>
  110. <th colspan="4">标准项配置&nbsp;&nbsp;&nbsp;&nbsp;
  111. </th>
  112. </tr>
  113. <tr>
  114. <td colspan="4">
  115. <input type="button"
  116. class="l-button" onclick="addNewRow()" value="新增标准项"
  117. style="margin-top: 5px; margin-left: 5px;" />
  118. <div id="childDataDictionaryTable" style="margin-top: 5px;"></div>
  119. </td>
  120. </tr>
  121. </c:if>
  122. </table>
  123. </div>
  124. </div>
  125. </body>
  126. </html>