调整管理办法合并流程图前数据顺序错位问题|调整管理办法页眉页脚布局问题

This commit is contained in:
zhaolei 2025-09-19 17:50:32 +08:00
parent a394a1c2d5
commit 1fc509abb5
9 changed files with 992 additions and 103 deletions

View File

@ -6074,7 +6074,7 @@
<w:p wsp:rsidR="00751D62" wsp:rsidRDefault="00751D62"/>
</w:ftr>
<w:pgSz w:w="16838" w:h="11906" w:orient="landscape"/>
<w:pgMar w:top="1134" w:right="1701" w:bottom="1134" w:left="1701" w:header="567" w:footer="567" w:gutter="0"/>
<w:pgMar w:top="1134" w:right="1701" w:bottom="1134" w:left="1701" w:header="100" w:footer="50" w:gutter="0"/>
<w:cols w:space="720"/>
<w:docGrid w:line-pitch="326"/>
</w:sectPr>

View File

@ -0,0 +1,868 @@
Schema.addCategory({name:"process_epc", text:"事件驱动的过程链图", dataAttributes:[
{name:"No.", type:"number", value:"", category:"default"},
{name:"Name", type:"string", value:"", category:"default"},
{name:"Owner", type:"string", value:"", category:"default"},
{name:"Link", type:"link", value:"", category:"default"},
{name:"Memo", type:"string", value:"", category:"default"},
{name:"Cost", type:"number", value:"", category:"default"},
{name:"Time", type:"number", value:"", category:"default"},
{name:"Manner", type:"list", value:"", category:"default"},
{name:"Department", type:"string", value:"", category:"default"},
{name:"Input", type:"string", value:"", category:"default"},
{name:"Output", type:"string", value:"", category:"default"},
{name:"Risk", type:"string", value:"", category:"default"},
{name:"Remarks", type:"string", value:"", category:"default"}
]});
Schema.addGlobalCommand("method_user_task", [
{action:"move", x:"100*0.05+ 100/11*2*0.5-100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"curve", x1:"100*0.05+ 100/11*2*0.30", y1:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x2:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y2:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"line", x:"100*0.05+ 100/11*2*0.5-100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"close"},
{action:"move", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.68"},
{action:"quadraticCurve", x1:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y1:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"quadraticCurve", x1:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y1:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.68"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.77"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.77"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.05", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"close"},
{action:"move", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.38", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.42"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.40"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.32", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.35"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.32", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.27"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.43", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.27"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.46", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.24"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.68", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.24"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.68", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.35"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.40"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.62", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.42"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"close"}
]);
Schema.addGlobalCommand("method_service_task", [
{action:"move", x:"100*0.09 -100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 -100*0.28 *0.16", y:"60*0.14 + 60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.09 - 100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 -100*0.17 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 -100*0.12 *0.16", y:"60*0.14 -60/5*8 *0.02 *0.16"},
{action:"line", x:"100*0.09 -100*0.21 *0.16", y:"60*0.14 -60/5*8 *0.13 *0.16"},
{action:"line", x:"100*0.09 -100*0.18 *0.16", y:"60*0.14 -60/5*8 *0.17 *0.16"},
{action:"line", x:"100*0.09 -100*0.13 *0.16", y:"60*0.14 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.09 -100*0.05 *0.16", y:"60*0.14 -60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.09 +100*0.03 *0.16", y:"60*0.14 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.10 *0.16", y:"60*0.14 -60/5*8 *0.27 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.09 + 100*0.23 *0.16", y:"60*0.14 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.09 + 100*0.30 *0.16", y:"60*0.14 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.09 + 100*0.35 *0.16", y:"60*0.14 -60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.38 *0.16", y:"60*0.14 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.09 + 100*0.32 *0.16", y:"60*0.14 -60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.37 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.46 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.48 *0.16", y:"60*0.14 + 60/5*8 *0.10 *0.16"},
{action:"line", x:"100*0.09 + 100*0.46 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.37 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.33 *0.16", y:"60*0.14 + 60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.38 *0.16", y:"60*0.14 + 60/5*8 *0.31 *0.16"},
{action:"line", x:"100*0.09 + 100*0.36 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 + 100*0.29 *0.16", y:"60*0.14 + 60/5*8 *0.39 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60/5*8 *0.35 *0.16"},
{action:"line", x:"100*0.09 + 100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 + 100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.09 + 100*0.10 *0.16", y:"60*0.14 + 60/5*8 *0.48 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.09 -100*0.12 *0.16", y:"60*0.14 + 60/5*8 *0.38 *0.16"},
{action:"line", x:"100*0.09 -100*0.18 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 -100*0.21 *0.16", y:"60*0.14 + 60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.09 -100*0.14 *0.16", y:"60*0.14 + 60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 -100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 -100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"close"},
{action:"move", x:"100*0.09 -100*0.01 *0.16", y:"60*0.14 + 60/5*8 *0.01 *0.16"},
{action:"line", x:"100*0.09 +100*0.01 *0.16", y:"60*0.14 - 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 +100*0.04 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 - 60*0.0 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 + 60*0.02 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 -60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.22 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.04 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.20 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.20 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.21 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 + 60*0.25 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.26 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.05 *0.16", y:"60*0.14 + 60*0.18 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.01 *0.16", y:"60*0.14 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.09 - 100*0.02 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.0 *0.16", y:"60*0.14 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.0 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0. *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.01 *0.16", y:"60*0.14 + 60*0.05 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.01 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"close"},
{action:"move", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 -100*0.28 *0.16", y:"60*0.24 + 60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 -100*0.17 *0.16", y:"60*0.24 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 -100*0.12 *0.16", y:"60*0.24 -60/5*8 *0.02 *0.16"},
{action:"line", x:"100*0.15 -100*0.21 *0.16", y:"60*0.24 -60/5*8 *0.13 *0.16"},
{action:"line", x:"100*0.15 -100*0.18 *0.16", y:"60*0.24 -60/5*8 *0.17 *0.16"},
{action:"line", x:"100*0.15 -100*0.13 *0.16", y:"60*0.24 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.15 -100*0.05 *0.16", y:"60*0.24 -60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.15 + 100*0.03 *0.16", y:"60*0.24 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.10 *0.16", y:"60*0.24 -60/5*8 *0.27 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.15 + 100*0.23 *0.16", y:"60*0.24 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.15 + 100*0.30 *0.16", y:"60*0.24 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.15 + 100*0.35 *0.16", y:"60*0.24 -60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.38 *0.16", y:"60*0.24 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.15 + 100*0.32 *0.16", y:"60*0.24 -60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.37 *0.16", y:"60*0.24 +60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.46 *0.16", y:"60*0.24 +60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.48 *0.16", y:"60*0.24 +60/5*8 *0.10 *0.16"},
{action:"line", x:"100*0.15 + 100*0.46 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.37 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.33 *0.16", y:"60*0.24 +60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.38 *0.16", y:"60*0.24 +60/5*8 *0.31 *0.16"},
{action:"line", x:"100*0.15 + 100*0.36 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 + 100*0.29 *0.16", y:"60*0.24 +60/5*8 *0.39 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 +60/5*8 *0.35 *0.16"},
{action:"line", x:"100*0.15 + 100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 + 100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.15 + 100*0.10 *0.16", y:"60*0.24 +60/5*8 *0.48 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.15 -100*0.12 *0.16", y:"60*0.24 +60/5*8 *0.38 *0.16"},
{action:"line", x:"100*0.15 -100*0.18 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 -100*0.21 *0.16", y:"60*0.24 +60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.15 -100*0.14 *0.16", y:"60*0.24 +60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 -100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"close"},
{action:"move", x:"100*0.15 -100*0.01 *0.16", y:"60*0.24 +60/5*8 *0.01 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 - 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 - 60*0.0 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 + 60*0.02 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 -60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.22 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.04 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.20 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.20 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.21 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 + 60*0.25 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.26 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.05 *0.16", y:"60*0.24 + 60*0.18 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.15 - 100*0.02 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.0 *0.16", y:"60*0.24 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.0 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 + 60*0.05 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.01 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"close"}
]);
Schema.addGlobalCommand("method_business_rule", [
{action:"move", x:"100*0.15- 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"close"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.04", y:"60*0.24 - 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.04", y:"60*0.24 + 60*0.1"}
]);
Schema.addGlobalCommand("method_script_task", [
{action:"move", x:"100*0.15- 100*0.05", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.05", y:"60*0.24 - 60*0.1"},
{action:"curve", x1:"100*0.15 + 100*0.02", y1:"60*0.24 - 60*0.1", x2:"100*0.15 + 100*0.02", y2:"60*0.24", x:"100*0.15 + 100*0.04", y:"60*0.24"},
{action:"curve", x1:"100*0.15 + 100*0.06", y1:"60*0.24", x2:"100*0.15 + 100*0.06", y2:"60*0.24 + 60*0.1", x:"100*0.15 + 100*0.03", y:"60*0.24 + 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"curve", x1:"100*0.15 - 100*0.05", y1:"60*0.24 + 60*0.1", x2:"100*0.15 - 100*0.05", y2:"60*0.24", x:"100*0.15 - 100*0.07", y:"60*0.24"},
{action:"curve", x1:"100*0.15 - 100*0.09", y1:"60*0.24", x2:"100*0.15 - 100*0.09", y2:"60*0.24 - 60*0.1", x:"100*0.15 - 100*0.05", y:"60*0.24 - 60*0.1"},
{action:"close"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.025", y:"60*0.24 - 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.07", y:"60*0.24 - 0"},
{action:"line", x:"100*0.15 + 100*0.04", y:"60*0.24 - 0"},
{action:"move", x:"100*0.15 - 100*0.055", y:"60*0.24 + 60*0.06"},
{action:"line", x:"100*0.15 + 100*0.05", y:"60*0.24 + 60*0.06"}
]);
/***Event需要配置渐变背景*/Schema.addShape({name:"event", title:"事件", text:"事件", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{color:"255,255,255"}, textBlock:{x:"Math.min(h/2,w/6)", y:"0", w:"w-Math.min(h/2,w/6)*2", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
{actions:[
{action:"move", x:"0", y:"h*0.5"},
{action:"line", x:"Math.min(h/2,w/6)", y:"0"},
{action:"line", x:"w-Math.min(h/2,w/6)", y:"0"},
{action:"line", x:"w", y:"h*0.5"},
{action:"line", x:"w-Math.min(h/2,w/6)", y:"h"},
{action:"line", x:"Math.min(h/2,w/6)", y:"h"},
{action:"line", x:"0", y:"h*0.5"},
{action:"close"}
]}
]});
/***Method*/Schema.addShape({name:"method_approval_node", title:"线上审批", text:"线上审批",groupName:"features", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
{actions:[
{action:"move", x:"w*0", y:"5"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
{action:"line", x:"w-5", y:"0"},
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
{action:"line", x:"w", y:"h-5"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
{action:"line", x:"5", y:"h"},
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
{action:"line", x:"0", y:"5"},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"method_script_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addGlobalCommand("business_rule", [
{action:"move", x:"100*0.15- 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"close"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.04", y:"60*0.24 - 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.04", y:"60*0.24 + 60*0.1"}
]);
Schema.addShape({name:"method_service_node", title:"线下审批", text:"线下审批",groupName:"features", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
{actions:[
{action:"move", x:"w*0", y:"5"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
{action:"line", x:"w-5", y:"0"},
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
{action:"line", x:"w", y:"h-5"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
{action:"line", x:"5", y:"h"},
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
{action:"line", x:"0", y:"5"},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"business_rule"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
/***Method*/Schema.addShape({name:"method_approval_node3", title:"系统任务", text:"系统任务",groupName:"features3", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
{actions:[
{action:"move", x:"w*0", y:"5"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
{action:"line", x:"w-5", y:"0"},
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
{action:"line", x:"w", y:"h-5"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
{action:"line", x:"5", y:"h"},
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
{action:"line", x:"0", y:"5"},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"method_service_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"method_service_node4", title:"人工任务", text:"人工任务",groupName:"features3", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
{actions:[
{action:"move", x:"w*0", y:"5"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
{action:"line", x:"w-5", y:"0"},
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
{action:"line", x:"w", y:"h-5"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
{action:"line", x:"5", y:"h"},
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
{action:"line", x:"0", y:"5"},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"method_user_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
/***Procedure*/Schema.addShape({name:"procedure", title:"流程接口", text:"流程接口", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"197,197,197"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"0", y:"0", w:"w*0.8", h:"h*0.8"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
{actions:[
{action:"move", x:"0", y:"4*0.8"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"4*0.8", y:"0"},
{action:"line", x:"(w-4)*0.8", y:"0"},
{action:"quadraticCurve", x1:"w*0.8", y1:"0", x:"w*0.8", y:"4*0.8"},
{action:"line", x:"w*0.8", y:"(h-4)*0.8"},
{action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"(w-4)*0.8", y:"h*0.8"},
{action:"line", x:"4*0.8", y:"h*0.8"},
{action:"quadraticCurve", x1:"0", y1:"h*0.8", x:"0", y:"(h-4)*0.8"},
{action:"line", x:"0", y:"4*0.8"},
{action:"move", x:"w*0.8", y:"6"},
{action:"line", x:"w", y:"h*0.5"},
{action:"line", x:"(w-4)*0.8", y:"h"},
{action:"line", x:"w*3/8", y:"h"},
{action:"line", x:"w/4", y:"h*0.8"},
{action:"line", x:"(w-4)*0.8", y:"h*0.8"},
{action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"w*0.8", y:"(h-4)*0.8"}
]}
]});
Schema.addShape({name:"sub_process_node", title:"子流程", text:"子流程", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"197,197,197"},
fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"20", y:"0", w:"w-40", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
{lineStyle:{lineWidth:1,color:"51,62,75"},actions:[
{action:"move", x:"0", y:"0"},
{action:"line", x:"w", y:"0"},
{action:"line", x:"w", y:"h"},
{action:"line", x:"0", y:"h"},
{action:"close"}
]},
{lineStyle:{lineWidth:1,color:"51,62,75"},actions:[
{action:"move", x:"20", y:"0"},
{action:"line", x:"w-20", y:"0"},
{action:"line", x:"w-20", y:"h"},
{action:"line", x:"20", y:"h"},
{action:"close"}
]}
]});
/***And*/Schema.addShape({name:"and", title:"与", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
{lineStyle:{lineWidth:1,color:"51,62,75"},actions:[
{action:"move", x:"w/2-w*0.15", y:"h/2+h*0.13"},
{action:"line", x:"w*0.5", y:"h/2-h*0.15"},
{action:"line", x:"w/2+w*0.15", y:"h/2+h*0.13"},
{action:"line", x:"w*0.5", y:"h/2-h*0.15"}
]},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
/***Or*/Schema.addShape({name:"or", title:"或", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
{lineStyle:{lineWidth:1,color:"51,62,75"},actions:[
{action:"move", x:"w/2-w*0.15", y:"h/2-h*0.13"},
{action:"line", x:"w*0.5", y:"h/2+h*0.15"},
{action:"line", x:"w/2+w*0.15", y:"h/2-h*0.13"},
{action:"line", x:"w*0.5", y:"h/2+h*0.15"}
]},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
/***Xor*/Schema.addShape({name:"xor", title:"异或", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
{lineStyle:{lineWidth:1,color:"51,62,75"},actions:[
{action:"move", x:"w/2-w*0.15", y:"h/2-h*0.15"},
{action:"line", x:"w/2+w*0.15", y:"h/2+h*0.15"},
{action:"move", x:"w/2+w*0.15", y:"h/2-h*0.15"},
{action:"line", x:"w/2-w*0.15", y:"h/2+h*0.15"}
]},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
/*泳池/泳道分组*/
Schema.addCategory({name:"lane", text:"泳池/泳道"});
function getPool(a, d) {
for (var b = Model.orderList.length - 1; b >= 0; b--) {
var e = Model.orderList[b].id;
var c = Model.getShapeById(e);
if (c.name == d) {
if (Utils.rectCross(c.props, a.props)) {
return c
}
}
}
return null
}
function getVerticalPoolWidth(c) {
var a = 0;
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name != "horizontalSeparator") {
a += e.props.w
}
}
return a
}
function getHorizontalPoolHeight(c) {
var a = 0;
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name != "horizontalSeparator") {
a += e.props.w
}
}
return a
}
function getChild(c, a) {
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name == a) {
return e
}
}
return null
}
Schema.addShape({name:"verticalPool", title:"泳池(垂直)",text:"泳池(垂直)", category:"lane", attribute:{rotatable:false, linkable:false, container:true}, children:[], props:{w:250, h:540}, fontStyle:{size:16}, textBlock:{x:10, y:0, w:"w-20", h:40},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"},
anchors:[], resizeDir:["l", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:40},
{action:"line", x:0, y:40},
{action:"close"}
]}
], drawIcon:function (b, c) {
b += 8;
var a = -4;
return[
{fillStyle:{type:"none"}, actions:[
{action:"move", x:a, y:0},
{action:"line", x:b, y:0},
{action:"line", x:b, y:c},
{action:"line", x:a, y:c},
{action:"close"}
]},
{actions:[
{action:"move", x:a, y:0},
{action:"line", x:b, y:0},
{action:"line", x:b, y:4},
{action:"line", x:a, y:4},
{action:"close"}
]},
{actions:[
{action:"move", x:(a + b) / 2, y:4},
{action:"line", x:(a + b) / 2, y:c}
]}
]
}});
Schema.addShape({name:"verticalLane", title:"泳道(垂直)",text:"泳道(垂直)", category:"lane", attribute:{container:true, rotatable:false, linkable:false}, props:{w:250, h:500}, textBlock:{x:10, y:0, w:"w-20", h:30},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"},
anchors:[], resizeDir:["l", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:30},
{action:"line", x:0, y:30},
{action:"close"}
]}
], drawIcon:function (a, b) {
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:a, y:0},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:a, y:0},
{action:"line", x:a, y:4},
{action:"line", x:0, y:4},
{action:"close"}
]}
]
}, onCreated:function () {
var e = getPool(this, "verticalPool");
if (e == null) {
e = Model.create("verticalPool", this.props.x, this.props.y - 40);
e.children = [this.id];
Model.add(e)
} else {
if (!e.children) {
e.children = []
}
var g = [e];
var a = e.props.x;
var c = 0;
var b = 0;
for (var d = 0; d < e.children.length; d++) {
var f = e.children[d];
var h = Model.getShapeById(f);
if (h.name == "verticalLane") {
a += h.props.w;
c++
} else {
if (h.name == "verticalSeparatorBar") {
a += h.props.w;
b++
}
}
}
this.props.x = a;
this.props.y = e.props.y + 40;
this.props.h = e.props.h - 40;
if (c == 0) {
if (b == 0) {
this.props.w = e.props.w
} else {
this.props.w = e.props.w - 20
}
}
Designer.painter.renderShape(this);
e.props.w = this.props.x + this.props.w - e.props.x;
for (var d = 0; d < e.children.length; d++) {
var f = e.children[d];
var h = Model.getShapeById(f);
if (h.name == "horizontalSeparator") {
h.props.w = e.props.w;
Designer.painter.renderShape(h);
g.push(h)
}
}
e.children.push(this.id);
Model.updateMulti(g)
}
Designer.painter.renderShape(e);
this.parent = e.id
}});
Schema.addShape({name:"horizontalPool", title:"泳池(水平)",text:"泳池(水平)", category:"lane", attribute:{rotatable:false, linkable:false, container:true}, children:[], props:{w:640, h:200}, fontStyle:{size:16, orientation:"horizontal"}, textBlock:{x:0, y:10, w:40, h:"h-20"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"},
anchors:[], resizeDir:["t", "r", "b"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:40, y:0},
{action:"line", x:40, y:"h"},
{action:"line", x:0, y:"h"},
{action:"close"}
]}
], drawIcon:function (a, b) {
b += 8;
var c = -4;
return[
{fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:c},
{action:"line", x:a, y:c},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{actions:[
{action:"move", x:0, y:c},
{action:"line", x:4, y:c},
{action:"line", x:4, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{actions:[
{action:"move", x:4, y:(c + b) / 2},
{action:"line", x:a, y:(c + b) / 2}
]}
]
}});
Schema.addShape({name:"horizontalLane", title:"泳道(水平)",text:"泳道(水平)", category:"lane", attribute:{container:true, rotatable:false, linkable:false}, props:{w:600, h:200}, fontStyle:{orientation:"horizontal"}, textBlock:{x:0, y:10, w:30, h:"h-20"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"},
anchors:[], resizeDir:["t", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:30, y:0},
{action:"line", x:30, y:"h"},
{action:"line", x:0, y:"h"},
{action:"close"}
]}
], drawIcon:function (a, b) {
b += 3;
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:-1},
{action:"line", x:a, y:-1},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:-1},
{action:"line", x:4, y:-1},
{action:"line", x:4, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]}
]
}, onCreated:function () {
var d = getPool(this, "horizontalPool");
if (d == null) {
d = Model.create("horizontalPool", this.props.x - 40, this.props.y);
d.children = [this.id];
Model.add(d)
} else {
if (!d.children) {
d.children = []
}
var f = [d];
var h = d.props.y;
var b = 0;
var a = 0;
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "horizontalLane") {
h += g.props.h;
b++
} else {
if (g.name == "horizontalSeparatorBar") {
h += g.props.h;
a++
}
}
}
this.props.y = h;
this.props.x = d.props.x + 40;
this.props.w = d.props.w - 40;
if (b == 0) {
if (a == 0) {
this.props.h = d.props.h
} else {
this.props.h = d.props.h - 20
}
}
Designer.painter.renderShape(this);
d.props.h = this.props.y + this.props.h - d.props.y;
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "verticalSeparator") {
g.props.h = d.props.h;
Designer.painter.renderShape(g);
f.push(g)
}
}
d.children.push(this.id);
Model.updateMulti(f)
}
Designer.painter.renderShape(d);
this.parent = d.id
}});
Schema.addShape({name:"verticalSeparatorBar", title:"水平分隔条",category:"lane", attribute:{rotatable:false, linkable:false, visible:false}, props:{w:20, h:500}, anchors:[], resizeDir:[], textBlock:{},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}}
]});
Schema.addShape({name:"horizontalSeparator", title:"分隔符(水平)", category:"lane", attribute:{rotatable:false, linkable:false}, props:{w:300, h:0}, fontStyle:{orientation:"horizontal", textAlign:"left"}, textBlock:{x:0, y:5, w:20, h:"h-10"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, text:"阶段",
anchors:[], resizeDir:["b"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:"h"},
{action:"line", x:"w", y:"h"}
]},
{actions:[
{action:"move", x:0, y:0},
{action:"line", x:20, y:0},
{action:"line", x:20, y:"h"},
{action:"line", x:0, y:"h"},
{action:"close"}
]}
], drawIcon:function (a, b) {
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:a, y:0}
]}
]
}, onCreated:function () {
var g = getPool(this, "verticalPool");
if (g == null) {
return false
}
var j = getChild(g, "verticalSeparatorBar");
if (j == null) {
j = Model.create("verticalSeparatorBar", g.props.x - 20, g.props.y + 40);
j.props.h = g.props.h - 40;
j.parent = g.id;
Model.add(j);
Designer.painter.renderShape(j);
g.props.x -= j.props.w;
g.props.w += j.props.w;
g.children.push(j.id);
Designer.painter.renderShape(g)
}
var a = this.props.y + this.props.h;
var h = g.props.y + 40;
var f = null;
for (var e = 0; e < g.children.length; e++) {
var d = g.children[e];
var b = Model.getShapeById(d);
if (b.name != "horizontalSeparator") {
continue
}
var c = b.props.y + b.props.h;
if (c <= a) {
h += b.props.h
} else {
if (f == null || b.props.y < f.props.y) {
f = b
}
}
}
this.props.x = g.props.x;
this.props.w = g.props.w;
this.props.h = a - h;
this.props.y = h;
g.children.push(this.id);
this.parent = g.id;
if (a > g.props.y + g.props.h) {
this.props.h = g.props.y + g.props.h - h
}
Designer.painter.renderShape(this);
if (f != null) {
f.props.y += this.props.h;
f.props.h -= this.props.h;
Designer.painter.renderShape(f);
Model.updateMulti([g, f])
} else {
Model.update(g)
}
this.props.zindex = Model.maxZIndex + 1
}});
Schema.addShape({name:"horizontalSeparatorBar", title:"垂直分隔条", category:"lane", attribute:{rotatable:false, linkable:false, visible:false}, props:{w:600, h:20}, anchors:[], resizeDir:[], textBlock:{},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}}
]});
Schema.addShape({name:"verticalSeparator", title:"分隔符(垂直)", category:"lane", attribute:{rotatable:false, linkable:false}, props:{w:0, h:300}, fontStyle:{textAlign:"right"}, textBlock:{x:5, y:0, w:"w-10", h:20},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, text:"阶段",
anchors:[], resizeDir:["r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:"w", y:0},
{action:"line", x:"w", y:"h"}
]},
{actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:20},
{action:"line", x:0, y:20},
{action:"close"}
]}
], drawIcon:function (a, b) {
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:0, y:b}
]}
]
}, onCreated:function () {
var e = getPool(this, "horizontalPool");
if (e == null) {
return false
}
var g = getChild(e, "horizontalSeparatorBar");
if (g == null) {
g = Model.create("horizontalSeparatorBar", e.props.x + 40, e.props.y - 20);
e.props.y -= g.props.h;
e.props.h += g.props.h;
e.children.push(g.id);
Designer.painter.renderShape(e);
g.props.w = e.props.w - 40;
g.parent = e.id;
Model.add(g);
Designer.painter.renderShape(g)
}
var j = this.props.x + this.props.w;
var h = e.props.x + 40;
var d = null;
for (var c = 0; c < e.children.length; c++) {
var b = e.children[c];
var a = Model.getShapeById(b);
if (a.name != "verticalSeparator") {
continue
}
var f = a.props.x + a.props.w;
if (f <= j) {
h += a.props.w
} else {
if (d == null || a.props.x < d.props.x) {
d = a
}
}
}
this.props.x = h;
this.props.w = j - h;
this.props.y = e.props.y;
this.props.h = e.props.h;
if (j > e.props.x + e.props.w) {
this.props.w = e.props.x + e.props.w - h
}
Designer.painter.renderShape(this);
e.children.push(this.id);
this.parent = e.id;
if (d != null) {
d.props.x += this.props.w;
d.props.w -= this.props.w;
Designer.painter.renderShape(d);
Model.updateMulti([e, d])
} else {
Model.update(e)
}
this.props.zindex = Model.maxZIndex + 1
}});

