步骤横表手册项目内容调整
This commit is contained in:
parent
5a612cb3c3
commit
2fe1797f78
Binary file not shown.
@ -192,18 +192,16 @@ public class Report1Gener {
|
|||||||
PALRepositoryModel repositoryModel = PALRepositoryQueryAPIManager.getInstance().queryPalRepositoryModelByPalId(repositoryId);
|
PALRepositoryModel repositoryModel = PALRepositoryQueryAPIManager.getInstance().queryPalRepositoryModelByPalId(repositoryId);
|
||||||
|
|
||||||
//流程绩效
|
//流程绩效
|
||||||
|
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", "");
|
||||||
List<DesignerShapeRelationModel> metrics = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "Process_performance_metrics");
|
List<DesignerShapeRelationModel> metrics = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "Process_performance_metrics");
|
||||||
if (metrics.size() == 0) {
|
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", "");
|
|
||||||
|
|
||||||
}else {
|
|
||||||
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
|
||||||
@ -285,15 +283,47 @@ public class Report1Gener {
|
|||||||
file.mkdir();
|
file.mkdir();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//文件属性附件处理
|
||||||
|
int fileIndex = 1;
|
||||||
|
if (search != null && search.size() > 0) {
|
||||||
|
// 复制附件
|
||||||
|
for (UpfileModel upfileModel : search) {
|
||||||
|
if (!"f".equals(upfileModel.getType())) {// 文件
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// 复制doccenter下的文件
|
||||||
|
DCContext dcContext = null;
|
||||||
|
DCPluginProfile dcProfile = DCProfileManager.getDCProfile(CoEConstant.APP_ID, CoeFileConstant.COE_UPFILE);
|
||||||
|
if (dcProfile != null) {
|
||||||
|
dcContext = new DCContext(userContext, dcProfile, CoEConstant.APP_ID, "file", upfileModel.getPl_uuid(), upfileModel.getFileName());
|
||||||
|
}
|
||||||
|
File sourceFile = new UtilFile(dcContext.getFilePath());
|
||||||
|
File targetFile = new UtilFile(file.toString() + File.separator + dcContext.getFileName());
|
||||||
|
try {
|
||||||
|
UtilFile.copyFile(sourceFile, targetFile);
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println(e);
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
JSONObject object = new JSONObject();
|
||||||
|
object.put("file_name", fileIndex + "." + upfileModel.getFileName());
|
||||||
|
String link = fileName + File.separator + upfileModel.getFileName();
|
||||||
|
object.put("link", link);
|
||||||
|
fileTable.add(object);
|
||||||
|
fileIndex++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//流程说明
|
||||||
if (repositoryFileElements != null) {
|
if (repositoryFileElements != null) {
|
||||||
int index = 1;// 流程步骤序号
|
int index = 1;// 流程步骤序号
|
||||||
int dangerIndex = 1;// 风险序号
|
int dangerIndex = 1;// 风险序号
|
||||||
int regulateIndex = 1;// 控制序号
|
int regulateIndex = 1;// 控制序号
|
||||||
for (Map<String, Object> shape : repositoryFileElements) {
|
for (Map<String, Object> shape : repositoryFileElements) {
|
||||||
//如果图形元素不是流程步骤,不导出该元素
|
//如果图形元素不是流程步骤,不导出该元素
|
||||||
if (PrReportComment.PROCESS_STEP.indexOf((String)shape.get("type")) == -1 && "method_approval_node,method_service_node,method_manual_node".indexOf((String)shape.get("type")) == -1) {
|
// if (PrReportComment.PROCESS_STEP.indexOf((String)shape.get("type")) == -1 && "method_approval_node,method_service_node,method_manual_node".indexOf((String)shape.get("type")) == -1) {
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
JSONObject _tr = new JSONObject();
|
JSONObject _tr = new JSONObject();
|
||||||
OutputWordUtil.setShapeDefaultValue2(repositoryId, _tr); //设置默认值
|
OutputWordUtil.setShapeDefaultValue2(repositoryId, _tr); //设置默认值
|
||||||
_tr.put(OutputWordUtil.SERIAL_NUMBER, index); //序号
|
_tr.put(OutputWordUtil.SERIAL_NUMBER, index); //序号
|
||||||
@ -333,10 +363,11 @@ public class Report1Gener {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
JSONObject object = new JSONObject();
|
JSONObject object = new JSONObject();
|
||||||
object.put("shape_file_name", upfileModel.getFileName());
|
object.put("shape_file_name", fileIndex+"."+upfileModel.getFileName());
|
||||||
String link = fileName + File.separator + upfileModel.getFileName();
|
String link = fileName + File.separator + upfileModel.getFileName();
|
||||||
object.put("shape_file_link", link);
|
object.put("shape_file_link", link);
|
||||||
shapeFileTable.add(object);
|
shapeFileTable.add(object);
|
||||||
|
fileIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(shapeFileTable.size() == 0) {// 没有附件时给空值,不然使用office打开会解析错误
|
if(shapeFileTable.size() == 0) {// 没有附件时给空值,不然使用office打开会解析错误
|
||||||
@ -385,36 +416,6 @@ public class Report1Gener {
|
|||||||
// 流程步骤的指标表格
|
// 流程步骤的指标表格
|
||||||
setTableValueOfKPI("kpi", repositoryId, KPITable, relationFileMap);
|
setTableValueOfKPI("kpi", repositoryId, KPITable, relationFileMap);
|
||||||
|
|
||||||
if (search != null && search.size() > 0) {
|
|
||||||
// 复制附件
|
|
||||||
int index = 1;
|
|
||||||
for (UpfileModel upfileModel : search) {
|
|
||||||
if (!"f".equals(upfileModel.getType())) {// 文件
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 复制doccenter下的文件
|
|
||||||
DCContext dcContext = null;
|
|
||||||
DCPluginProfile dcProfile = DCProfileManager.getDCProfile(CoEConstant.APP_ID, CoeFileConstant.COE_UPFILE);
|
|
||||||
if (dcProfile != null) {
|
|
||||||
dcContext = new DCContext(userContext, dcProfile, CoEConstant.APP_ID, "file", upfileModel.getPl_uuid(), upfileModel.getFileName());
|
|
||||||
}
|
|
||||||
File sourceFile = new UtilFile(dcContext.getFilePath());
|
|
||||||
File targetFile = new UtilFile(file.toString() + File.separator + dcContext.getFileName());
|
|
||||||
try {
|
|
||||||
UtilFile.copyFile(sourceFile, targetFile);
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.out.println(e);
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
JSONObject object = new JSONObject();
|
|
||||||
object.put("file_name", index + "." + upfileModel.getFileName());
|
|
||||||
String link = fileName + File.separator + upfileModel.getFileName();
|
|
||||||
object.put("link", link);
|
|
||||||
fileTable.add(object);
|
|
||||||
index++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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");
|
||||||
|
|||||||
@ -4932,6 +4932,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:p wsp:rsidR="00F14252" wsp:rsidRDefault="00F14252" wsp:rsidP="00F14252">
|
<w:p wsp:rsidR="00F14252" wsp:rsidRDefault="00F14252" wsp:rsidP="00F14252">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:spacing w:line="360" w:line-rule="auto"/>
|
<w:spacing w:line="360" w:line-rule="auto"/>
|
||||||
|
<w:jc w:val="center"/>
|
||||||
<w:rPr>${pl_diagram}
|
<w:rPr>${pl_diagram}
|
||||||
<w:rFonts w:h-ansi="宋体" w:cs="Arial" w:hint="fareast"/>
|
<w:rFonts w:h-ansi="宋体" w:cs="Arial" w:hint="fareast"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
@ -4939,7 +4940,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:r>
|
<w:r>
|
||||||
<w:pict>
|
<w:pict>
|
||||||
<w:binData w:name="wordml://06000003.emz" xml:space="preserve">${pl_diagram}</w:binData>
|
<w:binData w:name="wordml://06000003.emz" xml:space="preserve">${pl_diagram}</w:binData>
|
||||||
<v:shape id="图片 13" o:spid="_x0000_i1079" type="#_x0000_t75" style="width:700px;height:${pl_diagram_height}px;mso-position-horizontal-relative:page;mso-position-vertical-relative:page">
|
<v:shape id="图片 13" o:spid="_x0000_i1079" type="#_x0000_t75" style="width:${pl_diagram_width}px;height:${pl_diagram_height}px;mso-position-horizontal-relative:page;mso-position-vertical-relative:page">
|
||||||
<v:imagedata src="wordml://06000003.emz" o:title=""/>
|
<v:imagedata src="wordml://06000003.emz" o:title=""/>
|
||||||
</v:shape>
|
</v:shape>
|
||||||
</w:pict>
|
</w:pict>
|
||||||
@ -5607,7 +5608,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:sz-cs w:val="21"/>
|
<w:sz-cs w:val="21"/>
|
||||||
<w:lang w:val="EN-US"/>
|
<w:lang w:val="EN-US"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>${table2.shape_activity_description}</w:t>
|
<w:t>${table2.shape_name}</w:t>
|
||||||
</w:r>
|
</w:r>
|
||||||
</w:p>
|
</w:p>
|
||||||
</w:tc>
|
</w:tc>
|
||||||
@ -6856,6 +6857,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:r wsp:rsidR="00692573" wsp:rsidRPr="000D620D">
|
<w:r wsp:rsidR="00692573" wsp:rsidRPr="000D620D">
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
<w:rStyle w:val="a4"/>
|
<w:rStyle w:val="a4"/>
|
||||||
|
<w:color w:val="2440b3"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>${table4.file_name}</w:t>
|
<w:t>${table4.file_name}</w:t>
|
||||||
</w:r>
|
</w:r>
|
||||||
@ -6863,33 +6865,34 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
</w:p>
|
</w:p>
|
||||||
</#list>
|
</#list>
|
||||||
<#list repository_shape_table as table1>
|
<#list repository_shape_table as table1>
|
||||||
<#list table1.shape_File_Table as table11>
|
<#list table1.shape_File_Table as table11>
|
||||||
<w:p wsp:rsidR="00E54D8E" wsp:rsidRDefault="005011CF">
|
<w:p wsp:rsidR="00E54D8E" wsp:rsidRDefault="005011CF">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:pStyle w:val="p0"/>
|
<!-- <w:pStyle w:val="p0"/>-->
|
||||||
<w:rPr>
|
<!-- <w:rPr>-->
|
||||||
<w:rFonts w:ascii="宋体" w:h-ansi="Calibri" w:cs="宋体"/>
|
<!-- <w:rFonts w:ascii="宋体" w:h-ansi="Calibri" w:cs="宋体"/>-->
|
||||||
<wx:font wx:val="宋体"/>
|
<!-- <wx:font wx:val="宋体"/>-->
|
||||||
<w:color w:val="000000"/>
|
<!-- <w:color w:val="2440b3"/>-->
|
||||||
<w:sz w:val="22"/>
|
<!-- <w:sz w:val="22"/>-->
|
||||||
<w:sz-cs w:val="20"/>
|
<!-- <w:sz-cs w:val="20"/>-->
|
||||||
</w:rPr>
|
<!-- </w:rPr>-->
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
<w:hlink w:dest="${table11.shape_file_link}">
|
<w:hlink w:dest="${table11.shape_file_link}">
|
||||||
<w:r wsp:rsidR="00CB55CB" wsp:rsidRPr="005011CF">
|
<w:r wsp:rsidR="00CB55CB" wsp:rsidRPr="005011CF">
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
<w:rStyle w:val="a4"/>
|
<w:rStyle w:val="a4"/>
|
||||||
<w:rFonts w:ascii="宋体" w:h-ansi="Calibri" w:cs="宋体" w:hint="fareast"/>
|
<w:color w:val="2440b3"/>
|
||||||
<wx:font wx:val="宋体"/>
|
<!-- <w:rFonts w:ascii="宋体" w:h-ansi="Calibri" w:cs="宋体" w:hint="fareast"/>-->
|
||||||
<w:sz w:val="22"/>
|
<!-- <wx:font wx:val="宋体"/>-->
|
||||||
<w:sz-cs w:val="20"/>
|
<!-- <w:sz w:val="22"/>-->
|
||||||
</w:rPr>
|
<!-- <w:sz-cs w:val="20"/>-->
|
||||||
<w:t>${table11.shape_file_name}</w:t>
|
</w:rPr>
|
||||||
</w:r>
|
<w:t>${table11.shape_file_name}</w:t>
|
||||||
</w:hlink>
|
</w:r>
|
||||||
</w:p>
|
</w:hlink>
|
||||||
</#list>
|
</w:p>
|
||||||
</#list>
|
</#list>
|
||||||
|
</#list>
|
||||||
<w:p wsp:rsidR="00B739CB" wsp:rsidRDefault="00B739CB">
|
<w:p wsp:rsidR="00B739CB" wsp:rsidRDefault="00B739CB">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
Loading…
Reference in New Issue
Block a user