Merge remote-tracking branch 'origin/apps_dev' into apps_dev
This commit is contained in:
commit
8fe872eff1
@ -261,6 +261,12 @@ public class IntegrationJob implements IJob {
|
|||||||
if(map!=null) {
|
if(map!=null) {
|
||||||
SDK.getORGAPI().updateDepartment(createDepartment, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date);
|
SDK.getORGAPI().updateDepartment(createDepartment, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DepartmentModel departmentModel=SDK.getORGAPI().getDepartmentById(currentId);
|
||||||
|
String departname=departmentModel.getName();
|
||||||
|
if(!org_name.equals(departname)){
|
||||||
|
SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, ORGAPI.NO_UPDATE, ext5.toString(), dept_flag, org_code, start_date, end_date);
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
String sql ="SELECT USERID FROM ORGUSER WHERE DEPARTMENTID = '"+createDepartment+"'";
|
String sql ="SELECT USERID FROM ORGUSER WHERE DEPARTMENTID = '"+createDepartment+"'";
|
||||||
* String userId = DBSql.getString(sql); UserModel user =
|
* String userId = DBSql.getString(sql); UserModel user =
|
||||||
@ -287,6 +293,14 @@ public class IntegrationJob implements IJob {
|
|||||||
if(map!=null) {
|
if(map!=null) {
|
||||||
SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date);
|
SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DepartmentModel departmentModel=SDK.getORGAPI().getDepartmentById(currentId);
|
||||||
|
String departname=departmentModel.getName();
|
||||||
|
|
||||||
|
if(!org_name.equals(departname)){
|
||||||
|
SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, ORGAPI.NO_UPDATE, ext5.toString(), dept_flag, org_code, start_date, end_date);
|
||||||
|
}
|
||||||
|
|
||||||
if("A".equals(eff_status)) {
|
if("A".equals(eff_status)) {
|
||||||
if(SDK.getORGAPI().getDepartmentById(currentId).isClosed()) {
|
if(SDK.getORGAPI().getDepartmentById(currentId).isClosed()) {
|
||||||
SDK.getORGAPI().activeDepartment(currentId);
|
SDK.getORGAPI().activeDepartment(currentId);
|
||||||
|
|||||||
Binary file not shown.
@ -136,7 +136,11 @@ public class CopyJob implements IJob {
|
|||||||
/**
|
/**
|
||||||
* 创建线程发送待阅数据
|
* 创建线程发送待阅数据
|
||||||
*/
|
*/
|
||||||
course(lists,startTime,jsonObject,pc,list);
|
try {
|
||||||
|
course(lists,startTime,jsonObject,pc,list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
||||||
}else {
|
}else {
|
||||||
int size = users.length/length;
|
int size = users.length/length;
|
||||||
@ -156,7 +160,11 @@ public class CopyJob implements IJob {
|
|||||||
/**
|
/**
|
||||||
* 创建线程发送待阅数据
|
* 创建线程发送待阅数据
|
||||||
*/
|
*/
|
||||||
course(lists,startTime,jsonObject,pc,list);
|
try {
|
||||||
|
course(lists,startTime,jsonObject,pc,list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,11 @@ public class InsertOAJob implements IJob {
|
|||||||
/**
|
/**
|
||||||
* 创建线程发送待阅数据
|
* 创建线程发送待阅数据
|
||||||
*/
|
*/
|
||||||
course(lists,startTime,jsonObject,pc,taskInstance,list);
|
try {
|
||||||
|
course(lists,startTime,jsonObject,pc,taskInstance,list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
||||||
}else {
|
}else {
|
||||||
int size = users.length/length;
|
int size = users.length/length;
|
||||||
@ -192,7 +196,11 @@ public class InsertOAJob implements IJob {
|
|||||||
/**
|
/**
|
||||||
* 创建线程发送待阅数据
|
* 创建线程发送待阅数据
|
||||||
*/
|
*/
|
||||||
course(lists,startTime,jsonObject,pc,taskInstance,list);
|
try {
|
||||||
|
course(lists,startTime,jsonObject,pc,taskInstance,list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
//System.out.println("发送人员数据>>>>>>>>>>>>>>"+list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -5,6 +5,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.publisher.at.SendPublisherMessageAt;
|
||||||
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishClientWeb;
|
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishClientWeb;
|
||||||
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishWeb;
|
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishWeb;
|
||||||
import com.actionsoft.apps.coe.pal.publisher.conf.PublisherConf;
|
import com.actionsoft.apps.coe.pal.publisher.conf.PublisherConf;
|
||||||
@ -145,6 +146,10 @@ public class Plugins implements PluginListener {
|
|||||||
params15.put("icon", "");
|
params15.put("icon", "");
|
||||||
list.add(new AppExtensionProfile("流程发布->通知", "aslp://com.actionsoft.apps.notification/registerApp", params15));
|
list.add(new AppExtensionProfile("流程发布->通知", "aslp://com.actionsoft.apps.notification/registerApp", params15));
|
||||||
|
|
||||||
|
|
||||||
|
// 注册AT公式
|
||||||
|
list.add(new AtFormulaPluginProfile("根据发布部门返回应发送发布人员账号", "@SendPublishMessage(*depName)", SendPublisherMessageAt.class.getName(), "返回发送发布人员账号", "返回发送发布人员账号"));
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,29 @@
|
|||||||
|
package com.actionsoft.apps.coe.pal.publisher.at;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.system.util.StringUtil;
|
||||||
|
import com.actionsoft.bpms.bo.engine.BO;
|
||||||
|
import com.actionsoft.bpms.commons.at.AbstExpression;
|
||||||
|
import com.actionsoft.bpms.commons.at.ExpressionContext;
|
||||||
|
import com.actionsoft.exception.AWSExpressionException;
|
||||||
|
import com.actionsoft.sdk.local.SDK;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
public class SendPublisherMessageAt extends AbstExpression {
|
||||||
|
|
||||||
|
|
||||||
|
public SendPublisherMessageAt(ExpressionContext atContext, String expressionValue) {
|
||||||
|
super(atContext, expressionValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String execute(String expression) {
|
||||||
|
// 获取发送部门
|
||||||
|
String depName = getParameter(expression, 1);
|
||||||
|
BO act_sendpublishmessage=SDK.getBOAPI().query("BO_ACT_SENDPUBLISHMESSAGE").addQuery("DEPNAME=",depName).detail();
|
||||||
|
String sendperson=null;
|
||||||
|
if(act_sendpublishmessage!=null){
|
||||||
|
sendperson=act_sendpublishmessage.getString("SENDPERSON");
|
||||||
|
}
|
||||||
|
return sendperson;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -10,6 +10,8 @@ import java.util.concurrent.ExecutorService;
|
|||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.datamigration.RepositoryAttribute;
|
||||||
|
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
|
||||||
import com.actionsoft.exception.AWSDataAccessException;
|
import com.actionsoft.exception.AWSDataAccessException;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.dom4j.Document;
|
import org.dom4j.Document;
|
||||||
@ -473,6 +475,60 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
try {
|
try {
|
||||||
String fileId = bo.getString("PUBLISHFILEID");
|
String fileId = bo.getString("PUBLISHFILEID");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门视图EXT6字段
|
||||||
|
*/
|
||||||
|
List<RowMap> rlatRowMap=DBSql.getMaps("SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '"+fileId+"' and ATTRID='Issuing_department'");
|
||||||
|
if(rlatRowMap.size()>0){
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
for(RowMap oneRowMap:rlatRowMap){
|
||||||
|
String relationshapetext=oneRowMap.getString("RELATIONSHAPETEXT");
|
||||||
|
JSONObject js=JSONObject.parseObject(relationshapetext);
|
||||||
|
dempId += js.getString("id") + ",";
|
||||||
|
}
|
||||||
|
dempId = dempId.substring(0, dempId.length() - 1);
|
||||||
|
|
||||||
|
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + fileId + "'");
|
||||||
|
|
||||||
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(fileId);
|
||||||
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(fileId, plModel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(fileId);
|
||||||
|
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department");
|
||||||
|
if (null != Issuing_department && !Issuing_department.equals("")) {
|
||||||
|
JSONArray PUBDEPTJA = Issuing_department.getJSONArray("value");
|
||||||
|
SDK.getLogAPI().consoleInfo(Issuing_department.toString());
|
||||||
|
if (null != PUBDEPTJA && !PUBDEPTJA.isEmpty()) {
|
||||||
|
for (Object PUBDEPTO : PUBDEPTJA) {
|
||||||
|
JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO));
|
||||||
|
dempId += PUBDEPTJO.getString("id") + ",";
|
||||||
|
}
|
||||||
|
dempId = dempId.substring(0, dempId.length() - 1);
|
||||||
|
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + fileId + "'");
|
||||||
|
|
||||||
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(fileId);
|
||||||
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(fileId, plModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -484,6 +540,60 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
String changefileIdNew = bo.getString("CHANGEDFILEIDNEW");
|
String changefileIdNew = bo.getString("CHANGEDFILEIDNEW");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门视图EXT6字段
|
||||||
|
*/
|
||||||
|
/* Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(changefileIdNew);
|
||||||
|
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department");
|
||||||
|
if (null != Issuing_department && !Issuing_department.equals("")) {
|
||||||
|
JSONArray PUBDEPTJA = Issuing_department.getJSONArray("value");
|
||||||
|
SDK.getLogAPI().consoleInfo(Issuing_department.toString());
|
||||||
|
if (null != PUBDEPTJA && !PUBDEPTJA.isEmpty()) {
|
||||||
|
for (Object PUBDEPTO : PUBDEPTJA) {
|
||||||
|
JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO));
|
||||||
|
dempId += PUBDEPTJO.getString("id") + ",";
|
||||||
|
}
|
||||||
|
dempId = dempId.substring(0, dempId.length() - 1);
|
||||||
|
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + changefileIdNew + "'");
|
||||||
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(changefileIdNew);
|
||||||
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(changefileIdNew, plModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门视图EXT6字段
|
||||||
|
*/
|
||||||
|
List<RowMap> rlatRowMap=DBSql.getMaps("SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '"+changefileIdNew+"' and ATTRID='Issuing_department'");
|
||||||
|
if(rlatRowMap.size()>0){
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
for(RowMap oneRowMap:rlatRowMap){
|
||||||
|
String relationshapetext=oneRowMap.getString("RELATIONSHAPETEXT");
|
||||||
|
JSONObject js=JSONObject.parseObject(relationshapetext);
|
||||||
|
dempId += js.getString("id") + ",";
|
||||||
|
}
|
||||||
|
dempId = dempId.substring(0, dempId.length() - 1);
|
||||||
|
|
||||||
|
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + changefileIdNew + "'");
|
||||||
|
|
||||||
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(changefileIdNew);
|
||||||
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(changefileIdNew, plModel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,6 +608,11 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送到EHSQ
|
* 推送到EHSQ
|
||||||
*/
|
*/
|
||||||
|
|||||||
Binary file not shown.
@ -230,6 +230,7 @@ public class OutputWordUtil {
|
|||||||
* @param docName
|
* @param docName
|
||||||
*/
|
*/
|
||||||
public static void createZdDoc2(JSONObject dataMap, String tempPath, String tempName, String docName, JSONObject wizardJsonData, String repositoryId, String docPath) throws FileNotFoundException {
|
public static void createZdDoc2(JSONObject dataMap, String tempPath, String tempName, String docName, JSONObject wizardJsonData, String repositoryId, String docPath) throws FileNotFoundException {
|
||||||
|
|
||||||
Configuration configuration = new Configuration();
|
Configuration configuration = new Configuration();
|
||||||
configuration.setDefaultEncoding("UTF-8");
|
configuration.setDefaultEncoding("UTF-8");
|
||||||
|
|
||||||
@ -733,7 +734,6 @@ public class OutputWordUtil {
|
|||||||
if (relationList2.size() > 0) {
|
if (relationList2.size() > 0) {
|
||||||
for (DesignerShapeRelationModel relation : relationList2) {
|
for (DesignerShapeRelationModel relation : relationList2) {
|
||||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||||
System.out.println("relationFileId============="+relationFileId);
|
|
||||||
|
|
||||||
PALRepositoryModel model = PALRepositoryCache.getCache().get(relationFileId);
|
PALRepositoryModel model = PALRepositoryCache.getCache().get(relationFileId);
|
||||||
if (model != null) {
|
if (model != null) {
|
||||||
@ -1073,22 +1073,27 @@ public class OutputWordUtil {
|
|||||||
|
|
||||||
|
|
||||||
// 排序
|
// 排序
|
||||||
Collections.sort(search2, new Comparator<UpfileModel>() {
|
try {
|
||||||
@Override
|
Collections.sort(search2, new Comparator<UpfileModel>() {
|
||||||
public int compare(UpfileModel o1, UpfileModel o2) {
|
@Override
|
||||||
String p1 = o1.getFileName();
|
public int compare(UpfileModel o1, UpfileModel o2) {
|
||||||
String p2 = o2.getFileName();
|
String p1 = o1.getFileName();
|
||||||
|
String p2 = o2.getFileName();
|
||||||
|
|
||||||
|
if (p1.substring(0, 2).equals("附件") && p2.substring(0, 2).equals("附件") && p1.contains(":") && p2.contains(":") && StringUtils.isNumeric(p1.substring(2, p1.indexOf(":"))) && StringUtils.isNumeric(p2.substring(2, p2.indexOf(":")))) {
|
||||||
|
return Integer.parseInt(p1.substring(2, p1.indexOf(":"))) - Integer.parseInt(p2.substring(2, p2.indexOf(":")));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (p1.substring(0, 2).equals("附件") && p2.substring(0, 2).equals("附件") && p1.contains(":") && p2.contains(":") && StringUtils.isNumeric(p1.substring(2, p1.indexOf(":"))) && StringUtils.isNumeric(p2.substring(2, p2.indexOf(":")))) {
|
|
||||||
return Integer.parseInt(p1.substring(2, p1.indexOf(":"))) - Integer.parseInt(p2.substring(2, p2.indexOf(":")));
|
|
||||||
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
//读取模型附件插入手册中文档对象
|
//读取模型附件插入手册中文档对象
|
||||||
if (search2 != null && search2.size() > 0) {
|
if (search2 != null && search2.size() > 0) {
|
||||||
@ -1369,7 +1374,7 @@ public class OutputWordUtil {
|
|||||||
|
|
||||||
tr4.getCharacterFormat().setBold(true);
|
tr4.getCharacterFormat().setBold(true);
|
||||||
tr4.getCharacterFormat().setFontName("宋体");
|
tr4.getCharacterFormat().setFontName("宋体");
|
||||||
paragraph.applyStyle(BuiltinStyle.Heading_1); //应用标题1样式
|
//paragraph.applyStyle(BuiltinStyle.Heading_2); //应用标题1样式
|
||||||
|
|
||||||
//doc.saveToFile(outFile.getPath(), FileFormat.Docx_2013);
|
//doc.saveToFile(outFile.getPath(), FileFormat.Docx_2013);
|
||||||
|
|
||||||
|
|||||||
@ -6456,6 +6456,32 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_UPDATE, CoEOpLogConst.INFO_REPOSITORY_DESIGNER_UPDATE);
|
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_UPDATE, CoEOpLogConst.INFO_REPOSITORY_DESIGNER_UPDATE);
|
||||||
}
|
}
|
||||||
ro.put("define", definition);
|
ro.put("define", definition);
|
||||||
|
|
||||||
|
PALRepositoryModel palmodel = PALRepositoryCache.getCache().get(definition.get("uuid").toString());
|
||||||
|
|
||||||
|
if(palmodel!=null){
|
||||||
|
PALRepository dao = new PALRepository();
|
||||||
|
if(palmodel.getMethodId().equals("control.policy")){
|
||||||
|
JSONObject elements = definition.getJSONObject("elements");
|
||||||
|
Iterator<String> ite = elements.keySet().iterator();
|
||||||
|
PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao();
|
||||||
|
while (ite.hasNext()) {
|
||||||
|
String key = ite.next();
|
||||||
|
JSONObject shape = elements.getJSONObject(key);
|
||||||
|
String name = shape.getString("name");
|
||||||
|
if(name.equals("I/O_L4")){
|
||||||
|
int r = dao.updateRepositoryExt(definition.get("uuid").toString(), palmodel.getExt1(), palmodel.getExt2(), "I/O_L4", palmodel.getExt4());
|
||||||
|
break;
|
||||||
|
} else if (name.equals("regulation")) {
|
||||||
|
int r = dao.updateRepositoryExt(definition.get("uuid").toString(), palmodel.getExt1(), palmodel.getExt2(), "regulation", palmodel.getExt4());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return ro.toString();
|
return ro.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8873,7 +8899,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
|
|
||||||
//新建一个uuid
|
//新建一个uuid
|
||||||
String shapeId = UUIDGener.getObjectId();
|
String shapeId = UUIDGener.getObjectId();
|
||||||
|
|
||||||
//拿到基础结构
|
//拿到基础结构
|
||||||
JSONObject shape;
|
JSONObject shape;
|
||||||
if (type.equals("1")) {
|
if (type.equals("1")) {
|
||||||
@ -8885,6 +8910,10 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
shape.put("id", shapeId);
|
shape.put("id", shapeId);
|
||||||
shape.put("text", title);
|
shape.put("text", title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//图形的数据属性配置
|
//图形的数据属性配置
|
||||||
List<PALMethodAttributeModel> attributeModels = CoeDesignerShapeAPIManager.getInstance().getAllValidShapeAttributeModels(wsId, plModel.getMethodId());
|
List<PALMethodAttributeModel> attributeModels = CoeDesignerShapeAPIManager.getInstance().getAllValidShapeAttributeModels(wsId, plModel.getMethodId());
|
||||||
for (PALMethodAttributeModel attributeModel : attributeModels) {
|
for (PALMethodAttributeModel attributeModel : attributeModels) {
|
||||||
|
|||||||
Binary file not shown.
@ -79,8 +79,12 @@ public class Report1Gener {
|
|||||||
log.info("begin...");
|
log.info("begin...");
|
||||||
log.info("-------------------");
|
log.info("-------------------");
|
||||||
// ----文件处理-----
|
// ----文件处理-----
|
||||||
genarateWord(tempPath, tempName, dcContext.getPath(), jsonObj);
|
|
||||||
|
Map<String,String> errorMap=new HashMap<>();
|
||||||
|
genarateWord(tempPath, tempName, dcContext.getPath(), jsonObj,errorMap);
|
||||||
log.info("end");
|
log.info("end");
|
||||||
|
// xml转换成word格式
|
||||||
|
OutputWordUtil.xml2Word(log, dcContext.getPath());
|
||||||
// }
|
// }
|
||||||
} finally {
|
} finally {
|
||||||
// isRunning = false;
|
// isRunning = false;
|
||||||
@ -96,7 +100,7 @@ public class Report1Gener {
|
|||||||
* @param docPath
|
* @param docPath
|
||||||
* @param wizardJsonData
|
* @param wizardJsonData
|
||||||
*/
|
*/
|
||||||
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData) throws FileNotFoundException {
|
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData,Map<String,String> errorMap) throws FileNotFoundException {
|
||||||
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
||||||
|
|
||||||
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user