diff --git a/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl b/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl index 617dfc69..653655a5 100644 --- a/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl +++ b/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl @@ -296,6 +296,136 @@ {lineStyle:{lineWidth:2, lineStyle:"dashed"}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}} ]}); +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"} +]); + +/***Method*/Schema.addShape({name:"method_approval_node", title:"线上审批", text:"线上审批",groupName:"features", category:"process_flowchart", 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_flowchart", 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_flowchart", 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_node4", title:"人工任务", text:"人工任务",groupName:"features3", category:"process_flowchart", 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"}} + + +]}); + /*泳池/泳道分组*/ Schema.addCategory({name:"lane", text:"泳池/泳道"});