152 lines
8.6 KiB
Smarty
152 lines
8.6 KiB
Smarty
Schema.addCategory({name:"aris_system", 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:"systemType_aris",title:"应用系统类型",text:"应用系统类型",category:"aris_system",
|
|
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:"193, 217, 255",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: 20,y: 17},
|
|
{action: "line",x: 18,y: 18},
|
|
{action: "line",x: 18,y: 20},
|
|
{action: "line",x: 20,y: 21},
|
|
{action: "line",x: 22,y: 20},
|
|
{action: "line",x: 22,y: 18},
|
|
{action: "close"},
|
|
|
|
{action: "move",x: 22,y: 16.5},
|
|
{action: "line",x: 22,y: 10},
|
|
{action: "line",x: 8,y: 10},
|
|
{action: "line",x: 8,y: 19},
|
|
{action: "line",x: 16.5,y: 19},
|
|
|
|
{action: "move",x: 10,y: 21},
|
|
{action: "line",x: 17,y: 21},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
/***应用系统*/Schema.addShape({name:"system_aris",title:"应用系统",text:"应用系统",category:"aris_system",
|
|
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:"193, 217, 255",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: 22,y: 10},
|
|
{action: "line",x: 8,y: 10},
|
|
{action: "line",x: 8,y: 19},
|
|
{action: "line",x: 22,y: 19},
|
|
{action: "close"},
|
|
{action: "move",x: 12,y: 21},
|
|
{action: "line",x: 18,y: 21},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
/***模块类型*/Schema.addShape({name:"moduleType_aris",title:"模块类型",text:"模块类型",category:"aris_system",
|
|
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:"193, 217, 255",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: 20,y: 17},
|
|
{action: "line",x: 18,y: 18},
|
|
{action: "line",x: 18,y: 20},
|
|
{action: "line",x: 20,y: 21},
|
|
{action: "line",x: 22,y: 20},
|
|
{action: "line",x: 22,y: 18},
|
|
{action: "close"},
|
|
|
|
{action: "move",x: 22,y: 16.5},
|
|
{action: "line",x: 22,y: 10},
|
|
{action: "line",x: 8,y: 10},
|
|
{action: "line",x: 8,y: 19},
|
|
{action: "line",x: 16.5,y: 19},
|
|
|
|
{action: "move",x: 10,y: 21},
|
|
{action: "line",x: 17,y: 21},
|
|
|
|
{action: "move",x: 11,y: 10},
|
|
{action: "line",x: 11,y: 19},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
/***功能模块*/Schema.addShape({name:"functionModule_aris",title:"功能模块",text:"功能模块",category:"aris_system",
|
|
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:"193, 217, 255",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: 22,y: 10},
|
|
{action: "line",x: 8,y: 10},
|
|
{action: "line",x: 8,y: 19},
|
|
{action: "line",x: 22,y: 19},
|
|
{action: "close"},
|
|
{action: "move",x: 12,y: 21},
|
|
{action: "line",x: 18,y: 21},
|
|
{action: "move",x: 11,y: 10},
|
|
{action: "line",x: 11,y: 19},
|
|
]
|
|
},
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
|
]});
|
|
|