123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <%@include file="/commons/include/get.jsp"%>
- <title>我的请求</title>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/SelectUtil.js" ></script>
- <script type="text/javascript">
- var dialog;
- function showDetail(obj){
- var url = $(obj).attr("action");
- jQuery.openFullWindow(url);
- };
-
- //重新提交
- function executeTask(procInstId){
- var url= "${ctx}/platform/bpm/task/toStart.ht?instanceId="+procInstId;
- jQuery.openFullWindow(url);
- };
- //公文归档方法 limeng2019-5-29 add
- function forDone(runId){
- var url="${ctx}/platform/register/provinceRegister/forDone.ht?runId="+runId;
- $.post(url,{runId:runId},function(data){
- var jsdata=JSON.parse(data);
- if(jsdata.success){
- $.ligerDialog.success("公文归档成功!","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }else{
- $.ligerDialog.err("网络繁忙!请稍后重试","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }
- });
- }
- function showDocument(){
- var h = document.body.clientHeight;
- $('.datagrid-mask').css({display:"block",width:"100%",height:h}).appendTo("body");
- }
- function removeDocument(){
- $('.datagrid-mask').remove();
- }
- //公文归档并下发方法 limeng 2019-08-05 add
- function forDoneAndDispatch(runId) {
- beforeCheck(runId);
- return;
- showDocument();
- var url="${ctx}/platform/bpm/processRun/forDoneAndDispatch.ht?runId="+runId;
- $.post(url,{runId:runId},function(data){
- var jsdata=JSON.parse(data);
- removeDocument();
- if(jsdata.success == "true"){
- $.ligerDialog.success("公文归档成功!","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }else if(jsdata.success == "empty"){
- $.ligerDialog.warn("该流程主送人抄送人为空!无法下发","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }else if(jsdata.success == "emptyFile"){
- $.ligerDialog.warn("该流程未产生正文!无法下发","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }else{
- $.ligerDialog.warn("网络繁忙!请稍后重试","提示",function(rtn){
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- });
- }
- });
- }
- //公文归档并上报方法 add
- function checkFileAndReport(runId){
- var url="${ctx}/platform/bpm/processRun/checkFileAndReport.ht?runId="+runId;
- dialog=DialogUtil.open({
- height : 550,
- width : 900,
- title : '上报',
- url: url
- });
- }
- function beforeCheck(runId,flag){
- var url="${ctx}/platform/bpm/processRun/beforeCheck.ht?runId="+runId+"&flag="+flag;
- dialog=DialogUtil.open({
- height : 550,
- width : 900,
- title : '请核对文件',
- url: url
- });
- }
- function checkReport(runId,isOrNotHave){
- if(isOrNotHave==1){
- console.log(isOrNotHave)
- var url="${ctx}/platform/bpm/processRun/checkReport.ht?runId="+runId;
- dialog=DialogUtil.open({
- height : 750,
- width : 1050,
- title : '归档',
- url: url
- });
- }else{
- forDone(runId);
- }
- }
- //查看签收方法 limeng 2019-08-06 add
- function checkSignReceipt(runId){
- var url="${ctx}/platform/bpm/processRun/checkSignReceipt.ht?runId="+runId;
- dialog=DialogUtil.open({
- height : 600,
- width : 800,
- title : '查看签收',
- url: url
- });
- }
- function closeDia(){
- dialog.close();
- }
- function closeBeforeCheckDia(){
- dialog.close();
- location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
- }
- </script>
- </head>
- <body>
- <div class="panel datagrid-mask">
- <div class="hide-panel">
- <div class="panel-top">
- <div class="tbar-title">
- <span class="tbar-label">我的发文</span>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
-
- <div class="group">
- <a class="link search" id="btnSearch"><span></span>查询</a>
- <a href="javascript:;" class="link reset" onclick="$.clearQueryForm();"><span></span>重置</a>
- <div class="l-bar-separator"></div>
- </div>
- </div>
- </div>
- <div class="panel-search">
- <form id="searchForm" method="post" action="myFwOrver.ht">
- <ul class="row">
- <input type="hidden" name="nodePath" value="${param['nodePath']}" title="流程分类节点路径"></input>
- <li>
- <span class="label">发文标题:</span>
- <input type="text" name="Q_subject_SUPL" size="18" class="inputText" value="${param['Q_subject_SUPL']}"/>
- </li>
- <li>
- <span class="label">流程名称:</span>
- <input type="text" name="Q_processName_SUPL" size="18" class="inputText" value="${param['Q_processName_SUPL']}" />
- <input type="hidden" id="orgId" name="Q_orgId_L" value="${param['Q_orgId_L']}" />
- </li>
- <li>
- <span class="label">状态:</span>
- <select name="Q_status_SN">
- <option value="">所有</option>
- <option value="2" <c:if test="${param['Q_status_SN'] == '2'}">selected</c:if>>结束</option>
- <option value="3" <c:if test="${param['Q_status_SN'] == '3'}">selected</c:if>>人工结束</option>
- <option value="10" <c:if test="${param['Q_status_SN'] == '10'}">selected</c:if>>逻辑删除</option>
- </select>
- </li>
- <!-- 是否有全局流水号 -->
- <c:if test="${hasGlobalFlowNo }">
- <li><span class="label">工单号:</span><input type="text" name="Q_globalFlowNo_SL" class="inputText" value="${param['Q_globalFlowNo_SL']}"/></li>
- </c:if>
- <div class="row_date">
- <li>
- <span class="label">创建时间 从:</span>
- <input name="Q_begincreatetime_DL" id="Q_begincreatetime_DL" size="18" class="inputText datePicker" datetype="1" value="${param['Q_begincreatetime_DL']}" />
- </li>
- <li>
- <span class="label">至: </span>
- <input name="Q_endcreatetime_DG" id="Q_endcreatetime_DG" size="18" class="inputText datePicker" datetype="2" value="${param['Q_endcreatetime_DG']}" />
- </li>
- </div>
-
- </ul>
- </form>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <display:table name="processRunList" id="processRunItem" requestURI="myFwOrver.ht" sort="external" cellpadding="1" cellspacing="1" export="false" class="table-grid">
- <display:column titleKey="序号" media="html" style="width:50px;">${processRunItem_rowNum}</display:column>
- <!-- 是否有全局流水号 -->
- <c:if test="${hasGlobalFlowNo }">
- <%-- <display:column property="globalFlowNo" title="工单号" sortable="true" sortName="globalFlowNo" style="text-align:left;"></display:column> --%>
- </c:if>
- <display:column titleKey="请求标题" sortable="true" sortName="subject" style="text-align:left">
- <c:choose>
- <c:when test="${!processRunItem.allowBackToStart and (processRunItem.status==4 or processRunItem.status==5)}">
- <a href="#${processRunItem.actInstId}" onclick="javascript:executeTask('${processRunItem.actInstId}')" title='${processRunItem.subject}'>${f:subString(processRunItem.subject)}</a>
- </c:when>
- <c:otherwise>
- <a name="processDetail" onclick="showDetail(this)" href="#${processRunItem.runId}" action="${ctx}/platform/bpm/processRun/info.ht?prePage=myCompletedList&link=1&runId=${processRunItem.runId}" title='${processRunItem.subject}'>${f:subString(processRunItem.subject)}</a>
- </c:otherwise>
- </c:choose>
- </display:column>
- <display:column titleKey="创建时间" sortable="true" sortName="createtime">
- <fmt:formatDate value="${processRunItem.createtime}"
- pattern="yyyy-MM-dd HH:mm:ss" />
- </display:column>
- <display:column titleKey="持续时间" sortable="true" sortName="duration">
- ${f:getDurationTime(processRunItem.createtime)}
- </display:column>
- <display:column titleKey="类型" >
- <c:out value="${processRunItem.typeName}"></c:out>
- </display:column>
- <display:column titleKey="操作" sortable="true" sortName="modifty" >
- <c:choose>
- <c:when test="${processRunItem.status==2||processRunItem.status==3 || processRunItem.status==12}">
- <c:choose>
- <c:when test="${processRunItem.idea == 0}">
- <c:choose>
- <c:when test="${processRunItem.status == 12}">
- <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
- </c:when>
- <c:otherwise>
- <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','dispatch')" value="归档并下发" />
- </c:otherwise>
- </c:choose>
- </c:when>
- <c:when test="${processRunItem.idea == 3}">
- <c:choose>
- <c:when test="${processRunItem.status == 12}">
- <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
- </c:when>
- <c:otherwise>
- <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','report')" value="归档并上报" />
- </c:otherwise>
- </c:choose>
- </c:when>
- <c:when test="${processRunItem.idea == 4}">
- <c:choose>
- <c:when test="${processRunItem.status == 12}">
- <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
- </c:when>
- <c:otherwise>
- <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','dispatch')" value="归档并下发" />
- </c:otherwise>
- </c:choose>
- </c:when>
- <c:when test="${processRunItem.idea == 1}">
- <input type="button" class="guidang" onclick="checkReport('${processRunItem.runId}','${processRunItem.isOrNotHave}')" value="归档" />
- </c:when>
- <c:otherwise>
- <input type="button" class="guidang" onclick="forDone('${processRunItem.runId}')" value="归档" />
- </c:otherwise>
- </c:choose>
- </c:when>
- </c:choose>
- </display:column>
- </display:table>
- <hotent:paging tableId="processRunItem"></hotent:paging>
- <div class="datagrid-mask" style="position:fixed;z-index:110;top:0px;left:0px;display:none;background-color:rgba(0,0,0,0.2);"><img src="${ctx}/styles/blue/images/qdd.gif" style="left:50%;margin-left:-160px;display:block;position:absolute;top:50%;margin-top:-152px;"></div>
- </div>
- <!-- end of panel-body -->
- </div>
- <!-- end of panel -->
- </body>
- </html>
|