mtCreateFile.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <html>
  4. <head>
  5. <title>编辑组织</title>
  6. <script type=text/javascript src="/shares/js/jquery-1.5.1.min.js"></script>
  7. <script type="text/javascript" src="/shares/js/constant.js"></script>
  8. <script type="text/javascript" src="/shares/js/common.js"></script>
  9. <link href="main.css" rel="stylesheet" type="text/css"></link>
  10. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <%-- <link href="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" /> --%>
  12. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/yw/ams/archiveMgr/scripts/cloud.js"></script>
  14. <script type="text/javascript" src="/shares/js/yw/ams/archiveMgr/archive.js"></script>
  15. <style>
  16. #title {
  17. width: 99%;
  18. }
  19. </style>
  20. <script type="text/javascript">
  21. $(document).ready(function() {
  22. if ("${i}" == 1) {
  23. alert("添加成功");
  24. parent.f();
  25. parent.dia();
  26. // refreshWindow();
  27. }
  28. if ("${category.permission}" == "0") {
  29. $("#per").attr("checked", false);
  30. $("#permission").val("0");
  31. } else {
  32. $("#per").attr("checked", true);
  33. $("#permission").val("1");
  34. }
  35. });
  36. function thisoh(check) {
  37. if (check.checked) {
  38. $("#permission").val("1");
  39. } else {
  40. $("#permission").val("0");
  41. }
  42. }
  43. function add() {
  44. var rs = $.validate({
  45. name : "category.category_num",
  46. model : [ {
  47. type : "require",
  48. msg : "请输入档案编号!"
  49. } ]
  50. });
  51. rs &= $.validate({
  52. name : "category.category_name",
  53. model : [ {
  54. type : "require",
  55. msg : "请输入档案名称!"
  56. } ]
  57. });
  58. if (!rs)
  59. return;
  60. var parentid = $("#parentid").val();
  61. if (parentid == "-1") {
  62. alert("不能修改顶级节点");
  63. return;
  64. }
  65. var num = encodeURI(encodeURI($("#category_name").val()));
  66. var parentid = $("#parentid").val();
  67. if (num == "")
  68. return;
  69. _remoteCall("amsCategory.do?method=categoryName&category.parentid="
  70. + parentid + "&category.category_name=" + num, {}, function(
  71. data) {
  72. if (data.num == "1") {
  73. $.ligerDialog.warn('名称存在重复');
  74. } else {
  75. $("#theForm").submit();
  76. }
  77. });
  78. }
  79. function closeTabUseInOA() {
  80. window.parent.tab.removeSelectedTabItem();
  81. }
  82. function categoryName() {
  83. var num = encodeURI(encodeURI($("#category_name").val()));
  84. var parentid = $("#parentid").val();
  85. if (num == "")
  86. return;
  87. _remoteCall("amsCategory.do?method=categoryName&category.parentid="
  88. + parentid + "&category.category_name=" + num, {}, function(
  89. data) {
  90. if (data.num == "1") {
  91. $("#category_name").val("");
  92. $.ligerDialog.warn('名称存在重复');
  93. }
  94. });
  95. }
  96. </script>
  97. </head>
  98. <body>
  99. <div class="container-layout">
  100. <DIV id="btn_title" class="form-button">
  101. <input type="button" id="group_save" onclick="add()" class="l-button" value="保存" />
  102. &nbsp;
  103. <input onclick="parent.dia();" type="button" value="关闭" class="l-button">
  104. </DIV>
  105. <div class="l-content">
  106. <form name="theForm" id="theForm" method="post" action="mtAmsCategory.do">
  107. <input name="method" id="method" type="hidden" value="addCategory">
  108. <input id="permission" name="category.permission" type="hidden" value="${category.permission }" />
  109. <div>
  110. <font color="red"></font>
  111. </div>
  112. <div class="forum-container">
  113. <center>
  114. <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line" style="clear: both">
  115. <tr>
  116. <th colspan="2">类目详细</th>
  117. </tr>
  118. <tr>
  119. <td class="l-table-edit-text">编号<font color="red">*</font>:
  120. </td>
  121. <td class="l-table-edit-td"><input type="text" name="category.category_num" id="category_num" maxLength="10" value='' /></td>
  122. </tr>
  123. <tr>
  124. <td class="l-table-edit-text">名称<font color="red">*</font>:
  125. </td>
  126. <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>
  127. </tr>
  128. <tr>
  129. <td class="l-table-edit-text">父级类目<font color="red">*</font>:
  130. </td>
  131. <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"
  132. id="parentid" value="${category.universalid }"> <input type="button" value="选择" onclick="directory();" class="l-button" /> <font id="checkgrouptype" color="red"></font></td>
  133. </tr>
  134. <tr>
  135. <td class="l-table-edit-text">档案名称允许被检索<font color="red">*</font>:
  136. </td>
  137. <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>
  138. </tr>
  139. </table>
  140. </center>
  141. </div>
  142. <!-- </div>-->
  143. </form>
  144. </div>
  145. </body>
  146. </html>