147 lines
8.3 KiB
Smarty
147 lines
8.3 KiB
Smarty
Schema.addCategory({name:"aris_businessProcess", 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("inline_rect",[
|
|
{action:"move",x:"40",y:"5"},
|
|
{action:"line",x:"w",y:"5"},
|
|
{action:"line",x:"w",y:"h"},
|
|
{action:"line",x:"40",y:"h"},
|
|
{action:"close"}
|
|
]);
|
|
|
|
/***事件*/Schema.addShape({name:"event_aris",title:"事件",text:"事件",category:"aris_businessProcess",
|
|
props:{w:140,h:80,scaling:true,panelProps:{translate: true, x: 1, y: 1}, titleProps: {x:44,y:2,w:100,h:30}},
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"},
|
|
lineStyle:{lineColor: "83,83,83", lineStyle:"solid",lineWidth:1},
|
|
fillStyle:{color:"242, 153, 206",type:"solid"},
|
|
path:[
|
|
{actions:{ref:"rectangle"}},
|
|
{lineStyle:{lineWidth:1},fillStyle:{type:"none"},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:0},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"w-1",y:"1"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{color:"255,255,255"},actions:[{action:"move",x:"1",y:"30"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"w-1",y:"h-1"},{action:"line",x:"1",y:"h-1"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{colorOverlay:"multiplyOverlay"},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"30",y:"1"},{action:"line",x:"30",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
|
fillStyle:{type: "none"},
|
|
actions:[
|
|
{action: "move",x: 9,y: 23},
|
|
{action: "line",x: 7,y: 10},
|
|
{action: "line",x: 11,y: 9},
|
|
{action: "quadraticCurve",x1: 14,y1: 12,x: 19,y: 10},
|
|
{action: "line",x: 20.2,y: 16},
|
|
{action: "quadraticCurve",x1: 14,y1: 18,x: 12,y: 15},
|
|
{action: "line",x: 8.2,y: 16}
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
|
|
/***步骤*/Schema.addShape({name:"function_aris",title:"步骤",text:"步骤",category:"aris_businessProcess",
|
|
props:{w:140,h:80,scaling:true,panelProps:{translate: true, x: 1, y: 1}, titleProps: {x:44,y:2,w:100,h:30}},
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"},
|
|
lineStyle:{lineColor: "83,83,83", lineStyle:"solid",lineWidth:1},
|
|
fillStyle:{color:"111, 240, 134",type:"solid"},
|
|
path:[
|
|
{actions:{ref:"rectangle"}},
|
|
{lineStyle:{lineWidth:1},fillStyle:{type:"none"},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:0},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"w-1",y:"1"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{color:"255,255,255"},actions:[{action:"move",x:"1",y:"30"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"w-1",y:"h-1"},{action:"line",x:"1",y:"h-1"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{colorOverlay:"multiplyOverlay"},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"30",y:"1"},{action:"line",x:"30",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
|
fillStyle:{type: "none"},
|
|
actions:[
|
|
{action: "move",x: 7,y: 10},
|
|
{action: "line",x: 15,y: 15},
|
|
{action: "line",x: 7,y: 20},
|
|
{action: "close"},
|
|
|
|
{action: "move",x: 16,y: 10},
|
|
{action: "line",x: 24,y: 15},
|
|
{action: "line",x: 16,y: 20},
|
|
{action: "close"},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
|
|
/***流程接口*/Schema.addShape({name:"processInterface_aris",title:"流程接口",text:"流程接口",category:"aris_businessProcess",
|
|
props:{w:140,h:80,scaling:true,panelProps:{translate: true, x: 1, y: 1}, titleProps: {x:44,y:2,w:100,h:30}},
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"},
|
|
lineStyle:{lineColor: "83,83,83", lineStyle:"solid",lineWidth:1},
|
|
fillStyle:{color:"111, 240, 134",type:"solid"},
|
|
path:[
|
|
{actions:{ref:"rectangle"}},
|
|
{lineStyle:{lineWidth:1},fillStyle:{type:"none"},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:0},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"w-1",y:"1"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{color:"255,255,255"},actions:[{action:"move",x:"1",y:"30"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"w-1",y:"h-1"},{action:"line",x:"1",y:"h-1"},{action:"close"}]},
|
|
{lineStyle:{lineWidth:0},fillStyle:{colorOverlay:"multiplyOverlay"},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"30",y:"1"},{action:"line",x:"30",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
|
{
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
|
fillStyle:{type: "none"},
|
|
actions:[
|
|
{action: "move",x: 9,y: 23},
|
|
{action: "line",x: 7,y: 10},
|
|
{action: "line",x: 11,y: 9},
|
|
{action: "quadraticCurve",x1: 14,y1: 12,x: 19,y: 10},
|
|
{action: "line",x: 20.2,y: 16},
|
|
{action: "quadraticCurve",x1: 14,y1: 18,x: 12,y: 15},
|
|
{action: "line",x: 8.2,y: 16},
|
|
|
|
{action: "move",x: 14,y: 19},
|
|
{action: "line",x: 14,y: 23},
|
|
{action: "line",x: 17,y: 21},
|
|
{action: "close"},
|
|
{action: "move",x: 17,y: 19},
|
|
{action: "line",x: 17,y: 23},
|
|
{action: "line",x: 20,y: 21},
|
|
{action: "close"},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
|
|
/***Or*/Schema.addShape({name:"ORRule_aris", title:"或", text:"", category:"aris_businessProcess", attribute:{editable:false}, props:{w:40, h:40}, fillStyle:{color:"94,94,94"}, path:[
|
|
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
|
|
{lineStyle:{lineWidth:4,lineColor:"255,255,255"},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"},
|
|
|
|
]},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
|
|
]});
|
|
|
|
/***And*/Schema.addShape({name:"ANDRule_aris", title:"与", text:"", category:"aris_businessProcess", attribute:{editable:false}, props:{w:40, h:40}, fillStyle:{color:"94,94,94"}, path:[
|
|
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
|
|
{lineStyle:{lineWidth:4,lineColor:"255,255,255"},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"},
|
|
|
|
]},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
|
|
]});
|
|
|
|
/***Xor*/Schema.addShape({name:"XORRule_aris", title:"异或", text:"", category:"aris_businessProcess", attribute:{editable:false}, props:{w:40, h:40}, fillStyle:{color:"94,94,94"}, path:[
|
|
{lineStyle:{lineWidth:0},actions:{ref:"round"}},
|
|
{lineStyle:{lineWidth:4,lineColor:"255,255,255"},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"}}
|
|
]}); |