sendDoc.jsp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>发文拟稿</title>
  9. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  10. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <link href="/shares/css/yw/flow/flow.css" rel="stylesheet" type="text/css" />
  12. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/file.js"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  18. <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
  19. <!-- 选择窗口需要加载的js文件 start-->
  20. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  21. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  22. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  23. <!-- -->
  24. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
  25. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
  26. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  27. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
  28. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  29. <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
  30. <script type="text/javascript" src="/shares/js/yw/gov/govflow.js"></script>
  31. <script type="text/javascript" src="/shares/js/yw/gov/promptDefine.js"></script>
  32. <script type="text/javascript" src="/shares/js/yw/gov/send/senddoc.js"></script>
  33. <style type="text/css">
  34. .l-tab-links {
  35. position: relative;
  36. float: left;
  37. height: 32px;
  38. line-height:32px;
  39. width: 100%;
  40. overflow: hidden;
  41. margin: 0px;
  42. background:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f7f4f4));
  43. font-size:12px;
  44. background:rgb(245, 245, 245);
  45. }
  46. .l-tab-links .l-selected a {
  47. font-size:12px;
  48. font-weight: bold;
  49. height:30px;
  50. line-height:30px;
  51. }
  52. .l-tab-links li a{
  53. font-size:12px;
  54. color: #777;
  55. font-weight: bold;
  56. height:30px;
  57. line-height:30px;
  58. }
  59. .l-tab-links li.l-selected {
  60. position: relative;
  61. float: left;
  62. height: 30px;
  63. background: #e6e6e6;
  64. overflow: hidden;
  65. text-decoration: none;
  66. background-position: 0 -15px;
  67. -webkit-transition: background-position 0.1s linear;
  68. -moz-transition: background-position 0.1s linear;
  69. -o-transition: background-position 0.1s linear;
  70. transition: background-position 0.1s linear;
  71. }
  72. .l-tab-links ul li {
  73. width: 120px;
  74. float: left;
  75. margin-right: -1px;
  76. margin-bottom: 0;
  77. font-size: 14px;
  78. height: 30px;
  79. line-height: 30px;
  80. text-align: center;
  81. vertical-align: middle;
  82. cursor: pointer;
  83. color: #333333;
  84. text-shadow: 0 1px 1px rgba(255,255,255,0.75);
  85. background-color: #f5f5f5;
  86. background-image: -moz-linear-gradient(top,#ffffff,#e6e6e6);
  87. background-image: -webkit-gradient(linear,0 0,0 100%,from(#ffffff),to(#e6e6e6));
  88. background-image: -webkit-linear-gradient(top,#ffffff,#e6e6e6);
  89. background-image: -o-linear-gradient(top,#ffffff,#e6e6e6);
  90. background-image: linear-gradient(to bottom,#ffffff,#e6e6e6);
  91. background-repeat: repeat-x;
  92. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);
  93. border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  94. border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
  95. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  96. border-bottom-color: #b3b3b3;
  97. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
  98. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
  99. box-shadow: inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
  100. }
  101. </style>
  102. <script type="text/javascript">
  103. var curTab = 1;
  104. var mytab;
  105. $(function(){
  106. $("#btnPre").hide();
  107. $("#btnNext").show();
  108. $("#btnSave").hide();
  109. mytab=$("#div_senddoc").ligerTab({changeHeightOnResize:true, onAfterSelectTabItem:function(tabId){
  110. if(curTab == 1){
  111. try{
  112. var docid = document.getElementById("editoffice").contentWindow.functionName();
  113. if(docid=="0"){
  114. alert("公文正文保存失败!");
  115. }else{
  116. $("#docid").val(docid);
  117. }
  118. } catch(Exception){
  119. alert("公文正文保存失败!");
  120. }
  121. }
  122. if(tabId == "tabitem1"){
  123. curTab = 1;
  124. $("#btnPre").hide();
  125. $("#btnNext").show();
  126. $("#btnSave").hide();
  127. }else if(tabId == "tabitem2"){
  128. curTab = 2;
  129. $("#btnPre").show();
  130. $("#btnNext").show();
  131. $("#btnSave").hide();
  132. }else if(tabId == "tabitem3"){
  133. curTab = 3;
  134. $("#btnPre").show();
  135. $("#btnNext").hide();
  136. $("#btnSave").show();
  137. }
  138. }});
  139. var nextUserTag = "${requestScope.tmodel.pathJudgeType.value }";
  140. if(nextUserTag == "1"){
  141. $("[name='nextUser']").hide();
  142. var nextTmodelId = $("[name='nextTmodelId']").val();
  143. $("#" + nextTmodelId).show();
  144. }
  145. $("[name='nextTmodelId']").change(function(){
  146. $("[name='nextUser']").hide();
  147. var nextTmodelId = $("[name='nextTmodelId']").val();
  148. $("#" + nextTmodelId).show();
  149. });
  150. var nextObject = "${requestScope.tmodel.noticeObject}";
  151. if(nextObject.indexOf("3") >= 0){
  152. $("#noticeOther").show();
  153. }
  154. loadTypeTree("noticeButton",{type:"user", tab:"1", backId:"noticeUsers", backName:"noticeUsernames"});
  155. });
  156. function checkForm() {
  157. var rs = $.validate({
  158. name : "docTitle",
  159. model : [ {
  160. type : "require",
  161. msg : "标题名称不能为空!"
  162. }, {
  163. type : "len",
  164. min : 1,
  165. max : 50,
  166. msg : "标题名称长度不能超过50个字!"
  167. } ]
  168. });
  169. if (rs) {
  170. try{
  171. var docid = document.getElementById("editoffice").contentWindow.functionName();
  172. if(docid=="0"){
  173. alert("公文正文保存失败!");
  174. }else{
  175. $("#docid").val(docid);
  176. }
  177. } catch(Exception){
  178. alert("公文正文保存失败!");
  179. return false;
  180. }
  181. return true;
  182. }
  183. return false;
  184. }
  185. function selectPre(){
  186. if(curTab=="2"){
  187. mytab.selectTabItem("tabitem1");
  188. }else if(curTab=="3"){
  189. mytab.selectTabItem("tabitem2");
  190. }
  191. }
  192. function selectNext(){
  193. if(curTab=="1"){
  194. mytab.selectTabItem("tabitem2");
  195. }else if(curTab=="2"){
  196. mytab.selectTabItem("tabitem3");
  197. }
  198. }
  199. </script>
  200. </head>
  201. <body style="overflow: hidden;">
  202. <form id="cform" action="govSendDocAction.do" method="post" onsubmit="return checkForm();">
  203. <input type="hidden" id="task" name="task" value="sendDoc">
  204. <input type="hidden" id="tabid" name="tabid">
  205. <input type="hidden" id="docid" name="docid">
  206. <div id="title" class="form-button">
  207. <c:choose>
  208. <c:when test="${flowOnOff=='off' }">
  209. <span style="color:red;">请先配置审核流程</span>
  210. </c:when>
  211. <c:when test="${fmodel_state=='0' }">
  212. <span style="color:red;">请先启用审核流程</span>
  213. </c:when>
  214. <c:otherwise>
  215. <input id="btnPre" type="button" class="l-button" value="上一步" onclick="selectPre();" />
  216. <input id="btnNext" type="button" class="l-button" value="下一步" onclick="selectNext();" />
  217. <input id="btnSave" type="button" class="l-button" value="提交" onclick="saveSendDoc();" />
  218. </c:otherwise>
  219. </c:choose>
  220. <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
  221. </div>
  222. <div class="container-layout" >
  223. <div id="div_senddoc" style="margin: 0; padding: 0;height: 100%;">
  224. <div title="公文正文" id="docBodyTab" style="overflow: hidden;">
  225. <table border="0" cellspacing="1" cellpadding="0" style="border: 1px solid #ededed;width:100%;margin-top:-13px;">
  226. <tr>
  227. <th colspan="5">
  228. <div class="l-table-edit line">&nbsp;</div>
  229. </th>
  230. </tr>
  231. <tr style="height:450px;">
  232. <td colspan="5">
  233. <div id="docBody" style="height:450px;margin: 0; padding: 0;">
  234. <iframe name="editoffice" id="editoffice"
  235. src="${pageContext.request.contextPath}/govNtkoDocAction.do?task=toNtkoDoc&wordHeight=420"
  236. frameborder="0" scrolling="no" width="100%" height="450" style="margin-top: 3px;" ></iframe>
  237. </div>
  238. </td>
  239. </tr>
  240. </table>
  241. </div>
  242. <div title="公文拟稿封面" id="docCoverTab" style="overflow: hidden;">
  243. <table class="l-table-edit line" border="0" cellspacing="1" cellpadding="0" style="border: 1px solid #ededed;width:100%;margin-top:-13px;">
  244. <thead>
  245. <tr>
  246. <th colspan="5">
  247. <div class="l-table-edit line">&nbsp;</div>
  248. </th>
  249. </tr>
  250. <tr>
  251. <td colspan="5">
  252. <div id="docCover" style="margin: 0; padding: 0">
  253. <div class="forum-container" >
  254. <center>
  255. <table class="l-table-edit line">
  256. <tr>
  257. <th colspan="2">公文拟稿封面</th>
  258. </tr>
  259. <tr>
  260. <td class="l-table-edit-text" >标题:</td>
  261. <td class="l-table-edit-td">
  262. <input type="text" id="docTitle" name="docTitle" value="" style="width:180px;" />
  263. </td>
  264. </tr>
  265. </table>
  266. </center>
  267. </div>
  268. </div>
  269. </td>
  270. </tr>
  271. </thead>
  272. </table>
  273. </div>
  274. <div title="公文办理" id="docTransTab" style="overflow: hidden;">
  275. <table class="l-table-edit line" border="0" cellspacing="1" cellpadding="0" style="border: 1px solid #ededed;width:100%;margin-top:-13px;">
  276. <thead>
  277. <tr>
  278. <th colspan="5">
  279. <div class="l-table-edit line">&nbsp;</div>
  280. </th>
  281. </tr>
  282. <tr>
  283. <td colspan="5">
  284. <div id="docTrans" style="margin: 0; padding: 0">
  285. <div class="forum-container">
  286. <c:if test="${requestScope.tmodel.isOffice.value == 1 }">
  287. <fieldset style="border: 1px solid #333333; ">
  288. <legend>
  289. <i></i> &nbsp;附件
  290. </legend>
  291. <div class="forum-container">
  292. <table class="l-table-edit">
  293. <tr>
  294. <td class="l-table-edit-text">附件:
  295. </td>
  296. <td class="l-table-edit-td">
  297. <jsp:include page="/include/file.jsp">
  298. <jsp:param name="fieldName" value="fileId"/>
  299. <jsp:param name="folder" value="govflow"/>
  300. <jsp:param name="size" value="20"/>
  301. <jsp:param name="definedCss" value="fileUploadCss"/>
  302. </jsp:include>
  303. </td>
  304. </tr>
  305. </table>
  306. </div>
  307. </fieldset>
  308. </c:if>
  309. <fieldset style="border: 1px solid #333333; ">
  310. <legend>
  311. <i></i> &nbsp;公文办理
  312. </legend>
  313. <center>
  314. <table class="l-table-edit">
  315. <c:choose>
  316. <c:when test="${requestScope.tmodel.pathJudgeType.value == 1 }">
  317. <tr>
  318. <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
  319. </td>
  320. <td class="l-table-edit-td">
  321. <select id="nextTmodelId" name="nextTmodelId" class="width_150 flowText">
  322. <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
  323. <option value="${tmodel.nextTmodelId.tmodelId }">${tmodel.nextTmodelId.tmodelName }</option>
  324. </c:forEach>
  325. </select>
  326. </td>
  327. </tr>
  328. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  329. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  330. <tr>
  331. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  332. </td>
  333. <td class="l-table-edit-td">
  334. <input type="text" class="width_150 flowText" id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" value="">
  335. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  336. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  337. </td>
  338. </tr>
  339. <script type="text/javascript">
  340. $(document).ready(function(){
  341. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  342. });
  343. </script>
  344. </tbody>
  345. </c:forEach>
  346. </c:when>
  347. <c:when test="${requestScope.tmodel.pathJudgeType.value == 0 }">
  348. <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
  349. <tr>
  350. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  351. </td>
  352. <td class="l-table-edit-td"></td>
  353. </tr>
  354. </c:if>
  355. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  356. <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
  357. <tr>
  358. <td class="l-table-edit-text">${nhTmodel.nextTmodelId.tmodelName }<FONT COLOR="red">*</FONT>:
  359. </td>
  360. <td class="l-table-edit-td">
  361. <input type="text" class="width_150 flowText" id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" value="">
  362. <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
  363. <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
  364. </td>
  365. </tr>
  366. <script type="text/javascript">
  367. $(document).ready(function(){
  368. loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
  369. });
  370. </script>
  371. </tbody>
  372. </c:forEach>
  373. </c:when>
  374. </c:choose>
  375. <tr>
  376. <td class="l-table-edit-text">短信提醒:
  377. </td>
  378. <td class="l-table-edit-td">
  379. <input type="checkbox" id="isNextSms" name="isNextSms" value="1"
  380. <c:if test="${requestScope.tmodel.isSms.value == 1}">
  381. checked="checked"
  382. </c:if>
  383. >&nbsp;短信通知下一环节操作人
  384. </td>
  385. </tr>
  386. <tr id="noticeOther" style="display: none;">
  387. <td class="l-table-edit-text">通知其他人:
  388. </td>
  389. <td class="l-table-edit-td">
  390. <textarea id="noticeUsernames" name="noticeUsernames" class="flowText" rows="3" cols="50"></textarea>
  391. <input type="hidden" id="noticeUsers" name="noticeUsers" value="">
  392. <input type="button" style="height: 25px;" class="btn flowText" id="noticeButton" name="noticeButton" value="选择人员">
  393. </td>
  394. </tr>
  395. <tr>
  396. <td class="l-table-edit-text">备注:
  397. </td>
  398. <td class="l-table-edit-td">
  399. <textarea rows="5" cols="100" id="remark" name="remark" class="flowText"></textarea>
  400. </td>
  401. </tr>
  402. </table>
  403. </center>
  404. </fieldset>
  405. </div>
  406. </div>
  407. </td>
  408. </tr>
  409. </thead>
  410. </table>
  411. </div>
  412. </div>
  413. </div>
  414. </form>
  415. <%@ include file="/include/message.jsp"%>
  416. </body>
  417. </html>