表单/制度手册代码模板提交
This commit is contained in:
parent
2935707204
commit
46e54a8bec
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
package com.awspaas.apps.coe.pal.output.bd.report1;
|
package com.awspaas.apps.coe.pal.output.bd.report1;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
|
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
|
||||||
@ -98,6 +99,8 @@ public class Report1Gener {
|
|||||||
genarateWord(tempPath, tempName, dcContext.getPath(), jsonObj);
|
genarateWord(tempPath, tempName, dcContext.getPath(), jsonObj);
|
||||||
log.info("end");
|
log.info("end");
|
||||||
// }
|
// }
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
// isRunning = false;
|
// isRunning = false;
|
||||||
}
|
}
|
||||||
@ -111,7 +114,7 @@ public class Report1Gener {
|
|||||||
* @param docPath
|
* @param docPath
|
||||||
* @param wizardJsonData
|
* @param wizardJsonData
|
||||||
*/
|
*/
|
||||||
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData) {
|
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData) throws FileNotFoundException {
|
||||||
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
||||||
|
|
||||||
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
||||||
@ -180,7 +183,7 @@ public class Report1Gener {
|
|||||||
}
|
}
|
||||||
JSONObject dataMap = getData(repositoryId, wizardJsonData, docPath, fileName);
|
JSONObject dataMap = getData(repositoryId, wizardJsonData, docPath, fileName);
|
||||||
if (dataMap != null) {
|
if (dataMap != null) {
|
||||||
OutputWordUtil.createDoc2(dataMap, tempPath, tempName, docName);
|
OutputWordUtil.createBdDoc2(dataMap, tempPath, tempName, docName,repositoryId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -297,7 +300,7 @@ public class Report1Gener {
|
|||||||
/**序号改为流程编号**/
|
/**序号改为流程编号**/
|
||||||
|
|
||||||
// 节点的附件处理
|
// 节点的附件处理
|
||||||
boolean isNumberAsc = false;
|
/*boolean isNumberAsc = false;
|
||||||
JSONArray shapeFileTable = new JSONArray(); //流程节点附件Table
|
JSONArray shapeFileTable = new JSONArray(); //流程节点附件Table
|
||||||
if (search != null && search.size() > 0) {
|
if (search != null && search.size() > 0) {
|
||||||
// 复制附件
|
// 复制附件
|
||||||
@ -362,7 +365,7 @@ public class Report1Gener {
|
|||||||
object.put("shape_file_link", "");
|
object.put("shape_file_link", "");
|
||||||
shapeFileTable.add(object);
|
shapeFileTable.add(object);
|
||||||
}
|
}
|
||||||
_tr.put("shape_File_Table", shapeFileTable);
|
_tr.put("shape_File_Table", shapeFileTable);*/
|
||||||
|
|
||||||
JSONArray dataAttributes = (JSONArray) shape.get("attributes");
|
JSONArray dataAttributes = (JSONArray) shape.get("attributes");
|
||||||
if (!dataAttributes.isEmpty()) {
|
if (!dataAttributes.isEmpty()) {
|
||||||
|
|||||||
@ -3595,7 +3595,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
</w:tbl>
|
</w:tbl>
|
||||||
|
|
||||||
|
|
||||||
<wx:sub-section>
|
<!--<wx:sub-section>
|
||||||
<w:p wsp:rsidR="00546297" wsp:rsidRPr="001A7475" wsp:rsidRDefault="00AC2941" wsp:rsidP="001A7475">
|
<w:p wsp:rsidR="00546297" wsp:rsidRPr="001A7475" wsp:rsidRDefault="00AC2941" wsp:rsidP="001A7475">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:pStyle w:val="1"/>
|
<w:pStyle w:val="1"/>
|
||||||
@ -3659,8 +3659,8 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
</w:p>
|
</w:p>
|
||||||
</#list>
|
</#list>
|
||||||
</#if>
|
</#if>
|
||||||
</wx:sub-section>
|
</wx:sub-section>-->
|
||||||
<wx:sub-section>
|
<!--<wx:sub-section>
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:pStyle w:val="1"/>
|
<w:pStyle w:val="1"/>
|
||||||
@ -3724,7 +3724,14 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
</w:p>
|
</w:p>
|
||||||
</#list>
|
</#list>
|
||||||
</#if>
|
</#if>
|
||||||
</wx:sub-section>
|
</wx:sub-section>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<w:p ><w:r><w:br w:type="page" /></w:r></w:p>-->
|
||||||
<w:sectPr wsp:rsidR="00140F58" wsp:rsidRPr="000F6912" wsp:rsidSect="005D1AAE">
|
<w:sectPr wsp:rsidR="00140F58" wsp:rsidRPr="000F6912" wsp:rsidSect="005D1AAE">
|
||||||
<w:pgSz w:w="11906" w:h="16838"/>
|
<w:pgSz w:w="11906" w:h="16838"/>
|
||||||
<w:pgMar w:top="1440" w:right="1803" w:bottom="1440" w:left="1803" w:header="567" w:footer="567" w:gutter="0"/>
|
<w:pgMar w:top="1440" w:right="1803" w:bottom="1440" w:left="1803" w:header="567" w:footer="567" w:gutter="0"/>
|
||||||
|
|||||||
@ -92,7 +92,7 @@ public class Report1Gener {
|
|||||||
* @see PlatformAPIImpl#getDefaultLanguage()
|
* @see PlatformAPIImpl#getDefaultLanguage()
|
||||||
* @see PlatformAPIImpl#getlanguages()
|
* @see PlatformAPIImpl#getlanguages()
|
||||||
*/
|
*/
|
||||||
public ResponseObject execute(OutputTaskModel model, String wizardJsonData, DCContext dcContext) {
|
public ResponseObject execute(OutputTaskModel model, String wizardJsonData, DCContext dcContext) throws FileNotFoundException {
|
||||||
try {
|
try {
|
||||||
// synchronized (_lock) {
|
// synchronized (_lock) {
|
||||||
// isRunning = true;
|
// isRunning = true;
|
||||||
@ -129,7 +129,7 @@ public class Report1Gener {
|
|||||||
* @param docPath
|
* @param docPath
|
||||||
* @param wizardJsonData
|
* @param wizardJsonData
|
||||||
*/
|
*/
|
||||||
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData) {
|
private void genarateWord(String tempPath, String tempName, String docPath, JSONObject wizardJsonData) throws FileNotFoundException {
|
||||||
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
String[] repositoryIds = wizardJsonData.getString("targetFileId").split(",");
|
||||||
|
|
||||||
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
String reportName = wizardJsonData.getString("reportNameIsItName"); //页面上设计的文件命名规则
|
||||||
|
|||||||
@ -2755,7 +2755,7 @@
|
|||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<!--<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
@ -2769,7 +2769,7 @@
|
|||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>-->
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:adjustRightInd w:val="off"/>
|
<w:adjustRightInd w:val="off"/>
|
||||||
@ -2832,7 +2832,7 @@
|
|||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<!-- <w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
@ -2841,7 +2841,7 @@
|
|||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>-->
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F7324A">
|
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F7324A">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:ind w:right="100"/>
|
<w:ind w:right="100"/>
|
||||||
@ -2913,7 +2913,7 @@
|
|||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<!-- <w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
@ -2922,7 +2922,7 @@
|
|||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:jc w:val="center"/>
|
<w:jc w:val="center"/>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>-->
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:adjustRightInd w:val="off"/>
|
<w:adjustRightInd w:val="off"/>
|
||||||
@ -3919,7 +3919,6 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:sz-cs w:val="21"/>
|
<w:sz-cs w:val="21"/>
|
||||||
<w:lang w:val="ZH-CN"/>
|
<w:lang w:val="ZH-CN"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>$</w:t>
|
|
||||||
</w:r>
|
</w:r>
|
||||||
<w:r wsp:rsidRPr="00092CA0">
|
<w:r wsp:rsidRPr="00092CA0">
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
@ -3930,7 +3929,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:sz-cs w:val="21"/>
|
<w:sz-cs w:val="21"/>
|
||||||
<w:lang w:val="ZH-CN"/>
|
<w:lang w:val="ZH-CN"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>{pl_Process_Architecture_L2}</w:t>
|
<w:t>${pl_Process_Architecture_L2}</w:t>
|
||||||
</w:r>
|
</w:r>
|
||||||
</w:p>
|
</w:p>
|
||||||
</w:tc>
|
</w:tc>
|
||||||
@ -4145,7 +4144,6 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:sz-cs w:val="21"/>
|
<w:sz-cs w:val="21"/>
|
||||||
<w:lang w:val="ZH-CN"/>
|
<w:lang w:val="ZH-CN"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>$</w:t>
|
|
||||||
</w:r>
|
</w:r>
|
||||||
<w:r wsp:rsidRPr="00092CA0">
|
<w:r wsp:rsidRPr="00092CA0">
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
@ -4156,7 +4154,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:sz-cs w:val="21"/>
|
<w:sz-cs w:val="21"/>
|
||||||
<w:lang w:val="ZH-CN"/>
|
<w:lang w:val="ZH-CN"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
<w:t>{pl_Process_Architecture_L3}</w:t>
|
<w:t>${pl_Process_Architecture_L3}</w:t>
|
||||||
</w:r>
|
</w:r>
|
||||||
</w:p>
|
</w:p>
|
||||||
</w:tc>
|
</w:tc>
|
||||||
@ -4380,7 +4378,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
</w:tc>
|
</w:tc>
|
||||||
</w:tr>
|
</w:tr>
|
||||||
</w:tbl>
|
</w:tbl>
|
||||||
<w:p wsp:rsidR="00092CA0" wsp:rsidRDefault="00092CA0" wsp:rsidP="00F96B41">
|
<!-- <w:p wsp:rsidR="00092CA0" wsp:rsidRDefault="00092CA0" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体" w:hint="fareast"/>
|
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体" w:hint="fareast"/>
|
||||||
@ -4388,8 +4386,8 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:color w:val="000000"/>
|
<w:color w:val="000000"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>-->
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
<!-- <w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00F96B41">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:rPr>
|
<w:rPr>
|
||||||
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体"/>
|
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体"/>
|
||||||
@ -4398,7 +4396,7 @@ y7fdOgAAAABJRU5ErkJggk==
|
|||||||
<w:lang w:val="ZH-CN"/>
|
<w:lang w:val="ZH-CN"/>
|
||||||
</w:rPr>
|
</w:rPr>
|
||||||
</w:pPr>
|
</w:pPr>
|
||||||
</w:p>
|
</w:p>-->
|
||||||
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00E1269B">
|
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00E1269B">
|
||||||
<w:pPr>
|
<w:pPr>
|
||||||
<w:spacing w:line="360" w:line-rule="auto"/>
|
<w:spacing w:line="360" w:line-rule="auto"/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user