313 lines
11 KiB
Smarty
313 lines
11 KiB
Smarty
|
|
|
|||
|
|
Schema.addCategory({name:"nqms_physEquipmentAllocation", 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.addGlobalCommand("org_structure",[
|
|||
|
|
{action:"move",x:"(40-8)*0.5",y:"h*0.5-4"},
|
|||
|
|
{action:"line",x:"(40-8)*0.5+8",y:"h*0.5-4"},
|
|||
|
|
{action:"line",x:"(40-8)*0.5+8",y:"h*0.5-12"},
|
|||
|
|
{action:"line",x:"(40-8)*0.5",y:"h*0.5-12"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"40*0.25",y:"h*0.5"},
|
|||
|
|
{action:"line",x:"40*0.5-1",y:"h*0.5"},
|
|||
|
|
{action:"line",x:"40*0.5-1",y:"h*0.5-2"},
|
|||
|
|
{action:"line",x:"40*0.5+1",y:"h*0.5-2"},
|
|||
|
|
{action:"line",x:"40*0.5+1",y:"h*0.5"},
|
|||
|
|
{action:"line",x:"40*0.75",y:"h*0.5"},
|
|||
|
|
{action:"line",x:"40*0.75",y:"h*0.5+4"},
|
|||
|
|
{action:"line",x:"40*0.75-1",y:"h*0.5+4"},
|
|||
|
|
{action:"line",x:"40*0.75-1",y:"h*0.5+3"},
|
|||
|
|
{action:"line",x:"40*0.5+1",y:"h*0.5+3"},
|
|||
|
|
{action:"line",x:"40*0.5+1",y:"h*0.5+4"},
|
|||
|
|
{action:"line",x:"40*0.5-1",y:"h*0.5+4"},
|
|||
|
|
{action:"line",x:"40*0.5-1",y:"h*0.5+3"},
|
|||
|
|
{action:"line",x:"40*0.25+1",y:"h*0.5+3"},
|
|||
|
|
{action:"line",x:"40*0.25+1",y:"h*0.5+4"},
|
|||
|
|
{action:"line",x:"40*0.25",y:"h*0.5+4"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"40*0.25-4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.25+4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.25+4",y:"h*0.5+14"},
|
|||
|
|
{action:"line",x:"40*0.25-4",y:"h*0.5+14"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"40*0.5-4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.5+4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.5+4",y:"h*0.5+14"},
|
|||
|
|
{action:"line",x:"40*0.5-4",y:"h*0.5+14"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"40*0.75-4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.75+4",y:"h*0.5+6"},
|
|||
|
|
{action:"line",x:"40*0.75+4",y:"h*0.5+14"},
|
|||
|
|
{action:"line",x:"40*0.75-4",y:"h*0.5+14"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]);
|
|||
|
|
|
|||
|
|
/***应用系统类型*/Schema.addGlobalCommand("application_system",[
|
|||
|
|
{action:"move",x:"10",y:"h*0.5-14"},
|
|||
|
|
{action:"line",x:"40",y:"h*0.5-14"},
|
|||
|
|
{action:"line",x:"40",y:"h*0.5+14"},
|
|||
|
|
{action:"line",x:"10",y:"h*0.5+14"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"14",y:"h*0.5-5"},
|
|||
|
|
{action:"line",x:"36",y:"h*0.5-5"},
|
|||
|
|
{action:"line",x:"36",y:"h*0.5+10"},
|
|||
|
|
{action:"line",x:"14",y:"h*0.5+10"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"34",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"36",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"36",y:"h*0.5-8"},
|
|||
|
|
{action:"line",x:"34",y:"h*0.5-8"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"28",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"30",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"30",y:"h*0.5-8"},
|
|||
|
|
{action:"line",x:"28",y:"h*0.5-8"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move",x:"22",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"24",y:"h*0.5-10"},
|
|||
|
|
{action:"line",x:"24",y:"h*0.5-8"},
|
|||
|
|
{action:"line",x:"22",y:"h*0.5-8"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]);
|
|||
|
|
/***设备:Decision*/Schema.addShape({name:"device", title:"设备", text:"设备", category:"nqms_physEquipmentAllocation", props:{w:140,h:80,scaling:true,titleProps:{x:30,y:2,w:100,h:30}},lineStyle: {lineColor: "92,92,92", lineStyle:"solid",lineWidth:1},
|
|||
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"}, "fillStyle":{color:"153, 252, 214",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:"31"},
|
|||
|
|
{action:"line",x:"1",y:"31"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move",x:"1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"h-1"},
|
|||
|
|
{action:"line",x:"1",y:"h-1"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:1},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move", x:"6", y:"12"},
|
|||
|
|
{action:"quadraticCurve",x1:"6",y1:"8",x:"10",y:"8"},
|
|||
|
|
{action:"line",x:"20",y:"8"},
|
|||
|
|
{action:"quadraticCurve",x1:"24",y1:"8",x:"24",y:"12"},
|
|||
|
|
{action:"line",x:"24",y:"14"},
|
|||
|
|
{action:"quadraticCurve",x1:"24",y1:"18",x:"20",y:"18"},
|
|||
|
|
{action:"line",x:"10",y:"18"},
|
|||
|
|
{action:"quadraticCurve",x1:"6",y1:"18",x:"6",y:"14"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action:"move", x:"10", y:"18"},
|
|||
|
|
{action:"line",x:"6",y:"22"},
|
|||
|
|
{action:"line",x:"24",y:"22"},
|
|||
|
|
{action:"line",x:"20",y:"18"},
|
|||
|
|
{action:"close"},
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
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"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
]});
|
|||
|
|
/***业务角色*/Schema.addShape({name:"businessRole",title:"业务角色",text:"业务角色",
|
|||
|
|
category:"nqms_physEquipmentAllocation",props:{w:140,h:80,scaling:true,titleProps:{x:30,y:2,w:100,h:30}},lineStyle: {lineColor: "92,92,92", lineStyle:"solid",lineWidth:1},
|
|||
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"}, "fillStyle":{color:"253, 222, 187",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:"31"},
|
|||
|
|
{action:"line",x:"1",y:"31"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move",x:"1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"h-1"},
|
|||
|
|
{action:"line",x:"1",y:"h-1"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:1},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move", x:"10", y:"9"},
|
|||
|
|
{action:"curve", x1:"6", y1:"12", x2:"6", y2:"18", x:"10", y:"21"},
|
|||
|
|
{action:"line",x:"24",y:"21"},
|
|||
|
|
{action:"curve", x1:"28", y1:"18", x2:"28", y2:"12", x:"24", y:"9"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:1},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move", x:"24", y:"21"},
|
|||
|
|
{action:"curve", x1:"20", y1:"18", x2:"20", y2:"12", x:"24", y:"9"},
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
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"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
]
|
|||
|
|
});
|
|||
|
|
/***组织单元*/Schema.addShape({name:"organizationalUnit",title:"组织单元",text:"组织单元",category:"nqms_physEquipmentAllocation",props:{w:140,h:80,scaling:true},lineStyle: {lineColor: "92,92,92", lineStyle:"solid",lineWidth:1},
|
|||
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"}, "fillStyle":{color:"253, 222, 187",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:"31"},
|
|||
|
|
{action:"line",x:"1",y:"31"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action:"move",x:"1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"32"},
|
|||
|
|
{action:"line",x:"w-1",y:"h-1"},
|
|||
|
|
{action:"line",x:"1",y:"h-1"},
|
|||
|
|
{action:"close"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:1},
|
|||
|
|
fillStyle:{color:"255,255,255"},
|
|||
|
|
actions:[
|
|||
|
|
{action: "move", x: "12.5", y: "6"},
|
|||
|
|
{action:"line",x:"20.5",y:"6"},
|
|||
|
|
{action:"line",x:"20.5",y:"12"},
|
|||
|
|
{action:"line",x:"12.5",y:"12"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action: "move", x: "6.5", y: "19"},
|
|||
|
|
{action:"line",x:"11.5",y:"19"},
|
|||
|
|
{action:"line",x:"11.5",y:"24"},
|
|||
|
|
{action:"line",x:"6.5",y:"24"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action: "move", x: "13.5", y: "19"},
|
|||
|
|
{action:"line",x:"18.5",y:"19"},
|
|||
|
|
{action:"line",x:"18.5",y:"24"},
|
|||
|
|
{action:"line",x:"13.5",y:"24"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action: "move", x: "21.5", y: "19"},
|
|||
|
|
{action:"line",x:"26.5",y:"19"},
|
|||
|
|
{action:"line",x:"26.5",y:"24"},
|
|||
|
|
{action:"line",x:"21.5",y:"24"},
|
|||
|
|
{action:"close"},
|
|||
|
|
{action: "move", x: "16.5", y: "12"},
|
|||
|
|
{action:"line",x:"16.5",y:"19"},
|
|||
|
|
{action:"move",x:"9",y:"19"},
|
|||
|
|
{action:"line",x:"9",y:"16"},
|
|||
|
|
{action:"line",x:"24",y:"16"},
|
|||
|
|
{action:"line",x:"24",y:"19"},
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
|
|||
|
|
{
|
|||
|
|
lineStyle:{lineWidth:0},
|
|||
|
|
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"}
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
]
|
|||
|
|
});
|
|||
|
|
|