1.修改流程手册BUG。
This commit is contained in:
parent
13bbd9ecb7
commit
8e495b7d0a
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>流程手册</name>
|
<name>流程手册</name>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<buildNo>28</buildNo>
|
<buildNo>29</buildNo>
|
||||||
<developer id="776cca9a287c8b4d63b9cad216aa3859" tablePrefix="ACT" url="http://www.actionsoft.com.cn">北京炎黄盈动科技发展有限责任公司</developer>
|
<developer id="776cca9a287c8b4d63b9cad216aa3859" tablePrefix="ACT" url="http://www.actionsoft.com.cn">北京炎黄盈动科技发展有限责任公司</developer>
|
||||||
<productId>6636fc53728276eb3baca55938356b74</productId>
|
<productId>6636fc53728276eb3baca55938356b74</productId>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
@ -34,8 +34,8 @@
|
|||||||
<uninstallListener/>
|
<uninstallListener/>
|
||||||
<reloadable>true</reloadable>
|
<reloadable>true</reloadable>
|
||||||
<requires>
|
<requires>
|
||||||
<require appId="com.actionsoft.apps.coe.pal" notActiveHandler="warning" res="false"/>
|
<require appId="com.actionsoft.apps.coe.pal" notActiveHandler="warning" res="false"/>
|
||||||
<require appId="com.actionsoft.apps.addons.onlinedoc" notActiveHandler="none" res="false"/>
|
<require appId="com.actionsoft.apps.addons.onlinedoc" notActiveHandler="none" res="false"/>
|
||||||
</requires>
|
</requires>
|
||||||
<properties>
|
<properties>
|
||||||
<property action="edit" group="参数" name="DEFAULT_REPORT_PR" title="默认使用手册模板" type="combox" isSystem="false" desc="流程建模或流程发布时生成流程手册的模板选择" ref="步骤横表:cross|步骤竖表:vertical|项目定制:project">cross</property>
|
<property action="edit" group="参数" name="DEFAULT_REPORT_PR" title="默认使用手册模板" type="combox" isSystem="false" desc="流程建模或流程发布时生成流程手册的模板选择" ref="步骤横表:cross|步骤竖表:vertical|项目定制:project">cross</property>
|
||||||
|
|||||||
@ -192,6 +192,16 @@ public class Report1Gener {
|
|||||||
|
|
||||||
//流程绩效
|
//流程绩效
|
||||||
List<DesignerShapeRelationModel> metrics = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "Process_performance_metrics");
|
List<DesignerShapeRelationModel> metrics = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "Process_performance_metrics");
|
||||||
|
if (metrics.size() == 0) {
|
||||||
|
dataMap.put("pl_Name_process_performance_indicator", "");
|
||||||
|
dataMap.put("pl_set_the_purpose", "");
|
||||||
|
dataMap.put("pl_Index_definition", "");
|
||||||
|
dataMap.put("pl_computational_formula", "");
|
||||||
|
dataMap.put("pl_data_sources", "");
|
||||||
|
dataMap.put("pl_unit_measurement", "");
|
||||||
|
dataMap.put("pl_statistical_period", "");
|
||||||
|
dataMap.put("pl_explain", "");
|
||||||
|
}
|
||||||
for (DesignerShapeRelationModel relation : metrics) {
|
for (DesignerShapeRelationModel relation : metrics) {
|
||||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||||
String relationShapeId = relation.getRelationShapeId();//实例ID
|
String relationShapeId = relation.getRelationShapeId();//实例ID
|
||||||
@ -402,47 +412,53 @@ public class Report1Gener {
|
|||||||
JSONArray termTable = new JSONArray(); //术语定义Table
|
JSONArray termTable = new JSONArray(); //术语定义Table
|
||||||
// 属性特征 属性代码KEY
|
// 属性特征 属性代码KEY
|
||||||
PALRepositoryPropertyModel term = PALRepositoryPropertyCache.getPropertyByPropertyId(repositoryModel.getId(),"term");
|
PALRepositoryPropertyModel term = PALRepositoryPropertyCache.getPropertyByPropertyId(repositoryModel.getId(),"term");
|
||||||
String termVal = term.getPropertyValue();
|
if (term != null) {
|
||||||
JSONObject termObj = JSONObject.parseObject(termVal);
|
String termVal = term.getPropertyValue();
|
||||||
if (termObj != null && !termObj.isEmpty()) {
|
JSONObject termObj = JSONObject.parseObject(termVal);
|
||||||
JSONArray tableArr = termObj.getJSONArray("table");
|
if (termObj != null && !termObj.isEmpty()) {
|
||||||
if (tableArr != null && !tableArr.isEmpty()) {
|
JSONArray tableArr = termObj.getJSONArray("table");
|
||||||
for (Object obj : tableArr) {
|
if (tableArr != null && !tableArr.isEmpty()) {
|
||||||
JSONObject obj2 = (JSONObject) obj;
|
for (Object obj : tableArr) {
|
||||||
if (!"table_head".equals(obj2.getString("id"))) {
|
JSONObject obj2 = (JSONObject) obj;
|
||||||
String name = obj2.getString("name");
|
if (!"table_head".equals(obj2.getString("id"))) {
|
||||||
String desc = obj2.getString("desc");
|
String name = obj2.getString("name");
|
||||||
JSONObject tmp = new JSONObject();
|
String desc = obj2.getString("desc");
|
||||||
tmp.put("name", name);
|
JSONObject tmp = new JSONObject();
|
||||||
tmp.put("desc", desc);
|
tmp.put("name", name);
|
||||||
termTable.add(tmp);
|
tmp.put("desc", desc);
|
||||||
|
termTable.add(tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JSONArray organizationTable = new JSONArray(); //组织职责Table
|
JSONArray organizationTable = new JSONArray(); //组织职责Table
|
||||||
// 属性特征 属性代码KEY
|
// 属性特征 属性代码KEY
|
||||||
PALRepositoryPropertyModel Organizational = PALRepositoryPropertyCache.getPropertyByPropertyId(repositoryModel.getId(),"Organizational_role");
|
PALRepositoryPropertyModel Organizational = PALRepositoryPropertyCache.getPropertyByPropertyId(repositoryModel.getId(),"Organizational_role");
|
||||||
String OrganizationalVal = Organizational.getPropertyValue();
|
if (Organizational != null){
|
||||||
JSONObject OrganizationalObj = JSONObject.parseObject(OrganizationalVal);
|
String OrganizationalVal = Organizational.getPropertyValue();
|
||||||
if (OrganizationalObj != null && !OrganizationalObj.isEmpty()) {
|
JSONObject OrganizationalObj = JSONObject.parseObject(OrganizationalVal);
|
||||||
JSONArray tableArr = OrganizationalObj.getJSONArray("table");
|
if (OrganizationalObj != null && !OrganizationalObj.isEmpty()) {
|
||||||
if (tableArr != null && !tableArr.isEmpty()) {
|
JSONArray tableArr = OrganizationalObj.getJSONArray("table");
|
||||||
for (Object obj : tableArr) {
|
if (tableArr != null && !tableArr.isEmpty()) {
|
||||||
JSONObject obj2 = (JSONObject) obj;
|
for (Object obj : tableArr) {
|
||||||
if (!"table_head".equals(obj2.getString("id"))) {
|
JSONObject obj2 = (JSONObject) obj;
|
||||||
String name = obj2.getString("name");
|
if (!"table_head".equals(obj2.getString("id"))) {
|
||||||
String desc = obj2.getString("desc");
|
String name = obj2.getString("name");
|
||||||
JSONObject tmp = new JSONObject();
|
String desc = obj2.getString("desc");
|
||||||
tmp.put("name", name);
|
JSONObject tmp = new JSONObject();
|
||||||
tmp.put("desc", desc);
|
tmp.put("name", name);
|
||||||
organizationTable.add(tmp);
|
tmp.put("desc", desc);
|
||||||
|
organizationTable.add(tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//支持文件
|
//支持文件
|
||||||
JSONArray supportfiles = new JSONArray(); //组织职责Table
|
JSONArray supportfiles = new JSONArray(); //组织职责Table
|
||||||
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "support_files");
|
List<DesignerShapeRelationModel> relationList = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "support_files");
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>CoE PAL流程资产库</name>
|
<name>CoE PAL流程资产库</name>
|
||||||
<version>6.5</version>
|
<version>6.5</version>
|
||||||
<buildNo>71</buildNo>
|
<buildNo>73</buildNo>
|
||||||
<developer id="776cca9a287c8b4d63b9cad216aa3859" url="http://www.actionsoft.com.cn" tablePrefix="ACT">北京炎黄盈动科技发展有限责任公司</developer>
|
<developer id="776cca9a287c8b4d63b9cad216aa3859" url="http://www.actionsoft.com.cn" tablePrefix="ACT">北京炎黄盈动科技发展有限责任公司</developer>
|
||||||
<productId/>
|
<productId/>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
|
|||||||
@ -2261,11 +2261,13 @@ public class CoeProcessLevelUtil {
|
|||||||
|
|
||||||
String sessionId = new SSOUtil().registerClientSessionNoPassword(plModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
String sessionId = new SSOUtil().registerClientSessionNoPassword(plModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||||
|
|
||||||
String relationFileId = JSONObject.parseObject(property.getPropertyValue()).get("relationFileId").toString();
|
if(JSONObject.parseObject(property.getPropertyValue())!=null){
|
||||||
|
String relationFileId = JSONObject.parseObject(property.getPropertyValue()).get("relationFileId").toString();
|
||||||
|
String url=SDK.getPortalAPI().getPortalUrl()+"/r/w?uuid="+relationFileId+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId+"";
|
||||||
|
String appUrl="<a href='"+url+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
||||||
|
attribute.put("value", appUrl);
|
||||||
|
}
|
||||||
|
|
||||||
String url=SDK.getPortalAPI().getPortalUrl()+"/r/w?uuid="+relationFileId+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId+"";
|
|
||||||
String appUrl="<a href='"+url+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
|
||||||
attribute.put("value", appUrl);
|
|
||||||
}else{
|
}else{
|
||||||
attribute.put("value", inputValue);
|
attribute.put("value", inputValue);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>表单手册</name>
|
<name>表单手册</name>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<buildNo>4</buildNo>
|
<buildNo>5</buildNo>
|
||||||
<developer id="00000000000000000000000000000000" tablePrefix="EU" url="http://www.awspaas.com">AWSPaaS-EndUser</developer>
|
<developer id="00000000000000000000000000000000" tablePrefix="EU" url="http://www.awspaas.com">AWSPaaS-EndUser</developer>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
<description><![CDATA[将流程输入输出等关键要素和关联模型输出成易于阅读和打印的Word文档]]></description>
|
<description><![CDATA[将流程输入输出等关键要素和关联模型输出成易于阅读和打印的Word文档]]></description>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>制度手册</name>
|
<name>制度手册</name>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<buildNo>3</buildNo>
|
<buildNo>4</buildNo>
|
||||||
<developer id="00000000000000000000000000000000" tablePrefix="EU" url="http://www.awspaas.com">AWSPaaS-EndUser</developer>
|
<developer id="00000000000000000000000000000000" tablePrefix="EU" url="http://www.awspaas.com">AWSPaaS-EndUser</developer>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
<description><![CDATA[将流程输入输出等关键要素和关联模型输出成易于阅读和打印的Word文档]]></description>
|
<description><![CDATA[将流程输入输出等关键要素和关联模型输出成易于阅读和打印的Word文档]]></description>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user