| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <%@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/dispatch/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();
-
- $("#draftdate").ligerDateEditor({
- showTime : false,
- labelAlign : 'left',
- format : "yyyy-MM-dd"
- });
-
- $("#printdate").ligerDateEditor({
- showTime : false,
- labelAlign : 'left',
- format : "yyyy-MM-dd"
- });
- 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);
- }
- });
-
- $("#officeFrame").attr("src", "${pageContext.request.contextPath}/govNtkoAction.do?task=edit&fileId=");
-
- });
-
- 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){
- $("#title").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 : "govDispatchAction.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="govDispatchAction.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" --%>
- <!-- 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">
- </div>
- <div title="拟稿封面" >
- <div id="maingrid2">
- <div id="wrap">
- <div id="heard1">公 文 拟 稿 封 面</div>
- <div id="main">
- <table width="100%" id="mytable" border="0" cellspacing="0" cellpadding="0" >
- <tr>
- <td align="center" class="alt" >文件名称</td>
- <td colspan="5">
- <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>
- </tr>
- <tr>
- <td height="35" align="center" class="alt">文件标题</td>
- <td height="35" colspan="5">
- <input type="text" id="title" name="title" required data-rule-maxlength="100">
- </td>
- </tr>
- <tr>
- <td height="35" align="center" class="alt">文件附件</td>
- <td height="35" colspan="5">
- <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:include>
- </td>
- </tr>
- <tr>
- <td width="10%" align="center" class="alt" >发文字号</td>
- <td width="45%">
- <input type="text" id="sendNo" name="sendNo" required data-rule-maxlength="50">
- </td>
- <td width="10%" align="center" class="alt">定密期限</td>
- <td width="10%">
- <input type="text" id="secrecyTerm" name="secrecyTerm" required data-rule-digits="true" data-rule-max="99">
- </td>
- <td width="10%" align="center" class="alt">缓急</td>
- <td width="15%">
- <select id="emergencyDegree" name="emergencyDegree">
- <option value="0">普通</option>
- <option value="1">紧急</option>
- <option value="2">特急</option>
- </select>
- </td>
- </tr>
- <tr>
- <td height="50" align="center" class="alt">是否公开</td>
- <td colspan="5">
- <select id="openType" name="openType">
- <option value="0">主动公开</option>
- <option value="1">依申请公开</option>
- <option value="2">不公开</option>
- </select>
- </td>
- </tr>
- <tr>
- <td height="35" align="center" class="alt">主题词</td>
- <td height="35" colspan="5">
- <input type="text" id="theme" name="theme" required data-rule-maxlength="100">
- </td>
- </tr>
- <tr>
- <td height="50" align="center" class="alt">内容概述</td>
- <td height="50" colspan="5">
- <textarea id="content" name="content" required></textarea>
- </td>
- </tr>
- <tr>
- <td height="35" align="center" class="alt">主送单位</td>
- <td height="35" colspan="5">
- <textarea id="sendUnit" name="sendUnit" required></textarea>
- </td>
- </tr>
- <tr>
- <td height="35" align="center" class="alt">抄送单位</td>
- <td colspan="5">
- <textarea id="ccUnit" name="ccUnit" required></textarea>
- </td>
- </tr>
- <tr>
- <td align="center" class="alt">承办单位</td>
- <td>
- <input type="text" id="organizer" name="organizer" required data-rule-maxlength="100">
- </td>
- <td align="center" class="alt">拟稿人</td>
- <td>
- <input type="text" id="drafter" name="drafter" required data-rule-maxlength="100">
- </td>
- <td align="center" class="alt">拟稿日期</td>
- <td>
- <input type="text" id="draftdate" name="draftdate" required data-rule-date="true">
- </td>
- </tr>
- <tr>
- <td align="center" class="alt">科室核稿</td>
- <td colspan="2">
- <input type="text" id="deptAudit" name="deptAudit" required data-rule-maxlength="100">
- </td>
- <td align="center" class="alt">法制审核</td>
- <td colspan="2">
- <input type="text" id="legalAudit" name="legalAudit" required data-rule-maxlength="100">
- </td>
- </tr>
- <tr>
- <td height="70" align="center" class="alt">部门会稿</td>
- <td height="70" colspan="5">
- <textarea id="deptHuigao" name="deptHuigao" required></textarea>
- </td>
- </tr>
- <tr>
- <td align="center" class="alt">办公室审核</td>
- <td colspan="5">
- <textarea id="officeAudit" name="officeAudit" required></textarea>
- </td>
- </tr>
- <tr>
- <td height="50"align="center" class="alt">签发</td>
- <td height="50" colspan="5">
- <textarea id="issue" name="issue" required></textarea>
- </td>
- </tr>
- <tr>
- <td align="center" class="alt">打印份数</td>
- <td align="center"><font class="alt1">共</font>
- <input type="text" id="print" name="print" required data-rule-digits="true" data-rule-max="99" style="width:50%;">
- <font class="alt1">份</font></td>
- <td align="center" class="alt">印发日期</td>
- <td colspan="3">
- <input type="text" id="printdate" name="printdate" required data-rule-date="true">
- </td>
- </tr>
-
- </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>
- <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="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
- <input type="hidden" id="state" name="state" value="${session.groupXUser.state }">
- <input type="hidden" id="insId" name="insId" value="<%=SystemUtil.getSeq()%>">
- <input type="hidden" id="tinsId" name="tinsId" value="<%=SystemUtil.getSeq()%>">
- <input type="hidden" id="task" name="task" value="create">
- </table>
- </div>
- </center>
- </div>
- </div>
- </div>
- </div>
- </form>
- </body>
- </html>
|