process.jsp 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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/receive/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. $("#receivedate").ligerDateEditor({
  29. showTime : false,
  30. labelAlign : 'left',
  31. format : "yyyy-MM-dd",
  32. initValue:"${fn:substring(requestScope.rc.receivedate, 0, 10) }"
  33. });
  34. $("#senddate").ligerDateEditor({
  35. showTime : false,
  36. labelAlign : 'left',
  37. format : "yyyy-MM-dd",
  38. initValue:"${fn:substring(requestScope.rc.senddate, 0, 10) }"
  39. });
  40. var nextUserTag = "${requestScope.tmodel.pathJudgeType.value }";
  41. if(nextUserTag == "1"){
  42. $("[name='nextUser']").hide();
  43. var nextTmodelId = $("[name='nextTmodelId']").val();
  44. $("#" + nextTmodelId).show();
  45. }
  46. $("[name='nextTmodelId']").change(function(){
  47. $("[name='nextUser']").hide();
  48. var nextTmodelId = $("[name='nextTmodelId']").val();
  49. $("#" + nextTmodelId).show();
  50. });
  51. $("#form1").validate({
  52. errorPlacement:function(error,element) {
  53. element.closest("td").prepend(error);
  54. }
  55. });
  56. loadInfo();
  57. $("#officeFrame").attr("src", "${pageContext.request.contextPath}/govNtkoAction.do?task=edit&fileId=${requestScope.ri.docId}");
  58. });
  59. function loadInfo(){
  60. var emergencyDegree = "${requestScope.rc.emergencyDegree }";
  61. var openType = "${requestScope.rc.openType }";
  62. var docType = "${requestScope.rc.docType }";
  63. if(emergencyDegree!=null || emergencyDegree!=""){
  64. $("#emergencyDegree").val(emergencyDegree);
  65. }
  66. if(openType!=null || openType!=""){
  67. $("#openType").val(openType);
  68. }
  69. if(docType!=null || docType!=""){
  70. $("#docType").val(docType);
  71. }
  72. }
  73. function close1() {
  74. window.parent.tab.removeSelectedTabItem();
  75. }
  76. function setValue(fileId, fileName) {
  77. $("#docid").val(fileId);
  78. }
  79. function save1(){
  80. tab1.selectTabItem("tabitem1");
  81. document.getElementById("officeFrame").contentWindow.save1();
  82. tab1.selectTabItem("tabitem2");
  83. var bool = $("#form1").valid();
  84. if(!bool){
  85. $("#receiveNo").focus();
  86. return;
  87. }
  88. tab1.selectTabItem("tabitem3");
  89. var rs = true;
  90. var usersNames = $("textarea[id*='usersName']:visible");
  91. for ( var i = 0; i < usersNames.length; i++) {
  92. rs = $.validate({
  93. name : usersNames[i].id,
  94. model : [ {
  95. type : "require",
  96. msg : "下一步环节操作人不能为空!"
  97. } ]
  98. }) && rs;
  99. }
  100. if (!rs) {
  101. $("#remark1").focus();
  102. return;
  103. }
  104. var x = $("#form1").serializeArray();
  105. $.each(x, function(i, field) {
  106. field.value = encodeURI(field.value);
  107. });
  108. $.ajax({
  109. url : "govReceiveAction.do",
  110. async : false,
  111. type : "post",
  112. data : x,
  113. success : function(data) {
  114. if(data == "false"){
  115. addError("流程办理失败!");
  116. } else {
  117. addWaitInfo("流程办理成功!",500);
  118. }
  119. },
  120. error : function() {
  121. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  122. }
  123. });
  124. }
  125. </script>
  126. </head>
  127. <body>
  128. <form action="govReceiveAction.do" method="post" id="form1" name="form1">
  129. <div id="title" class="form-button">
  130. <input onclick="save1();" type="button" value="办理" class="l-button">
  131. <input onclick="close1();" type="button" value="关闭" class="l-button">
  132. </div>
  133. <div class="container-layout" >
  134. <div id="tab1">
  135. <div title="公文正文" >
  136. <div id="maingrid1" style="height: 510px">
  137. <!-- <iframe name="editoffice" id="editoffice" -->
  138. <%-- src="${pageContext.request.contextPath}/govNtkoDocAction.do?task=toNtkoDoc&wordHeight=550&docid=${requestScope.di.docId}" --%>
  139. <!-- frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe> -->
  140. <iframe name="officeFrame" id="officeFrame" src=""
  141. frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe>
  142. </div>
  143. <input type="hidden" id="docid" name="docid" value="${requestScope.di.docId}">
  144. </div>
  145. <div title="拟稿封面" >
  146. <div id="maingrid2">
  147. <div id="wrap1">
  148. <div id="heard1">文 件 阅 办 单</div>
  149. <div id="main">
  150. <table width="100%" id="mytable" border="0" cellspacing="0" cellpadding="0" >
  151. <tr>
  152. <td width="12%" align="center" class="alt">收文编号</td>
  153. <td width="38%">
  154. <input type="text" id="receiveNo" name="receiveNo" value="${requestScope.rc.receiveNo }" required data-rule-maxlength="50">
  155. </td>
  156. <td width="12%" align="center" class="alt">来文文号</td>
  157. <td width="38%">
  158. <input type="text" id="sendNo" name="sendNo" value="${requestScope.rc.sendNo }" required data-rule-maxlength="50">
  159. </td>
  160. </tr>
  161. <tr>
  162. <td width="12%" align="center" class="alt">来文标题</td>
  163. <td width="38%">
  164. <input type="text" id="sendTitle" name="sendTitle" value="${requestScope.rc.sendTitle }" required data-rule-maxlength="100">
  165. </td>
  166. <td width="12%" align="center" class="alt">来文单位</td>
  167. <td width="38%">
  168. <input type="text" id="sendDept" name="sendDept" value="${requestScope.rc.sendDept }" required data-rule-maxlength="100">
  169. </td>
  170. </tr>
  171. <tr>
  172. <td width="12%" align="center" class="alt">来文主题</td>
  173. <td width="38%">
  174. <input type="text" id="sendTheme" name="sendTheme" value="${requestScope.rc.sendTheme }" required data-rule-maxlength="100">
  175. </td>
  176. <td width="12%" align="center" class="alt">副 标 题</td>
  177. <td width="38%">
  178. <input type="text" id="sendSubtitle" name="sendSubtitle" value="${requestScope.rc.sendSubtitle }" required data-rule-maxlength="100">
  179. </td>
  180. </tr>
  181. <tr>
  182. <td width="12%" align="center" class="alt">收文日期</td>
  183. <td width="38%">
  184. <input type="text" id="receivedate" name="receivedate" value="${requestScope.rc.receivedate }" required data-rule-date="true">
  185. </td>
  186. <td width="12%" align="center" class="alt">来文日期</td>
  187. <td width="38%">
  188. <input type="text" id="senddate" name="senddate" value="${requestScope.rc.senddate }" required data-rule-date="true">
  189. </td>
  190. </tr>
  191. <tr>
  192. <td width="12%" align="center" class="alt">紧急程度</td>
  193. <td width="38%">
  194. <select id="emergencyDegree" name="emergencyDegree">
  195. <option value="0">普通</option>
  196. <option value="1">紧急</option>
  197. <option value="2">特急</option>
  198. </select>
  199. </td>
  200. <td width="12%" align="center" class="alt">公开类型</td>
  201. <td width="38%">
  202. <select id="openType" name="openType">
  203. <option value="0">主动公开</option>
  204. <option value="1">依申请公开</option>
  205. <option value="2">不公开</option>
  206. </select>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td width="12%" align="center" class="alt">文 &nbsp;&nbsp;&nbsp;种</td>
  211. <td width="38%">
  212. <select id="docType" name="docType">
  213. <option value="0">意见</option>
  214. <option value="1">报告</option>
  215. <option value="2">公告</option>
  216. <option value="3">函</option>
  217. <option value="4">纪要</option>
  218. <option value="5">批复</option>
  219. <option value="6">请示</option>
  220. <option value="7">通报</option>
  221. <option value="8">通告</option>
  222. <option value="9">通知</option>
  223. <option value="10">议案</option>
  224. <option value="11">决议</option>
  225. <option value="12">决定</option>
  226. <option value="13">命令(令)</option>
  227. <option value="14">公报</option>
  228. </select>
  229. </td>
  230. <td width="12%" align="center" class="alt">保密期限</td>
  231. <td width="38%">
  232. <input type="text" id="secrecyTerm" name="secrecyTerm" value="${requestScope.rc.secrecyTerm }" required data-rule-digits="true" data-rule-max="99">
  233. </td>
  234. </tr>
  235. <tr>
  236. <td height="60" width="12%" align="center" class="alt">主送单位</td>
  237. <td height="60" colspan="3">
  238. <textarea id="sendUnit" name="sendUnit" required>${requestScope.rc.sendUnit }</textarea>
  239. </td>
  240. </tr>
  241. <tr>
  242. <td height="60" width="12%" class="alt">抄送单位</td>
  243. <td height="60" colspan="3">
  244. <textarea id="ccUnit" name="ccUnit" required>${requestScope.rc.ccUnit }</textarea>
  245. </td>
  246. </tr>
  247. <tr>
  248. <td width="12%" class="alt">附&nbsp;&nbsp;&nbsp;&nbsp;件</td>
  249. <td colspan="3">
  250. <jsp:include page="/include/file.jsp" >
  251. <jsp:param name="fieldName" value="attachments" />
  252. <jsp:param name="folder" value="gov" />
  253. <jsp:param name="size" value="10" />
  254. <jsp:param name="definedCss" value="file-style" />
  255. <jsp:param name="documentId" value="${requestScope.rc.attachments }" />
  256. <jsp:param name="isDelFile" value="2"/>
  257. </jsp:include>
  258. </td>
  259. </tr>
  260. <tr>
  261. <td height="60" width="12%" class="alt">来文备注</td>
  262. <td height="60" colspan="3">
  263. <textarea id="remark" name="remark" required>${requestScope.rc.remark }</textarea>
  264. </td>
  265. </tr>
  266. <tr>
  267. <td height="60" width="12%" class="alt">拟办意见</td>
  268. <td height="60" colspan="3">
  269. <textarea id="nibanOpinion" name="nibanOpinion" required>${requestScope.rc.nibanOpinion }</textarea>
  270. </td>
  271. </tr>
  272. <tr>
  273. <td height="60" width="12%" class="alt">领导批示</td>
  274. <td height="60" colspan="3">
  275. <textarea id="leaderOpinion" name="leaderOpinion" required>${requestScope.rc.leaderOpinion }</textarea>
  276. </td>
  277. </tr>
  278. <tr>
  279. <td height="60" align="center" class="alt">办理情况</td>
  280. <td height="60" colspan="3">
  281. <textarea id="dealSituation" name="dealSituation" required>${requestScope.rc.dealSituation }</textarea>
  282. </td>
  283. </tr>
  284. <input type="hidden" id="id" name="id" value="${requestScope.rc.id }">
  285. <input type="hidden" id="rid" name="rid" value="${requestScope.rc.rid }">
  286. </table>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. <div title="办理页面" >
  292. <div id="maingrid3">
  293. <center>
  294. <div class="forum-container">
  295. <table class="l-table-edit line" id="stable">
  296. <tr>
  297. <th colspan="2">流程信息</th>
  298. </tr>
  299. <tr>
  300. <td class="l-table-edit-text">当前环节名称:
  301. </td>
  302. <td class="l-table-edit-td">
  303. ${requestScope.tmodel.tmodelName }
  304. </td>
  305. </tr>
  306. <c:choose>
  307. <c:when test="${requestScope.tmodel.pathJudgeType.value == 1 }">
  308. <tr>
  309. <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
  310. </td>
  311. <td class="l-table-edit-td">
  312. <select id="nextTmodelId" name="nextTmodelId" style="width: 200px;">
  313. <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
  314. <option value="${tmodel.nextTmodelId.tmodelId }">${tmodel.nextTmodelId.tmodelName }</option>
  315. </c:forEach>
  316. </select>
  317. </td>
  318. </tr>
  319. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  320. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  321. <tr>
  322. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  323. </td>
  324. <td class="l-table-edit-td">
  325. <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
  326. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  327. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  328. </td>
  329. </tr>
  330. <script type="text/javascript">
  331. $(document).ready(function(){
  332. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  333. });
  334. </script>
  335. </tbody>
  336. </c:forEach>
  337. </c:when>
  338. <c:when test="${requestScope.tmodel.pathJudgeType.value == 0 }">
  339. <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
  340. <tr>
  341. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  342. </td>
  343. <td class="l-table-edit-td"></td>
  344. </tr>
  345. </c:if>
  346. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  347. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  348. <tr>
  349. <td class="l-table-edit-text">${nhTmodel.nextTmodelId.tmodelName }<FONT COLOR="red">*</FONT>:
  350. </td>
  351. <td class="l-table-edit-td">
  352. <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
  353. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  354. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  355. </td>
  356. </tr>
  357. <script type="text/javascript">
  358. $(document).ready(function(){
  359. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  360. });
  361. </script>
  362. </tbody>
  363. </c:forEach>
  364. </c:when>
  365. </c:choose>
  366. <tr>
  367. <td class="l-table-edit-text">短信提醒:
  368. </td>
  369. <td class="l-table-edit-td">
  370. <input type="checkbox" id="isNextSms" name="isNextSms" value="1"
  371. <c:if test="${requestScope.tmodel.isSms.value == 1}">
  372. checked="checked"
  373. </c:if>
  374. >&nbsp;短信通知下一环节操作人
  375. </td>
  376. </tr>
  377. <tr>
  378. <td class="l-table-edit-text">备注:
  379. </td>
  380. <td class="l-table-edit-td">
  381. <textarea id="remark1" name="remark1" class="flowText"></textarea>
  382. </td>
  383. </tr>
  384. <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
  385. <input type="hidden" id="tinsId" name="tinsId" value="${requestScope.tache.tinsId }">
  386. <input type="hidden" id="preTinsId" name="preTinsId" value="${requestScope.tache.preTinsId }">
  387. <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
  388. <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
  389. <input type="hidden" id="creator" name="creator" value="${requestScope.flow.creator.userId }">
  390. <input type="hidden" id="groupxuserid" name="groupxuserid" value="${requestScope.flow.groupxuserid.id }">
  391. <input type="hidden" id="state" name="state" value="${requestScope.flow.groupxuserid.state }">
  392. <input type="hidden" id="task" name="task" value="process">
  393. <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid.groupId}">
  394. <input type="hidden" id="isMoreIns" name="isMoreIns" value="${requestScope.tmodel.isMoreIns.value }">
  395. <input type="hidden" id="pathJudgeType" name="pathJudgeType" value="${requestScope.tmodel.pathJudgeType.value }">
  396. <input type="hidden" id="se" name="se" value="${requestScope.tmodel.se.value }">
  397. <input type="hidden" id="userid" name="userid" value="${requestScope.tache.groupxuserid.id}">
  398. <input type="hidden" id="handleValidate" value="${ requestScope.tmodel.handleValidate}">
  399. <input type="hidden" id="insName" name="insName" value="${requestScope.flow.insName }">
  400. </table>
  401. <table class="l-table-edit line" id="stable">
  402. <tr>
  403. <th>流转信息</th>
  404. </tr>
  405. <c:forEach items="${requestScope.processList }" var="tache">
  406. <tr>
  407. <td>
  408. <div class="wf_shadow1">
  409. <div class="marginleft60">
  410. 环节名称:<font class="blueFont">${tache.tache.tmodelId.tmodelName }</font>&nbsp;&nbsp;
  411. 创建时间:<font class="blueFont">${fn:substring(tache.tache.createdate, 0, 16) }</font>&nbsp;&nbsp;
  412. <c:if test="${tache.tache.finishdate != null }">
  413. 环节办结:<font class="blueFont">${fn:substring(tache.tache.finishdate, 0, 16) }</font>&nbsp;&nbsp;
  414. </c:if>
  415. <font style="color: red; font-size: 14px;">${tache.tache.state.dataName }</font>
  416. </div>
  417. <div class="marginleft60">
  418. <font style="color: #b02207; font-size: 20px;">${tache.tache.user.username }
  419. <c:if test="${tache.tache.authorizedUser.userId!='0' && tache.tache.authorizedUser.userId!='' && tache.tache.authorizedUser.userId!=null}">
  420. (授权:${tache.tache.authorizedUser.username})
  421. </c:if>
  422. </font>
  423. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  424. </c:if>
  425. </div>
  426. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  427. <div class="marginleft60">
  428. <font style="color: blue; font-size: 14px;">${tache.tache.remark }</font>
  429. </div>
  430. </c:if>
  431. </div>
  432. </td>
  433. </tr>
  434. </c:forEach>
  435. </table>
  436. </div>
  437. </center>
  438. </div>
  439. </div>
  440. </div>
  441. </div>
  442. </form>
  443. </body>
  444. </html>