View File

@ -236,108 +236,12 @@ public class OutputWordUtil {
}
//流程图新增逻辑增加管理要求wps文件合并需求
mergeMRWord(outFile.getPath(),repositoryId);
Document docs2 = new Document();
docs2.loadFromFile(outFile.getPath());
for (int k = 2; k < docs2.getSections().getCount(); k++) {
Section targetSection = docs2.getSections().get(k);
HeaderFooter targetHeader = targetSection.getHeadersFooters().getHeader();
targetHeader.getChildObjects().clear();
HeaderFooter header = targetSection.getHeadersFooters().getHeader();
Paragraph hpara= header.addParagraph();
// 先添加文字到页眉左侧
TextRange txt = hpara.appendText(dataMap.getString("HEADERFONT"));
txt.getCharacterFormat().setUnderlineStyle(UnderlineStyle.None);
txt.getCharacterFormat().setFontSize(10f);
txt.getCharacterFormat().setFontName("黑体");
// 添加制表符以实现右侧定位
hpara.appendText("\t");
// 添加图片到页眉右侧
DocPicture pic = hpara.appendPicture(dataMap.getString("LOGOURL"));
pic.setHorizontalAlignment(ShapeHorizontalAlignment.Right);
pic.setVerticalOrigin(VerticalOrigin.Top_Margin_Area);
pic.setVerticalAlignment(ShapeVerticalAlignment.Center);
pic.setWidth(44.0F);
pic.setHeight(35.0F);
// 设置段落格式左侧文字左对齐右侧图片右对齐
hpara.getFormat().setHorizontalAlignment(HorizontalAlignment.Left);
hpara.getFormat().setLeftIndent(0f);
hpara.getFormat().setFirstLineIndent(0f);
hpara.getFormat().setAfterSpacing(25f); // 增加段后间距可以根据需要调整数值
hpara.getFormat().setBeforeSpacing(25f); // 也可以调整段前间距
// 设置制表位以实现右侧定位
Tab tab = hpara.getFormat().getTabs().addTab(500f, TabJustification.Right, TabLeader.No_Leader);
// 设置图片的文本环绕方式
pic.setTextWrappingStyle(TextWrappingStyle.Behind);
// 设置页眉底部边线粗细间距- 文字和图片都在横线上面
hpara.getFormat().getBorders().getBottom().setBorderType(BorderStyle.Single);
hpara.getFormat().getBorders().getBottom().setLineWidth(0.5f);
hpara.getFormat().getBorders().setSpace(1f);
}
mergeMRWord(outFile.getPath(),repositoryId,dataMap);
for (int k = 2; k < docs2.getSections().getCount(); k++) {
Section targetSection = docs2.getSections().get(k);
HeaderFooter targetHeader = targetSection.getHeadersFooters().getFooter();
targetHeader.getChildObjects().clear();
HeaderFooter footer = targetSection.getHeadersFooters().getFooter();
Paragraph fpara= footer.addParagraph();
// 先添加文字到页脚左侧
TextRange txt = fpara.appendText(dataMap.getString("FOOTERFONT"));
txt.getCharacterFormat().setUnderlineStyle(UnderlineStyle.None);
txt.getCharacterFormat().setFontSize(10f);
txt.getCharacterFormat().setFontName("黑体");
fpara.getFormat().getBorders().getTop().setBorderType(BorderStyle.Single);
fpara.getFormat().getBorders().getTop().setLineWidth(1f);
// 设置页脚文字左对齐
fpara.getFormat().setHorizontalAlignment(HorizontalAlignment.Left);
// 调整页脚段落的间距确保横线在文字上方有适当距离
fpara.getFormat().setBeforeSpacing(15f); // 增加段前间距让横线与文字之间有足够空间
fpara.getFormat().setAfterSpacing(5f); // 段后间距
}
docs2.saveToFile(outFile.getPath(), FileFormat.Docx_2013);
@ -3256,7 +3160,7 @@ public class OutputWordUtil {
* 判断是否需求合并管理要求
* @param uuid
*/
public static void mergeMRWord(String filePath, String uuid) {
public static void mergeMRWord(String filePath, String uuid,JSONObject dataMap) {
Map<String, JSONObject> stringJSONObjectMap = PALRepositoryQueryAPIManager.queryRepositoryAttributeById(uuid);
JSONObject attrJson = stringJSONObjectMap.get("management_requirements_Location");
String text = attrJson.getString("text");
@ -3289,8 +3193,6 @@ public class OutputWordUtil {
// 定位插入位置根据text判断是流程图前还是活动说明后表格后
Paragraph targetPara = null;
Section targetSection = null;
@ -3316,7 +3218,6 @@ public class OutputWordUtil {
}
// 插入文档2内容保持格式与文件协调
Section doc2Sec = docs2.getSections().get(0);
boolean isFirstPara = true;
@ -3342,6 +3243,7 @@ public class OutputWordUtil {
// 插入到目标位置表格下方
targetSection.getParagraphs().insert(targetParaIndex, clonedPara);
targetParaIndex++;
}
// 调整后续段落如矩阵标题与插入内容的间距
@ -3406,10 +3308,89 @@ public class OutputWordUtil {
for (Object docObj2 : sourceSection.getParagraphs()) {
Paragraph doc2Para = (Paragraph) docObj2;
Paragraph clonedPara = (Paragraph) doc2Para.deepClone();
// 将克隆的内容添加到目标文档的最后一节
lastSection.getBody().getChildObjects().add(clonedPara);
//添加页眉
HeaderFooter targetHeader = lastSection.getHeadersFooters().getHeader();
targetHeader.getChildObjects().clear();
HeaderFooter header = lastSection.getHeadersFooters().getHeader();
Paragraph hpara= header.addParagraph();
// 先添加文字到页眉左侧
TextRange txt = hpara.appendText(dataMap.getString("HEADERFONT"));
txt.getCharacterFormat().setUnderlineStyle(UnderlineStyle.None);
txt.getCharacterFormat().setFontSize(10f);
txt.getCharacterFormat().setFontName("黑体");
// 添加制表符以实现右侧定位
hpara.appendText("\t");
// 添加图片到页眉右侧
DocPicture pic = hpara.appendPicture(dataMap.getString("LOGOURL"));
pic.setHorizontalAlignment(ShapeHorizontalAlignment.Right);
pic.setVerticalOrigin(VerticalOrigin.Top_Margin_Area);
pic.setVerticalAlignment(ShapeVerticalAlignment.Center);
pic.setWidth(44.0F);
pic.setHeight(35.0F);
// 设置段落格式左侧文字左对齐右侧图片右对齐
hpara.getFormat().setHorizontalAlignment(HorizontalAlignment.Left);
hpara.getFormat().setLeftIndent(0f);
hpara.getFormat().setFirstLineIndent(0f);
hpara.getFormat().setBeforeSpacing(0f); // 也可以调整段前间距
// 设置制表位以实现右侧定位
Tab tab = hpara.getFormat().getTabs().addTab(500f, TabJustification.Right, TabLeader.No_Leader);
// 设置图片的文本环绕方式
pic.setTextWrappingStyle(TextWrappingStyle.Behind);
// 设置页眉底部边线粗细间距- 文字和图片都在横线上面
hpara.getFormat().getBorders().getBottom().setBorderType(BorderStyle.Single);
hpara.getFormat().getBorders().getBottom().setLineWidth(0.5f);
hpara.getFormat().getBorders().setSpace(10f);
//页脚操作
HeaderFooter targetFooter = lastSection.getHeadersFooters().getFooter();
targetFooter.getChildObjects().clear();
HeaderFooter footer = lastSection.getHeadersFooters().getFooter();
Paragraph fpara= footer.addParagraph();
// 先添加文字到页脚左侧
TextRange foottxt = fpara.appendText(dataMap.getString("FOOTERFONT"));
foottxt.getCharacterFormat().setUnderlineStyle(UnderlineStyle.None);
foottxt.getCharacterFormat().setFontSize(10f);
foottxt.getCharacterFormat().setFontName("黑体");
fpara.getFormat().getBorders().getTop().setBorderType(BorderStyle.Single);
fpara.getFormat().getBorders().getTop().setLineWidth(1f);
// 调整页脚段落的间距确保横线在文字上方有适当距离
// 增加段前间距来将横线向下移动
fpara.getFormat().setBeforeSpacing(1500f); // 增加段前间距将横线向下推
fpara.getFormat().setAfterSpacing(0f); // 段后间距
// 设置页脚文字左对齐
fpara.getFormat().setHorizontalAlignment(HorizontalAlignment.Left);
// 调整页脚段落的间距确保横线在文字上方有适当距离
}
}
@ -3418,6 +3399,15 @@ public class OutputWordUtil {
docs1.dispose();
docs2.dispose();
}
}

View File

@ -593,6 +593,10 @@
if (methodId == 'data.form') {
$('#bar_importPolicyFile').css('display','none')
}
if (methodId != 'process.oaApprove') {
$('#switchOAApproval').css('display','none')
}
//新增 打开wps文件逻辑
if(methodId === 'control.policy' || methodId ==='engineering.standard' || methodId ==='process.scheme'){
//执行切换显示按钮

View File

@ -1813,6 +1813,10 @@
$("#switchViews").css('display','none');
$("#textFileShow").css('display','none');
}
if (methodId != 'process.oaApprove') {
$('#switchOAApproval').css('display','none')
}
// 只有epc和泳道图显示切换按钮
if (methodId !== 'process.epc' && methodId !== 'process.flowchart' && methodId !== 'process.oaApprove') {
$("#switchMRViews").css('display', 'none');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long