| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <html>
- <head>
- <title>编辑组织</title>
- <script type=text/javascript src="/shares/js/jquery-1.5.1.min.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <link href="main.css" rel="stylesheet" type="text/css"></link>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <%-- <link href="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" /> --%>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/ams/archiveMgr/scripts/cloud.js"></script>
- <script type="text/javascript" src="/shares/js/yw/ams/archiveMgr/archive.js"></script>
- <style>
- #title {
- width: 99%;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- if ("${i}" == 1) {
- alert("添加成功");
- parent.f();
- parent.dia();
- // refreshWindow();
- }
- if ("${category.permission}" == "0") {
- $("#per").attr("checked", false);
- $("#permission").val("0");
- } else {
- $("#per").attr("checked", true);
- $("#permission").val("1");
- }
- });
- function thisoh(check) {
- if (check.checked) {
- $("#permission").val("1");
- } else {
- $("#permission").val("0");
- }
- }
- function add() {
-
- var rs = $.validate({
- name : "category.category_num",
- model : [ {
- type : "require",
- msg : "请输入档案编号!"
- } ]
- });
- rs &= $.validate({
- name : "category.category_name",
- model : [ {
- type : "require",
- msg : "请输入档案名称!"
- } ]
- });
- if (!rs)
- return;
- var parentid = $("#parentid").val();
- if (parentid == "-1") {
- alert("不能修改顶级节点");
- return;
- }
- var num = encodeURI(encodeURI($("#category_name").val()));
- var parentid = $("#parentid").val();
- if (num == "")
- return;
- _remoteCall("amsCategory.do?method=categoryName&category.parentid="
- + parentid + "&category.category_name=" + num, {}, function(
- data) {
- if (data.num == "1") {
- $.ligerDialog.warn('名称存在重复');
- } else {
- $("#theForm").submit();
- }
- });
- }
- function closeTabUseInOA() {
- window.parent.tab.removeSelectedTabItem();
- }
- function categoryName() {
- var num = encodeURI(encodeURI($("#category_name").val()));
- var parentid = $("#parentid").val();
- if (num == "")
- return;
- _remoteCall("amsCategory.do?method=categoryName&category.parentid="
- + parentid + "&category.category_name=" + num, {}, function(
- data) {
- if (data.num == "1") {
- $("#category_name").val("");
- $.ligerDialog.warn('名称存在重复');
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="container-layout">
- <DIV id="btn_title" class="form-button">
- <input type="button" id="group_save" onclick="add()" class="l-button" value="保存" />
-
- <input onclick="parent.dia();" type="button" value="关闭" class="l-button">
- </DIV>
- <div class="l-content">
- <form name="theForm" id="theForm" method="post" action="mtAmsCategory.do">
- <input name="method" id="method" type="hidden" value="addCategory">
- <input id="permission" name="category.permission" type="hidden" value="${category.permission }" />
- <div>
- <font color="red"></font>
- </div>
- <div class="forum-container">
- <center>
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line" style="clear: both">
- <tr>
- <th colspan="2">类目详细</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">编号<font color="red">*</font>:
- </td>
- <td class="l-table-edit-td"><input type="text" name="category.category_num" id="category_num" maxLength="10" value='' /></td>
- </tr>
- <tr>
- <td class="l-table-edit-text">名称<font color="red">*</font>:
- </td>
- <td class="l-table-edit-td"><input type="text" onblur="categoryName()" name="category.category_name" maxLength="50" id="category_name" value='' /><font id="checkgroupname" color="red"></font></td>
- </tr>
- <tr>
- <td class="l-table-edit-text">父级类目<font color="red">*</font>:
- </td>
- <td class="l-table-edit-td"><input type="text" name="type_name" id="type_name" value="${category.category_name }" readonly="readonly" /> <input type="hidden" name="category.parentid"
- id="parentid" value="${category.universalid }"> <input type="button" value="选择" onclick="directory();" class="l-button" /> <font id="checkgrouptype" color="red"></font></td>
- </tr>
- <tr>
- <td class="l-table-edit-text">档案名称允许被检索<font color="red">*</font>:
- </td>
- <td class="l-table-edit-td"><input name="per" id="per" type="checkbox" value="1" onclick="thisoh(this);" /><font id="checkgroupname" color="red"></font></td>
- </tr>
- </table>
- </center>
- </div>
- <!-- </div>-->
- </form>
- </div>
- </body>
- </html>
|