| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 |
- <%@page import="com.yw.gov.system.util.SystemUtil"%>
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>收文拟稿</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/yw/gov/receive/style.css" rel="stylesheet" type="text/css" />
- <script src="/shares/js/jquery-1.8.2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/gov/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
- <script type="text/javascript" src="/shares/js/yw/gov/jquery-validation-1.13.1/dist/localization/messages_zh.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/yw/gov/bootstrap-maxlength.js"></script>
- <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.config.js"></script>
- <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.all.min.js"> </script>
- <script type="text/javascript">
- var tab1 = null ;
- $(function(){
- tab1 = $("#tab1").ligerTab();
-
- $("#receivedate").ligerDateEditor({
- showTime : false,
- labelAlign : 'left',
- format : "yyyy-MM-dd",
- initValue:"${fn:substring(requestScope.rc.receivedate, 0, 10) }"
- });
- $("#senddate").ligerDateEditor({
- showTime : false,
- labelAlign : 'left',
- format : "yyyy-MM-dd",
- initValue:"${fn:substring(requestScope.rc.senddate, 0, 10) }"
- });
- var nextUserTag = "${requestScope.tmodel.pathJudgeType.value }";
- if(nextUserTag == "1"){
- $("[name='nextUser']").hide();
- var nextTmodelId = $("[name='nextTmodelId']").val();
- $("#" + nextTmodelId).show();
- }
-
-
- $("[name='nextTmodelId']").change(function(){
- $("[name='nextUser']").hide();
- var nextTmodelId = $("[name='nextTmodelId']").val();
- $("#" + nextTmodelId).show();
- });
-
- $("#form1").validate({
- errorPlacement:function(error,element) {
- element.closest("td").prepend(error);
- }
- });
-
- loadInfo();
-
- $("#officeFrame").attr("src", "${pageContext.request.contextPath}/govNtkoAction.do?task=edit&fileId=${requestScope.ri.docId}");
- });
- function loadInfo(){
- var emergencyDegree = "${requestScope.rc.emergencyDegree }";
- var openType = "${requestScope.rc.openType }";
- var docType = "${requestScope.rc.docType }";
- if(emergencyDegree!=null || emergencyDegree!=""){
- $("#emergencyDegree").val(emergencyDegree);
- }
- if(openType!=null || openType!=""){
- $("#openType").val(openType);
- }
- if(docType!=null || docType!=""){
- $("#docType").val(docType);
- }
- }
- function close1() {
- window.parent.tab.removeSelectedTabItem();
- }
-
- function setValue(fileId, fileName) {
- $("#docid").val(fileId);
- }
-
- function save1(){
- tab1.selectTabItem("tabitem1");
- document.getElementById("officeFrame").contentWindow.save1();
- tab1.selectTabItem("tabitem2");
- var bool = $("#form1").valid();
- if(!bool){
- $("#receiveNo").focus();
- return;
- }
- tab1.selectTabItem("tabitem3");
- var rs = true;
- var usersNames = $("textarea[id*='usersName']:visible");
- for ( var i = 0; i < usersNames.length; i++) {
- rs = $.validate({
- name : usersNames[i].id,
- model : [ {
- type : "require",
- msg : "下一步环节操作人不能为空!"
- } ]
- }) && rs;
- }
- if (!rs) {
- $("#remark1").focus();
- return;
- }
- var x = $("#form1").serializeArray();
- $.each(x, function(i, field) {
- field.value = encodeURI(field.value);
- });
- $.ajax({
- url : "govReceiveAction.do",
- async : false,
- type : "post",
- data : x,
- success : function(data) {
- if(data == "false"){
- addError("流程办理失败!");
- } else {
- addWaitInfo("流程办理成功!",500);
- }
- },
- error : function() {
- alert("数据处理失败,请检查网络重新登录或联系管理员!");
- }
- });
- }
- </script>
- </head>
- <body>
- <form action="govReceiveAction.do" method="post" id="form1" name="form1">
- <div id="title" class="form-button">
- <input onclick="save1();" type="button" value="办理" class="l-button">
- <input onclick="close1();" type="button" value="关闭" class="l-button">
- </div>
- <div class="container-layout" >
- <div id="tab1">
- <div title="公文正文" >
- <div id="maingrid1" style="height: 510px">
- <!-- <iframe name="editoffice" id="editoffice" -->
- <%-- src="${pageContext.request.contextPath}/govNtkoDocAction.do?task=toNtkoDoc&wordHeight=550&docid=${requestScope.di.docId}" --%>
- <!-- frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe> -->
- <iframe name="officeFrame" id="officeFrame" src=""
- frameborder="0" scrolling="no" width="100%" height="100%" style="margin-top: 3px;" ></iframe>
- </div>
- <input type="hidden" id="docid" name="docid" value="${requestScope.di.docId}">
- </div>
- <div title="拟稿封面" >
- <div id="maingrid2">
- <div id="wrap1">
- <div id="heard1">文 件 阅 办 单</div>
- <div id="main">
- <table width="100%" id="mytable" border="0" cellspacing="0" cellpadding="0" >
- <tr>
- <td width="12%" align="center" class="alt">收文编号</td>
- <td width="38%">
- <input type="text" id="receiveNo" name="receiveNo" value="${requestScope.rc.receiveNo }" required data-rule-maxlength="50">
- </td>
- <td width="12%" align="center" class="alt">来文文号</td>
- <td width="38%">
- <input type="text" id="sendNo" name="sendNo" value="${requestScope.rc.sendNo }" required data-rule-maxlength="50">
- </td>
- </tr>
- <tr>
- <td width="12%" align="center" class="alt">来文标题</td>
- <td width="38%">
- <input type="text" id="sendTitle" name="sendTitle" value="${requestScope.rc.sendTitle }" required data-rule-maxlength="100">
- </td>
- <td width="12%" align="center" class="alt">来文单位</td>
- <td width="38%">
- <input type="text" id="sendDept" name="sendDept" value="${requestScope.rc.sendDept }" required data-rule-maxlength="100">
- </td>
- </tr>
-
- <tr>
- <td width="12%" align="center" class="alt">来文主题</td>
- <td width="38%">
- <input type="text" id="sendTheme" name="sendTheme" value="${requestScope.rc.sendTheme }" required data-rule-maxlength="100">
- </td>
- <td width="12%" align="center" class="alt">副 标 题</td>
- <td width="38%">
- <input type="text" id="sendSubtitle" name="sendSubtitle" value="${requestScope.rc.sendSubtitle }" required data-rule-maxlength="100">
- </td>
- </tr>
-
- <tr>
- <td width="12%" align="center" class="alt">收文日期</td>
- <td width="38%">
- <input type="text" id="receivedate" name="receivedate" value="${requestScope.rc.receivedate }" required data-rule-date="true">
- </td>
- <td width="12%" align="center" class="alt">来文日期</td>
- <td width="38%">
- <input type="text" id="senddate" name="senddate" value="${requestScope.rc.senddate }" required data-rule-date="true">
- </td>
- </tr>
-
- <tr>
- <td width="12%" align="center" class="alt">紧急程度</td>
- <td width="38%">
- <select id="emergencyDegree" name="emergencyDegree">
- <option value="0">普通</option>
- <option value="1">紧急</option>
- <option value="2">特急</option>
- </select>
- </td>
- <td width="12%" align="center" class="alt">公开类型</td>
- <td width="38%">
- <select id="openType" name="openType">
- <option value="0">主动公开</option>
- <option value="1">依申请公开</option>
- <option value="2">不公开</option>
- </select>
- </td>
- </tr>
- <tr>
- <td width="12%" align="center" class="alt">文 种</td>
- <td width="38%">
- <select id="docType" name="docType">
- <option value="0">意见</option>
- <option value="1">报告</option>
- <option value="2">公告</option>
- <option value="3">函</option>
- <option value="4">纪要</option>
- <option value="5">批复</option>
- <option value="6">请示</option>
- <option value="7">通报</option>
- <option value="8">通告</option>
- <option value="9">通知</option>
- <option value="10">议案</option>
- <option value="11">决议</option>
- <option value="12">决定</option>
- <option value="13">命令(令)</option>
- <option value="14">公报</option>
- </select>
- </td>
- <td width="12%" align="center" class="alt">保密期限</td>
- <td width="38%">
- <input type="text" id="secrecyTerm" name="secrecyTerm" value="${requestScope.rc.secrecyTerm }" required data-rule-digits="true" data-rule-max="99">
- </td>
- </tr>
- <tr>
- <td height="60" width="12%" align="center" class="alt">主送单位</td>
- <td height="60" colspan="3">
- <textarea id="sendUnit" name="sendUnit" required>${requestScope.rc.sendUnit }</textarea>
- </td>
- </tr>
- <tr>
- <td height="60" width="12%" class="alt">抄送单位</td>
- <td height="60" colspan="3">
- <textarea id="ccUnit" name="ccUnit" required>${requestScope.rc.ccUnit }</textarea>
- </td>
- </tr>
- <tr>
- <td width="12%" class="alt">附 件</td>
- <td colspan="3">
- <jsp:include page="/include/file.jsp" >
- <jsp:param name="fieldName" value="attachments" />
- <jsp:param name="folder" value="gov" />
- <jsp:param name="size" value="10" />
- <jsp:param name="definedCss" value="file-style" />
- <jsp:param name="documentId" value="${requestScope.rc.attachments }" />
- <jsp:param name="isDelFile" value="2"/>
- </jsp:include>
- </td>
- </tr>
- <tr>
- <td height="60" width="12%" class="alt">来文备注</td>
- <td height="60" colspan="3">
- <textarea id="remark" name="remark" required>${requestScope.rc.remark }</textarea>
- </td>
- </tr>
- <tr>
- <td height="60" width="12%" class="alt">拟办意见</td>
- <td height="60" colspan="3">
- <textarea id="nibanOpinion" name="nibanOpinion" required>${requestScope.rc.nibanOpinion }</textarea>
- </td>
- </tr>
- <tr>
- <td height="60" width="12%" class="alt">领导批示</td>
- <td height="60" colspan="3">
- <textarea id="leaderOpinion" name="leaderOpinion" required>${requestScope.rc.leaderOpinion }</textarea>
- </td>
- </tr>
- <tr>
- <td height="60" align="center" class="alt">办理情况</td>
- <td height="60" colspan="3">
- <textarea id="dealSituation" name="dealSituation" required>${requestScope.rc.dealSituation }</textarea>
- </td>
- </tr>
- <input type="hidden" id="id" name="id" value="${requestScope.rc.id }">
- <input type="hidden" id="rid" name="rid" value="${requestScope.rc.rid }">
- </table>
-
- </div>
- </div>
-
- </div>
- </div>
- <div title="办理页面" >
- <div id="maingrid3">
- <center>
- <div class="forum-container">
- <table class="l-table-edit line" id="stable">
- <tr>
- <th colspan="2">流程信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">当前环节名称:
- </td>
- <td class="l-table-edit-td">
- ${requestScope.tmodel.tmodelName }
- </td>
- </tr>
- <c:choose>
- <c:when test="${requestScope.tmodel.pathJudgeType.value == 1 }">
- <tr>
- <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <select id="nextTmodelId" name="nextTmodelId" style="width: 200px;">
- <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
- <option value="${tmodel.nextTmodelId.tmodelId }">${tmodel.nextTmodelId.tmodelName }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
- <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
- <tr>
- <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
- <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
- </td>
- </tr>
- <script type="text/javascript">
- $(document).ready(function(){
- loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
- });
- </script>
- </tbody>
- </c:forEach>
- </c:when>
- <c:when test="${requestScope.tmodel.pathJudgeType.value == 0 }">
- <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
- <tr>
- <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td"></td>
- </tr>
- </c:if>
- <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
- <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
- <tr>
- <td class="l-table-edit-text">${nhTmodel.nextTmodelId.tmodelName }<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <textarea id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" style="width: 400px;"></textarea>
- <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
- </td>
- </tr>
- <script type="text/javascript">
- $(document).ready(function(){
- loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
- });
- </script>
- </tbody>
- </c:forEach>
- </c:when>
- </c:choose>
- <tr>
- <td class="l-table-edit-text">短信提醒:
- </td>
- <td class="l-table-edit-td">
- <input type="checkbox" id="isNextSms" name="isNextSms" value="1"
- <c:if test="${requestScope.tmodel.isSms.value == 1}">
- checked="checked"
- </c:if>
- > 短信通知下一环节操作人
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">备注:
- </td>
- <td class="l-table-edit-td">
- <textarea id="remark1" name="remark1" class="flowText"></textarea>
- </td>
- </tr>
- <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
- <input type="hidden" id="tinsId" name="tinsId" value="${requestScope.tache.tinsId }">
- <input type="hidden" id="preTinsId" name="preTinsId" value="${requestScope.tache.preTinsId }">
- <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
- <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
- <input type="hidden" id="creator" name="creator" value="${requestScope.flow.creator.userId }">
- <input type="hidden" id="groupxuserid" name="groupxuserid" value="${requestScope.flow.groupxuserid.id }">
- <input type="hidden" id="state" name="state" value="${requestScope.flow.groupxuserid.state }">
- <input type="hidden" id="task" name="task" value="process">
- <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid.groupId}">
- <input type="hidden" id="isMoreIns" name="isMoreIns" value="${requestScope.tmodel.isMoreIns.value }">
- <input type="hidden" id="pathJudgeType" name="pathJudgeType" value="${requestScope.tmodel.pathJudgeType.value }">
- <input type="hidden" id="se" name="se" value="${requestScope.tmodel.se.value }">
- <input type="hidden" id="userid" name="userid" value="${requestScope.tache.groupxuserid.id}">
- <input type="hidden" id="handleValidate" value="${ requestScope.tmodel.handleValidate}">
- <input type="hidden" id="insName" name="insName" value="${requestScope.flow.insName }">
- </table>
- <table class="l-table-edit line" id="stable">
- <tr>
- <th>流转信息</th>
- </tr>
- <c:forEach items="${requestScope.processList }" var="tache">
- <tr>
- <td>
- <div class="wf_shadow1">
- <div class="marginleft60">
- 环节名称:<font class="blueFont">${tache.tache.tmodelId.tmodelName }</font>
- 创建时间:<font class="blueFont">${fn:substring(tache.tache.createdate, 0, 16) }</font>
- <c:if test="${tache.tache.finishdate != null }">
- 环节办结:<font class="blueFont">${fn:substring(tache.tache.finishdate, 0, 16) }</font>
- </c:if>
- <font style="color: red; font-size: 14px;">${tache.tache.state.dataName }</font>
- </div>
-
- <div class="marginleft60">
- <font style="color: #b02207; font-size: 20px;">${tache.tache.user.username }
- <c:if test="${tache.tache.authorizedUser.userId!='0' && tache.tache.authorizedUser.userId!='' && tache.tache.authorizedUser.userId!=null}">
- (授权:${tache.tache.authorizedUser.username})
- </c:if>
- </font>
- <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
- :
- </c:if>
- </div>
- <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
- <div class="marginleft60">
- <font style="color: blue; font-size: 14px;">${tache.tache.remark }</font>
- </div>
- </c:if>
- </div>
- </td>
- </tr>
- </c:forEach>
- </table>
- </div>
- </center>
- </div>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
|