create.jsp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <%@page import="com.yw.gov.system.util.SystemUtil"%>
  2. <%@ page language="java" contentType="text/html;charset=GBK"
  3. pageEncoding="GBK"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  5. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  10. <title>发文拟稿</title>
  11. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  12. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  13. <link href="${pageContext.request.contextPath }/yw/gov/dispatch/style.css" rel="stylesheet" type="text/css" />
  14. <script src="/shares/js/jquery-1.8.2.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="/shares/js/yw/gov/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/gov/jquery-validation-1.13.1/dist/localization/messages_zh.js"></script>
  18. <script type="text/javascript" src="/shares/js/constant.js"></script>
  19. <script type="text/javascript" src="/shares/js/common.js"></script>
  20. <script type="text/javascript" src="/shares/js/file.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/gov/bootstrap-maxlength.js"></script>
  22. <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.config.js"></script>
  23. <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.all.min.js"> </script>
  24. <script type="text/javascript">
  25. var tab1 = null;
  26. $(function(){
  27. tab1 = $("#tab1").ligerTab();
  28. $("#draftdate").ligerDateEditor({
  29. showTime : false,
  30. labelAlign : 'left',
  31. format : "yyyy-MM-dd"
  32. });
  33. $("#printdate").ligerDateEditor({
  34. showTime : false,
  35. labelAlign : 'left',
  36. format : "yyyy-MM-dd"
  37. });
  38. var nextUserTag = "${requestScope.tmodel.pathJudgeType.value }";
  39. if(nextUserTag == "1"){
  40. $("[name='nextUser']").hide();
  41. var nextTmodelId = $("[name='nextTmodelId']").val();
  42. $("#" + nextTmodelId).show();
  43. }
  44. $("[name='nextTmodelId']").change(function(){
  45. $("[name='nextUser']").hide();
  46. var nextTmodelId = $("[name='nextTmodelId']").val();
  47. $("#" + nextTmodelId).show();
  48. });
  49. $("#form1").validate({
  50. errorPlacement:function(error,element) {
  51. element.closest("td").prepend(error);
  52. }
  53. });
  54. $("#officeFrame").attr("src", "${pageContext.request.contextPath}/govNtkoAction.do?task=edit&fileId=");
  55. });
  56. function close1() {
  57. window.parent.tab.removeSelectedTabItem();
  58. }
  59. function setValue(fileId, fileName) {
  60. $("#docid").val(fileId);
  61. }
  62. function save1(){
  63. tab1.selectTabItem("tabitem1");
  64. document.getElementById("officeFrame").contentWindow.save1();
  65. tab1.selectTabItem("tabitem2");
  66. var bool = $("#form1").valid();
  67. if(!bool){
  68. $("#title").focus();
  69. return;
  70. }
  71. tab1.selectTabItem("tabitem3");
  72. var rs = true;
  73. var usersNames = $("textarea[id*='usersName']:visible");
  74. for ( var i = 0; i < usersNames.length; i++) {
  75. rs = $.validate({
  76. name : usersNames[i].id,
  77. model : [ {
  78. type : "require",
  79. msg : "下一步环节操作人不能为空!"
  80. } ]
  81. }) && rs;
  82. }
  83. if (!rs) {
  84. $("#remark1").focus();
  85. return;
  86. }
  87. var x = $("#form1").serializeArray();
  88. $.each(x, function(i, field) {
  89. field.value = encodeURI(field.value);
  90. });
  91. $.ajax({
  92. url : "govDispatchAction.do",
  93. async : false,
  94. type : "post",
  95. data : x,
  96. success : function(data) {
  97. if(data == "false"){
  98. addError("流程发起失败!");
  99. } else {
  100. addWaitInfo("流程发起成功!",500);
  101. }
  102. },
  103. error : function() {
  104. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  105. }
  106. });
  107. }
  108. </script>
  109. </head>
  110. <body>
  111. <form action="govDispatchAction.do" method="post" id="form1" name="form1">
  112. <div id="title" class="form-button">
  113. <input onclick="save1();" type="button" value="发起" class="l-button">
  114. <input onclick="close1();" type="button" value="关闭" class="l-button">
  115. </div>
  116. <div class="container-layout" >
  117. <div id="tab1">
  118. <div title="公文正文" >
  119. <div id="maingrid1" style="height: 510px">
  120. <!-- <iframe name="editoffice" id="editoffice" -->
  121. <%-- src="${pageContext.request.contextPath}/govNtkoDocAction.do?task=toNtkoDoc&wordHeight=550" --%>
  122. <!-- frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe> -->
  123. <iframe name="officeFrame" id="officeFrame" src=""
  124. frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe>
  125. </div>
  126. <input type="hidden" id="docid" name="docid">
  127. </div>
  128. <div title="拟稿封面" >
  129. <div id="maingrid2">
  130. <div id="wrap">
  131. <div id="heard1">公 文 拟 稿 封 面</div>
  132. <div id="main">
  133. <table width="100%" id="mytable" border="0" cellspacing="0" cellpadding="0" >
  134. <tr>
  135. <td align="center" class="alt" >文件名称</td>
  136. <td colspan="5">
  137. <select id="docType" name="docType">
  138. <option value="0">意见</option>
  139. <option value="1">报告</option>
  140. <option value="2">公告</option>
  141. <option value="3">函</option>
  142. <option value="4">纪要</option>
  143. <option value="5">批复</option>
  144. <option value="6">请示</option>
  145. <option value="7">通报</option>
  146. <option value="8">通告</option>
  147. <option value="9">通知</option>
  148. <option value="10">议案</option>
  149. <option value="11">决议</option>
  150. <option value="12">决定</option>
  151. <option value="13">命令(令)</option>
  152. <option value="14">公报</option>
  153. </select>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td height="35" align="center" class="alt">文件标题</td>
  158. <td height="35" colspan="5">
  159. <input type="text" id="title" name="title" required data-rule-maxlength="100">
  160. </td>
  161. </tr>
  162. <tr>
  163. <td height="35" align="center" class="alt">文件附件</td>
  164. <td height="35" colspan="5">
  165. <jsp:include page="/include/file.jsp" >
  166. <jsp:param name="fieldName" value="attachments" />
  167. <jsp:param name="folder" value="gov" />
  168. <jsp:param name="size" value="10" />
  169. <jsp:param name="definedCss" value="file-style" />
  170. </jsp:include>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td width="10%" align="center" class="alt" >发文字号</td>
  175. <td width="45%">
  176. <input type="text" id="sendNo" name="sendNo" required data-rule-maxlength="50">
  177. </td>
  178. <td width="10%" align="center" class="alt">定密期限</td>
  179. <td width="10%">
  180. <input type="text" id="secrecyTerm" name="secrecyTerm" required data-rule-digits="true" data-rule-max="99">
  181. </td>
  182. <td width="10%" align="center" class="alt">缓急</td>
  183. <td width="15%">
  184. <select id="emergencyDegree" name="emergencyDegree">
  185. <option value="0">普通</option>
  186. <option value="1">紧急</option>
  187. <option value="2">特急</option>
  188. </select>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td height="50" align="center" class="alt">是否公开</td>
  193. <td colspan="5">
  194. <select id="openType" name="openType">
  195. <option value="0">主动公开</option>
  196. <option value="1">依申请公开</option>
  197. <option value="2">不公开</option>
  198. </select>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td height="35" align="center" class="alt">主题词</td>
  203. <td height="35" colspan="5">
  204. <input type="text" id="theme" name="theme" required data-rule-maxlength="100">
  205. </td>
  206. </tr>
  207. <tr>
  208. <td height="50" align="center" class="alt">内容概述</td>
  209. <td height="50" colspan="5">
  210. <textarea id="content" name="content" required></textarea>
  211. </td>
  212. </tr>
  213. <tr>
  214. <td height="35" align="center" class="alt">主送单位</td>
  215. <td height="35" colspan="5">
  216. <textarea id="sendUnit" name="sendUnit" required></textarea>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td height="35" align="center" class="alt">抄送单位</td>
  221. <td colspan="5">
  222. <textarea id="ccUnit" name="ccUnit" required></textarea>
  223. </td>
  224. </tr>
  225. <tr>
  226. <td align="center" class="alt">承办单位</td>
  227. <td>
  228. <input type="text" id="organizer" name="organizer" required data-rule-maxlength="100">
  229. </td>
  230. <td align="center" class="alt">拟稿人</td>
  231. <td>
  232. <input type="text" id="drafter" name="drafter" required data-rule-maxlength="100">
  233. </td>
  234. <td align="center" class="alt">拟稿日期</td>
  235. <td>
  236. <input type="text" id="draftdate" name="draftdate" required data-rule-date="true">
  237. </td>
  238. </tr>
  239. <tr>
  240. <td align="center" class="alt">科室核稿</td>
  241. <td colspan="2">
  242. <input type="text" id="deptAudit" name="deptAudit" required data-rule-maxlength="100">
  243. </td>
  244. <td align="center" class="alt">法制审核</td>
  245. <td colspan="2">
  246. <input type="text" id="legalAudit" name="legalAudit" required data-rule-maxlength="100">
  247. </td>
  248. </tr>
  249. <tr>
  250. <td height="70" align="center" class="alt">部门会稿</td>
  251. <td height="70" colspan="5">
  252. <textarea id="deptHuigao" name="deptHuigao" required></textarea>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td align="center" class="alt">办公室审核</td>
  257. <td colspan="5">
  258. <textarea id="officeAudit" name="officeAudit" required></textarea>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td height="50"align="center" class="alt">签发</td>
  263. <td height="50" colspan="5">
  264. <textarea id="issue" name="issue" required></textarea>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td align="center" class="alt">打印份数</td>
  269. <td align="center"><font class="alt1">共</font>
  270. <input type="text" id="print" name="print" required data-rule-digits="true" data-rule-max="99" style="width:50%;">
  271. <font class="alt1">份</font></td>
  272. <td align="center" class="alt">印发日期</td>
  273. <td colspan="3">
  274. <input type="text" id="printdate" name="printdate" required data-rule-date="true">
  275. </td>
  276. </tr>
  277. </table>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. <div title="办理页面" >
  283. <div id="maingrid3">
  284. <center>
  285. <div class="forum-container">
  286. <table class="l-table-edit line" id="stable">
  287. <tr>
  288. <th colspan="2">流程信息</th>
  289. </tr>
  290. <c:choose>
  291. <c:when test="${requestScope.tmodel.pathJudgeType.value == 1 }">
  292. <tr>
  293. <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
  294. </td>
  295. <td class="l-table-edit-td">
  296. <select id="nextTmodelId" name="nextTmodelId" style="width: 200px;">
  297. <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
  298. <option value="${tmodel.nextTmodelId.tmodelId }">${tmodel.nextTmodelId.tmodelName }</option>
  299. </c:forEach>
  300. </select>
  301. </td>
  302. </tr>
  303. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  304. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  305. <tr>
  306. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  307. </td>
  308. <td class="l-table-edit-td">
  309. <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
  310. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  311. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  312. </td>
  313. </tr>
  314. <script type="text/javascript">
  315. $(document).ready(function(){
  316. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  317. });
  318. </script>
  319. </tbody>
  320. </c:forEach>
  321. </c:when>
  322. <c:when test="${requestScope.tmodel.pathJudgeType.value == 0 }">
  323. <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
  324. <tr>
  325. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  326. </td>
  327. <td class="l-table-edit-td"></td>
  328. </tr>
  329. </c:if>
  330. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  331. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  332. <tr>
  333. <td class="l-table-edit-text">${nhTmodel.nextTmodelId.tmodelName }<FONT COLOR="red">*</FONT>:
  334. </td>
  335. <td class="l-table-edit-td">
  336. <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
  337. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  338. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  339. </td>
  340. </tr>
  341. <script type="text/javascript">
  342. $(document).ready(function(){
  343. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  344. });
  345. </script>
  346. </tbody>
  347. </c:forEach>
  348. </c:when>
  349. </c:choose>
  350. <tr>
  351. <td class="l-table-edit-text">短信提醒:
  352. </td>
  353. <td class="l-table-edit-td">
  354. <input type="checkbox" id="isNextSms" name="isNextSms" value="1"
  355. <c:if test="${requestScope.tmodel.isSms.value == 1}">
  356. checked="checked"
  357. </c:if>
  358. >&nbsp;短信通知下一环节操作人
  359. </td>
  360. </tr>
  361. <tr>
  362. <td class="l-table-edit-text">备注:
  363. </td>
  364. <td class="l-table-edit-td">
  365. <textarea id="remark1" name="remark1" class="flowText"></textarea>
  366. </td>
  367. </tr>
  368. <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
  369. <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
  370. <input type="hidden" id="state" name="state" value="${session.groupXUser.state }">
  371. <input type="hidden" id="insId" name="insId" value="<%=SystemUtil.getSeq()%>">
  372. <input type="hidden" id="tinsId" name="tinsId" value="<%=SystemUtil.getSeq()%>">
  373. <input type="hidden" id="task" name="task" value="create">
  374. </table>
  375. </div>
  376. </center>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </form>
  382. </body>
  383. </html>