发布流程判断
This commit is contained in:
parent
9942e92ace
commit
19df749406
Binary file not shown.
@ -1,30 +1,14 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher.client.util;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import com.actionsoft.apps.coe.pal.pal.manage.publish.dao.PublishHistory;
|
||||
import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishHistoryModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask;
|
||||
import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel;
|
||||
import com.actionsoft.apps.coe.pal.publisher.constant.PublisherConstant;
|
||||
import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance;
|
||||
import com.actionsoft.bpms.commons.database.RowMap;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.bpms.util.UUIDGener;
|
||||
import com.actionsoft.bpms.util.UtilDate;
|
||||
import com.actionsoft.bpms.util.UtilString;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.sun.org.apache.xalan.internal.xsltc.compiler.sym;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author baizp
|
||||
@ -104,7 +88,6 @@ public class ProcesNumberUtil {
|
||||
}
|
||||
|
||||
|
||||
|
||||
return nowNum + "";
|
||||
}
|
||||
|
||||
@ -173,7 +156,7 @@ public class ProcesNumberUtil {
|
||||
String orgCode = null;
|
||||
String regionCode = null;
|
||||
String productCode = null;
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
// 根据主表数据查询出权限的编码
|
||||
String qxSql = "select * from BO_ACT_AUTH_INFO where ORGNAME='%s' and LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' "
|
||||
+ " and ADAPT_REGION_NAME = '%s' and APPLICABLE_PRODUCT='%s'";
|
||||
@ -291,7 +274,7 @@ public class ProcesNumberUtil {
|
||||
String orgCode = null;
|
||||
String regionCode = null;
|
||||
String productCode = null;
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
// 根据主表数据查询出权限的编码
|
||||
String qxSql = "select * from BO_ACT_AUTH_INFO where ORGNAME='%s' and LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' "
|
||||
+ " and ADAPT_REGION_NAME = '%s' and APPLICABLE_PRODUCT='%s'";
|
||||
|
||||
@ -1,31 +1,5 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher.client.web;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.LinkedBlockingDeque;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel;
|
||||
import com.actionsoft.exception.AWSDataAccessException;
|
||||
import com.actionsoft.sdk.local.api.BOQueryAPI;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
|
||||
import com.actionsoft.apps.coe.pal.cooperation.CoeCooperationAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.cooperation.cache.CooperationCache;
|
||||
@ -47,6 +21,8 @@ import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.CoeProcessLevelAutoBean;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
||||
@ -86,16 +62,14 @@ import com.actionsoft.bpms.server.fs.DCContext;
|
||||
import com.actionsoft.bpms.server.fs.dc.DCProfileManager;
|
||||
import com.actionsoft.bpms.server.fs.dc.DCUtil;
|
||||
import com.actionsoft.bpms.util.Base64;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.bpms.util.UUIDGener;
|
||||
import com.actionsoft.bpms.util.UtilDate;
|
||||
import com.actionsoft.bpms.util.UtilFile;
|
||||
import com.actionsoft.bpms.util.UtilString;
|
||||
import com.actionsoft.bpms.util.*;
|
||||
import com.actionsoft.exception.AWSDataAccessException;
|
||||
import com.actionsoft.exception.AWSException;
|
||||
import com.actionsoft.exception.AWSQuotaException;
|
||||
import com.actionsoft.i18n.I18nRes;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.actionsoft.sdk.local.api.AppAPI;
|
||||
import com.actionsoft.sdk.local.api.BOQueryAPI;
|
||||
import com.actionsoft.sdk.local.api.ProcessExecuteQuery;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@ -104,6 +78,15 @@ import com.google.common.base.Joiner;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 流程发布App
|
||||
@ -3524,7 +3507,6 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
obj.put("upfileId", js);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4367,7 +4349,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
PALRepositoryModel model = PALRepositoryCache.getCache().get(id);
|
||||
|
||||
ProcessInstance processInstance = SDK.getProcessAPI().getInstanceById(processInstId);
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
//ID获取L1 L2 L3 的值
|
||||
List<RowMap> resulttmp = DBSql.getMaps(String.format("select PROPERTYID,PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PROPERTYID in ('Process_Architecture_L1','Process_Architecture_L2','Process_Architecture_L3') AND PLID='%s'", id));
|
||||
for (RowMap tmp : resulttmp) {
|
||||
@ -4438,7 +4420,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
public String getApproveInfos(UserContext me, String level1, String level2, String level3, String level4, String company, String region, String product, String bindid) {
|
||||
|
||||
ProcessInstance processInstance = SDK.getProcessAPI().getInstanceById(bindid);
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
//l1 l2 l3 l4 保存到表里
|
||||
DBSql.update(String.format("update BO_ACT_COE_PUBLISH set LEVEL_1_PROCESS_NAME='%s',LEVEL_2_PROCESS_NAME='%s',LEVEL_3_PROCESS_NAME='%s' where BINDID='%s'", level1, level2, level3, bindid));
|
||||
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
|
||||
@ -4449,7 +4431,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
} else {
|
||||
//l1 l2 l3 l4 保存到表里
|
||||
DBSql.update(String.format("update BO_ACT_COE_PUBLISH set LEVEL_1_PROCESS_NAME='%s',LEVEL_2_PROCESS_NAME='%s',LEVEL_3_PROCESS_NAME='%s',LEVEL_4_PROCESS_NAME='%s' where BINDID='%s'", level1, level2, level3, level4, bindid));
|
||||
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and LEVEL_4_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
|
||||
String sql = "select AUDITOR1,AUDITOR_NO_1,L1_SP,AUDITOR2,AUDITOR_NO_2,L2_SP,AUDITOR3,AUDITOR_NO_3,L3_SP,AUDITOR4,AUDITOR_NO_4,L4_SP from BO_ACT_AUTH_INFO where LEVEL_1_PROCESS_NAME='%s' and LEVEL_2_PROCESS_NAME='%s' and LEVEL_3_PROCESS_NAME='%s' and LEVEL_4_PROCESS_NAME='%s' and ORGNAME='%s' and ADAPT_REGION_NAME='%s' and APPLICABLE_PRODUCT='%s'";
|
||||
RowMap result = DBSql.getMap(String.format(sql, level1, level2, level3, level4, company, region, product));
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
ro.put("data", result == null ? "" : result);
|
||||
@ -4790,7 +4772,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
try {
|
||||
ProcessInstance processInstance = SDK.getProcessAPI().getInstanceById(processInstId);
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
//ID获取L1 L2 L3 的值
|
||||
List<RowMap> resulttmp = DBSql.getMaps(String.format("select PROPERTYID,PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PROPERTYID in ('Process_Architecture_L1','Process_Architecture_L2','Process_Architecture_L3') AND PLID='%s'", uuid));
|
||||
for (RowMap tmp : resulttmp) {
|
||||
@ -4821,6 +4803,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
|
||||
/**
|
||||
* 中断任务操作
|
||||
*
|
||||
* @param uuid
|
||||
* @param processInstId
|
||||
* @return
|
||||
|
||||
@ -22,7 +22,6 @@ import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.InterruptListener;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.InterruptListenerInterface;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.ListenerConst;
|
||||
import com.actionsoft.bpms.commons.database.RowMap;
|
||||
import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
@ -51,7 +50,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
* @throws Exception
|
||||
@ -60,7 +58,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
public boolean execute(ProcessExecutionContext param) throws Exception {
|
||||
|
||||
|
||||
|
||||
List<BO> gridNData = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(param.getProcessInstance().getId()).list();
|
||||
String bindid = param.getProcessInstance().getId();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
@ -88,7 +85,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void verifyPublish(String publishfileid, BO rowData, String bindid, StringBuffer sb, StringBuffer sb1, String type) {
|
||||
defineQualityCheck(publishfileid);
|
||||
// 校验
|
||||
@ -222,9 +218,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -244,9 +237,9 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 判断文件属性、数据属性校验
|
||||
*
|
||||
* @param uuid
|
||||
* @return
|
||||
*/
|
||||
@ -316,9 +309,9 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
sb6.append("校验未通过,请检查模型是否都已连线!");
|
||||
sbs.append(sb6);
|
||||
}
|
||||
if (sbs.length()>0){
|
||||
/*if (sbs.length()>0){
|
||||
throw new BPMNError("0313", sbs.toString());
|
||||
}
|
||||
}*/
|
||||
|
||||
/************************************文件属性校验************************************/
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
@ -344,7 +337,8 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
StringBuffer sb1 = new StringBuffer();
|
||||
StringBuffer sb2 = new StringBuffer();
|
||||
StringBuffer sb3 = new StringBuffer();
|
||||
StringBuffer sb4 = new StringBuffer();;
|
||||
StringBuffer sb4 = new StringBuffer();
|
||||
;
|
||||
sb.append("<span style='font-weight:bold'>质量校验<span><br/>");
|
||||
|
||||
|
||||
@ -450,7 +444,6 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static List<JSONObject> getShapeJsonToJsonObject2(String messageJson) {
|
||||
@ -529,6 +522,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
|
||||
/**
|
||||
* 根据uuid寻找对应的json文件即图形文件
|
||||
*
|
||||
* @param uuid 文件id
|
||||
* @return json文件
|
||||
*/
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher.event;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
||||
import com.actionsoft.apps.coe.pal.publisher.constant.PublisherConstant;
|
||||
@ -18,7 +15,9 @@ import com.actionsoft.bpms.util.UUIDGener;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.actionsoft.sdk.local.api.BOQueryAPI;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.docx4j.wml.P;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SubFormAfterSave extends ExecuteListener {
|
||||
|
||||
@ -141,9 +140,9 @@ public class SubFormAfterSave extends ExecuteListener {
|
||||
根据L1、L2、L3、L4查询权限矩阵所属分部数据
|
||||
*/
|
||||
ProcessInstance processInstance = SDK.getProcessAPI().getInstanceById(processInstId);
|
||||
if(processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362")){
|
||||
if (processInstance.getProcessDefId().equals("obj_fb1c7a54b98b412187388c8bab407362") || processInstance.getProcessDefId().equals("obj_5609e1d265dc4e7094c617f20be353dd") || processInstance.getProcessDefId().equals("obj_114e76f691c14beb902e9904f4be26f8")) {
|
||||
String sql = "SELECT SSFB FROM BO_ACT_AUTH_INFO WHERE LEVEL_1_PROCESS_NAME=? AND LEVEL_2_PROCESS_NAME=? AND LEVEL_3_PROCESS_NAME=? AND ORGNAME=? AND ADAPT_REGION_NAME=? AND APPLICABLE_PRODUCT=?";
|
||||
String ssfb = DBSql.getString(sql, new Object[] { formData.getString("LEVEL_1_PROCESS_NAME"),formData.getString("LEVEL_2_PROCESS_NAME"),formData.getString("LEVEL_3_PROCESS_NAME"),formData.getString("LEVEL_4_PROCESS_NAME"),formData.getString("ADAPT_NAME_THE_COMPANY"),formData.getString("ADAPT_REGION_NAME"),formData.getString("APPLICABLE_PRODUCT") });
|
||||
String ssfb = DBSql.getString(sql, new Object[]{formData.getString("LEVEL_1_PROCESS_NAME"), formData.getString("LEVEL_2_PROCESS_NAME"), formData.getString("LEVEL_3_PROCESS_NAME"), formData.getString("ADAPT_NAME_THE_COMPANY"), formData.getString("ADAPT_REGION_NAME"), formData.getString("APPLICABLE_PRODUCT")});
|
||||
|
||||
if (StringUtils.isNotEmpty(ssfb)) {
|
||||
int r1 = DBSql.update("UPDATE BO_ACT_COE_PUBLISH SET SSFB='" + ssfb + "'WHERE BINDID ='" + processInstId + "'");
|
||||
@ -158,8 +157,8 @@ public class SubFormAfterSave extends ExecuteListener {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public String saveFileType(String processInstId) {
|
||||
List<BO> bolistN = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(processInstId).list();
|
||||
ArrayList<String> arr = new ArrayList<String>();
|
||||
@ -204,6 +203,7 @@ public class SubFormAfterSave extends ExecuteListener {
|
||||
}
|
||||
return processInstId;
|
||||
}
|
||||
|
||||
public ArrayList<String> typeList(ArrayList<String> arr, String plId) {
|
||||
String sql = "SELECT PLMETHODID,EXT3 FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + plId + "'";
|
||||
RowMap map = DBSql.getMap(sql);
|
||||
|
||||
@ -53,7 +53,6 @@ $(document).ready(function(){
|
||||
})
|
||||
|
||||
|
||||
|
||||
//获取wsid
|
||||
function getWsId() {
|
||||
var param = {
|
||||
@ -332,11 +331,6 @@ function initHtml() {
|
||||
stopHtml += '<button name="add" type="button" class="awsui-btn awsui-btn-blue" onclick="addProcess(\'stop\');">新增</button>';
|
||||
// stopHtml += '<button name="save" type="button" class="awsui-btn" onclick="saveFormData(\'stop\');">保存</button>';
|
||||
stopHtml += '<button name="delete" type="button" class="awsui-btn awsui-btn-danger" onclick="deleteFile(\'stop\');">删除</button>';
|
||||
stopHtml += '<button name="refreshManual" type="button" class="awsui-btn awsui-btn" onclick="refreshManuals(\''+$("#processInstId").val()+'\',\''+"1"+'\');">重新生成手册</button>';
|
||||
stopHtml += '<button name="showFiles" type="button" class="awsui-btn awsui-btn" onclick="getFiles();">生成附件</button>';
|
||||
|
||||
|
||||
|
||||
}
|
||||
//stopHtml += '<button name="add" type="button" class="awsui-btn awsui-btn-blue" onclick="addProcess(\'stop\');">新增</button>';
|
||||
// stopHtml += '<button name="save" type="button" class="awsui-btn" onclick="saveFormData(\'stop\');">保存</button>';
|
||||
@ -465,6 +459,7 @@ function initPublishData(data, type, pageNumber, start){
|
||||
|
||||
// 初始化数据
|
||||
function selectPublishData(data, type, pageNumber, start) {
|
||||
|
||||
//渲染到前台的流程架构L1,L2,L3,L4
|
||||
var param = {
|
||||
cmd: 'com.actionsoft.apps.coe.pal.publisher_getPublishNameByJs',
|
||||
@ -485,15 +480,16 @@ function selectPublishData(data, type, pageNumber, start) {
|
||||
var L1 = r.data.data.Process_Architecture_L1;
|
||||
var L2 = r.data.data.Process_Architecture_L2;
|
||||
var L3 = r.data.data.Process_Architecture_L3;
|
||||
var L4 = r.data.data.Process_Architecture_L4;
|
||||
|
||||
//var L4 = r.data.data.Process_Architecture_L4;
|
||||
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||
var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
//var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
ui("LEVEL_1_PROCESS_NAME", L1);
|
||||
ui("LEVEL_2_PROCESS_NAME", L2);
|
||||
ui("LEVEL_3_PROCESS_NAME", L3);
|
||||
ui("LEVEL_4_PROCESS_NAME",L4);
|
||||
//ui("LEVEL_4_PROCESS_NAME",L4);
|
||||
showlist(data, type, pageNumber, start);
|
||||
//发起请求把审批人查询出来~
|
||||
queryapprove();
|
||||
@ -509,8 +505,6 @@ function selectPublishData(data, type, pageNumber, start) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//by bzp
|
||||
function queryapprove() {
|
||||
var level1 = ui("LEVEL_1_PROCESS_NAME");
|
||||
@ -525,7 +519,7 @@ function queryapprove(){
|
||||
level1: ui("LEVEL_1_PROCESS_NAME"),
|
||||
level2: ui("LEVEL_2_PROCESS_NAME"),
|
||||
level3: ui("LEVEL_3_PROCESS_NAME"),
|
||||
level4 :ui("LEVEL_4_PROCESS_NAME"),
|
||||
//level4 :ui("LEVEL_4_PROCESS_NAME"),
|
||||
company: ui("ADAPT_NAME_THE_COMPANY"),
|
||||
region: ui("ADAPT_REGION_NAME"),
|
||||
product: ui("APPLICABLE_PRODUCT"),
|
||||
@ -542,24 +536,24 @@ function queryapprove(){
|
||||
if (info != '') {
|
||||
ui("PERSON_THREE_LEVEL_PROCESS_NO", info.AUDITOR_NO_3);
|
||||
ui("PROCESS_RESPONSIBLE_PERSON_NO", info.AUDITOR_NO_2);
|
||||
ui("PERSON_FOUR_LEVEL_PROCESS_NO",info.AUDITOR_NO_4);
|
||||
//ui("PERSON_FOUR_LEVEL_PROCESS_NO",info.AUDITOR_NO_4);
|
||||
ui("RESPONSIBLE_PERSON1_NO", info.AUDITOR_NO_1);
|
||||
ui("PERSON_THREE_LEVEL_PROCESS", info.AUDITOR3);
|
||||
ui("PROCESS_RESPONSIBLE_PERSON", info.AUDITOR2);
|
||||
ui("RESPONSIBLE_PERSON1", info.AUDITOR1);
|
||||
ui("PERSON_FOUR_LEVEL_PROCESS",info.AUDITOR4);
|
||||
//ui("PERSON_FOUR_LEVEL_PROCESS",info.AUDITOR4);
|
||||
|
||||
ui("LEVEL_AUDIT_REQUIRED", info.L3_SP);
|
||||
ui("SECONDARY_AUDIT_REQUIRED", info.L2_SP);
|
||||
ui("LEVEL_1_AUDIT_REQUIRED", info.L1_SP);
|
||||
ui("FOURTH_AUDIT_REQUIRED",info.L4_SP);
|
||||
|
||||
//ui("FOURTH_AUDIT_REQUIRED",info.L4_SP);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//预览下载附件
|
||||
function openUrl(url) {
|
||||
//$.simpleAlert("文件正在处理", "loading");
|
||||
@ -876,7 +870,8 @@ function addProcess(type) {
|
||||
title: title,
|
||||
height: height,
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
{
|
||||
text: '确定', cls: "blue", handler: function () {
|
||||
window.$.simpleAlert("请稍等...", "loading");
|
||||
if (type == 'new') {
|
||||
if (treeCheckedNewArr.length == 0) {
|
||||
@ -976,12 +971,10 @@ function addProcess(type) {
|
||||
}
|
||||
}
|
||||
if (type == 'stop') {
|
||||
debugger;
|
||||
if (treeCheckedStopArr.length == 0) {
|
||||
$.simpleAlert('停用流程不能为空');
|
||||
return;
|
||||
} else {
|
||||
|
||||
disabledButton();
|
||||
setTimeout(function () {
|
||||
// 获取说明内容
|
||||
@ -1019,8 +1012,13 @@ function addProcess(type) {
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
}},
|
||||
{text:'关闭',handler:function(){$("#publisher_dialog").dialog("close");}}
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '关闭', handler: function () {
|
||||
$("#publisher_dialog").dialog("close");
|
||||
}
|
||||
}
|
||||
],
|
||||
onClose: function () {
|
||||
if ($("#treeDialog").css('display') != 'none') {
|
||||
@ -1072,7 +1070,6 @@ function publishFlowCheck(data) {
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1116,7 +1113,6 @@ function initChangedData(changeFileId) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 打开流程文件查看页面
|
||||
function openPortalPage(uuid, taskId) {
|
||||
var param = {
|
||||
@ -1182,7 +1178,8 @@ function openQueryDataDialog(type) {
|
||||
$("#loading-demo-basic").loading();
|
||||
$("#treeDialog").dialog({
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
{
|
||||
text: '确定', cls: "blue", handler: function () {
|
||||
if (type == 'new') {
|
||||
getNewPublishBatchResult(type);
|
||||
// 数据写入主dialog
|
||||
@ -1208,7 +1205,6 @@ function openQueryDataDialog(type) {
|
||||
$('#publisher_dialog_name').val(names);
|
||||
closeDialog();// 关闭窗口
|
||||
} else {// stop
|
||||
debugger;
|
||||
getStopBatchResult(type);
|
||||
// 数据写入主dialog
|
||||
var names = '';
|
||||
@ -1221,10 +1217,13 @@ function openQueryDataDialog(type) {
|
||||
$('#publisher_dialog_name').val(names);
|
||||
closeDialog();// 关闭窗口
|
||||
}
|
||||
}},
|
||||
{text:'关闭',handler:function(){
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '关闭', handler: function () {
|
||||
closeDialog();// 关闭窗口
|
||||
}}
|
||||
}
|
||||
}
|
||||
],
|
||||
onClose: function () {
|
||||
$('#autoSearchProcessDiv').empty();
|
||||
@ -1275,6 +1274,7 @@ function getNotPublishTreeData(type) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//加载type为new的树节点
|
||||
function loadNewData(treeNode) {
|
||||
// 如果是父节点并且存在子节点执行加载
|
||||
@ -1358,12 +1358,12 @@ function getNewPublishBatchResult(type) {
|
||||
var L1 = r.data.data.Process_Architecture_L1;
|
||||
var L2 = r.data.data.Process_Architecture_L2;
|
||||
var L3 = r.data.data.Process_Architecture_L3;
|
||||
var L4 = r.data.data.Process_Architecture_L4;
|
||||
//var L4 = r.data.data.Process_Architecture_L4;
|
||||
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||
var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old) || (L4old != '' && L4 != L4old)){
|
||||
//var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
if ((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)) {
|
||||
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||
alert("只能选择同一级别下的流程,请重新选择");
|
||||
return;
|
||||
@ -1472,12 +1472,12 @@ function getChangeBatchResult(type) {
|
||||
var L1 = r.data.data.Process_Architecture_L1;
|
||||
var L2 = r.data.data.Process_Architecture_L2;
|
||||
var L3 = r.data.data.Process_Architecture_L3;
|
||||
var L4 = r.data.data.Process_Architecture_L4;
|
||||
//var L4 = r.data.data.Process_Architecture_L4;
|
||||
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||
var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old) || (L4old != '' && L3 != L4old)){
|
||||
//var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
if ((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)) {
|
||||
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||
return;
|
||||
@ -1534,12 +1534,12 @@ function getStopBatchResult(type) {
|
||||
var L1 = r.data.data.Process_Architecture_L1;
|
||||
var L2 = r.data.data.Process_Architecture_L2;
|
||||
var L3 = r.data.data.Process_Architecture_L3;
|
||||
var L4 = r.data.data.Process_Architecture_L4;
|
||||
//var L4 = r.data.data.Process_Architecture_L4;
|
||||
var L1old = ui("LEVEL_1_PROCESS_NAME");
|
||||
var L2old = ui("LEVEL_2_PROCESS_NAME");
|
||||
var L3old = ui("LEVEL_3_PROCESS_NAME");
|
||||
var L4old = ui("LEVEL_4_PROCESS_NAME");
|
||||
if((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old) || (L4old != '' && L4 != L4old)){
|
||||
//var L4old = ui("LEVEL_3_PROCESS_NAME");
|
||||
if ((L1old != '' && L1 != L1old) || (L2old != '' && L2 != L2old) || (L3old != '' && L3 != L3old)) {
|
||||
$('#publisher_dialog').find('div.dlg-button').find('button:first').prop('disabled', '');
|
||||
$.simpleAlert("只能选择同一级别下的流程,请重新选择");
|
||||
return;
|
||||
@ -1645,7 +1645,8 @@ function createBatchReport(data, createTime) {
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
if (jQuery.inArray(data[i].publishFileId, ids) != -1) {
|
||||
data[i].taskId = 'submit_create';
|
||||
};
|
||||
}
|
||||
;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
@ -2540,6 +2541,7 @@ function auto_click(obj, type) {
|
||||
initTree.selectNode(plId);
|
||||
$("#autoSearchProcessDiv").empty().hide();
|
||||
}
|
||||
|
||||
/********************************快速搜索end***************************************/
|
||||
|
||||
function listenCloseEvent() {
|
||||
@ -2625,7 +2627,6 @@ function downloadReport(uuid, taskId) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
//刷新页面
|
||||
function getFiles() {
|
||||
FormToolBarAction.BTN_SAVE();
|
||||
@ -2650,11 +2651,11 @@ function updateFramework(uuid) {
|
||||
var L1 = r.data.data.Process_Architecture_L1;
|
||||
var L2 = r.data.data.Process_Architecture_L2;
|
||||
var L3 = r.data.data.Process_Architecture_L3;
|
||||
var L4 = r.data.data.Process_Architecture_L4;
|
||||
//var L4 = r.data.data.Process_Architecture_L4;
|
||||
ui("LEVEL_1_PROCESS_NAME", L1);
|
||||
ui("LEVEL_2_PROCESS_NAME", L2);
|
||||
ui("LEVEL_3_PROCESS_NAME", L3);
|
||||
ui("LEVEL_4_PROCESS_NAME",L4);
|
||||
//ui("LEVEL_4_PROCESS_NAME",L4);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user