| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <Title>标准库配置</Title>
- <link
- href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <link href="/shares/xheditor/xheditor-1.1.14/demos/common.css"
- rel="stylesheet" type="text/css" media="screen" />
- <link
- href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/Gray/css/form.css"
- rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/erp2/erpCommon.css" rel="stylesheet"
- type="text/css" />
- <link href="${pageContext.request.contextPath }/main.css"
- rel="stylesheet" type="text/css" />
- <script
- src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTextBox.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerSpinner.js"
- type="text/javascript"></script>
- <script src="/shares/js/common.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/erp2/erpCommon.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp2/system/editDataDictionary.js"></script>
- <style type="text/css">
- .l-table-edit-text {
- width: 100px;
- font-weight: bold;
- color: #cc000
- }
- .default-select {
- width: 250px;
- height: 22px;
- line-height: 22px;
- }
- .short-select {
- width: 250px;
- height: 22px;
- line-height: 22px;
- }
- .default-text {
- width: 250px;
- height: 22px;
- line-height: 22px
- }
- .short-text {
- width: 150px;
- line-height: 22px;
- height: 22px;
- }
- .l-text {
- width: 150px;
- line-height: 22px;
- height: 22px;
- }
- .text {
- height: 22px;
- line-height: 22px;
- margin-right: 10px;
- display: inline-block;
- margin-left: 1px
- }
- .title {
- font-size: 20px;
- font-weight: bold;
- padding-bottom: 20px;
- padding-left: 5px;
- border-bottom: 1px solid #ededed;
- vertical-align: middle;
- }
- .forum-container-2 tr {
- height: 20px;
- line-height: 20px
- }
- .forum-container-2 table {
- width: 100%;
- margin-top: 0px;
- margin-right: 0px;
- margin-left: 0px;
- }
- </style>
- <script type="text/javascript">
- var parentId = "${requestScope.dataDictionary.universalid}";
- var isValidEditorSelect = [{ value: 1, text: '是' }, { value: 0, text: '否'}];
- var isDefaultEditorSelect = [{ value: 0, text: '否' }, { value: 1, text: '是'}];
- <c:choose>
- <c:when test="${dataDictionary.type == 'U'}">
- var dnameEditor = { type: 'text' };
- var dvalueEditor = {type: 'text' };
- var dorderEditor = { type: 'int',minValue :0};
- var isDefaultEditor = { type: 'select', data: isDefaultEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
- var isValidEditor = { type: 'select', data: isValidEditorSelect, valueColumnName: 'value', displayColumnName: 'text'};
- </c:when>
- </c:choose>
- function getTypeText(type){
- if(type == "U"){
- return "普通";
- }else if(type == "S"){
- return "系统";
- }else if(type == "C"){
- return "内置";
- }else{
- return "未知";
- }
- }
- $(function() {
- $("#type").val(getTypeText($("#type").val()));
- <c:if test="${dataDictionary.type != 'S'}">
- searchChildList();
- </c:if>
- });
- </script>
- </head>
- <body>
- <div class="container-layout">
- <div class="form-button">
- <input type="button" class="l-button" value="保存" onclick="save()" />
- <input type="button" value="关闭" class="l-button"
- onclick="closeWindow();" />
- </div>
- <div class="forum-container-2">
- <table border="0" cellspacing="1" cellpadding="0"
- style="border: 1px solid #ededed; width: 100%; margin-top: 0px";margin-right: 0px; margin-left: 0px;">
- <thead>
- <tr>
- <th colspan="5">
- <div class="l-table-edit line">请填写以下标准基本信息</div>
- </th>
- </tr>
- </thead>
- <tr>
- <td class="l-table-edit-text" style="width: 89px;">标准名称<FONT
- COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td"><input type="hidden"
- name="universalid" id="universalid"
- value="${dataDictionary.universalid }"> <input type="text"
- class="default-text" name="dname" id="dname"
- value="${dataDictionary.dname }" disabled="disabled"
- readonly="readonly"> <label id="dnameMsg"></label></td>
- <td></td>
- <td class="l-table-edit-text" style="width: 89px;">摘要:</td>
- <td class="l-table-edit-td"><input type="text"
- class="default-text" name="remark" id="remark"
- value="${dataDictionary.remark }" disabled="disabled"
- readonly="readonly" /></td>
- </tr>
- <tr>
- <td class="l-table-edit-text" style="width: 89px;">设定值<FONT
- COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td"><input type="text"
- class="default-text" name="dvalue" id="dvalue"
- value="${dataDictionary.dvalue }"
- ${dataDictionary.type == 'S' ? '' : 'disabled'} /> <label
- id="dvalueMsg"></label></td>
- <td></td>
- <td class="l-table-edit-text" style="width: 89px;">类型:</td>
- <td class="l-table-edit-td"><input type="text"
- class="default-text" name="type" id="type"
- value="${dataDictionary.type }" disabled="disabled" /> <label
- id="dorderMsg"></label></td>
- </tr>
- </table>
- </div>
- <c:if test="${dataDictionary.type != 'S'}">
- <div class="forum-container-2">
- <table border="0" cellspacing="0" cellpadding="0">
- <thead>
- <tr>
- <th>标准项配置 <input type="button"
- class="l-button" onclick="addNewRow()" value="新增标准项"
- style="font-weight: normal; width: 80px; margin-top: -3px" />
- </th>
- </tr>
- </thead>
- </table>
- </div>
- <div id="childDataDictionaryTable" style="margin: 0; clear: both"></div>
- </c:if>
- </div>
- </body>
- </html>
|