| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <!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="/shares/css/yw/tms/task.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/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="/shares/js/common.js" type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
- type="text/javascript"></script>
-
- <script type="text/javascript"
- src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <style type="text/css">
- .l-table-edit-text {
- width: 100px;
- font-weight: bold;
- color: #cc000
- }
-
- .default-select {
- width: 500px;
- height: 22px;
- line-height: 22px;
- }
-
- .short-select {
- width: 273px;
- height: 22px;
- line-height: 22px;
- }
-
- .default-text {
- width: 270px;
- height: 22px;
- line-height: 22px
- }
-
- .short-text {
- width: 270px;
- line-height: 22px;
- height: 22px;
- }
- .l-text{
- width: 270px;
- 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;
- }
- .l-table-edit-td{
- width:270px;
- }
- .l-table-edit-text{
- width:89px;
- }
- .forum-container-2 .l-table-edit-text{
- width:99px;
- }
- .projectTable{margin: 5px}
- .projectTable tr{height: 25px; padding-bottom: 2px; margin: 10px auto}
- .projectTable .left-text {width: 80px; }
- </style>
- <script type="text/javascript">
- function dictionary_add(){
- var rs = $.validate({
- name : "dname",
- model : [ {
- type : "require",
- msg : "请输入子项名称!"
- }]
- });
- rs = $.validate({
- name : "dvalue",
- model : [ {
- type : "require",
- msg : "请输入子项值!"
- }]
- }) && rs;
- if(rs){
- var dvalue=$("#dvalue").val();
- var dname=$("#dname").val();
- var flag=true;
- $("#sub_obj option").each(function(i,obj){
- var dtext=$(obj).text().split("-");
- if(dvalue==$(obj).val()){
- $("#sub_value").html("子项值已存在");
- flag=false;
- }
- if(dname==dtext[0]){
- $("#sub_dname").html("子项名称已存在");
- flag=false;
- }
- });
- if(flag){
- $("#dictionary_add").submit();
- }
- }
- }
- </script>
- </head>
- <body>
- <form id="dictionary_add" action="pmDictionary.do?task=dictionary_add" method="post">
- <input type="hidden" name="remark" value="${parent_map.dname }"/>
- <input type="hidden" name="parentid" value="${parent_map.universalid }"/>
- <input type="hidden" id="tabid" name="tabid" value="${tabid }" />
- <div id="title" class="form-button">
- <input type="button" id="btnSave" class="l-button" value="保存" onclick="dictionary_add()" />
- </div>
- <div style=" margin-top: 33px">
- <div class="forum-container-2" style="overflow: hidden;">
- <table border="0" cellspacing="1" cellpadding="0" style="border: 1px solid #ededed;">
- <tr>
- <th colspan="4">
- <div class="l-table-edit line">数据子项添加</div>
- </th>
- </tr>
- <tr>
- <td class="l-table-edit-text11" style="width:15%">父类名称:</td>
- <td class="l-table-edit-td" style="width:85%">
- ${parent_map.dname}
- </td>
-
- </tr>
- <tr>
- <td class="l-table-edit-text11">已有子项:</td>
- <td class="l-table-edit-td">
- <select id="sub_obj" name="sub_obj" >
- <c:forEach items="${subList}" var="obj">
- <option value="${obj.dvalue}" >${obj.dname }-${obj.dvalue}</option>
- </c:forEach>
- </select>
- </td>
-
- </tr>
- <tr>
- <td class="l-table-edit-text11">子项名称<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- <input type="text" name="dname" id="dname" maxlength="20" /><span class="span_l f7" id="sub_dname" style="color:red;"></span>
- </td>
-
- </tr>
- <tr>
- <td class="l-table-edit-text11">子项值<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- <input type="text" name="dvalue" id="dvalue" maxlength="10" /><span class="span_l f7" id="sub_value" style="color:red;"></span>
- </td>
-
- </tr>
- <tr>
- <td class="l-table-edit-text11">子项代码:</td>
- <td class="l-table-edit-td">
- <input type="text" name="code" id="code" maxlength="20" />
- </td>
-
- </tr>
- </table>
- </div>
- </div>
- </form>
-
- </body>
- </html>
|