489 lines
17 KiB
Smarty
489 lines
17 KiB
Smarty
|
|
Schema.addCategory({name:"nqms_straGoalAchievement", 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"}
|
|
]);
|
|
|
|
/***能力*/Schema.addShape({name:"abilitylAchievement",title:"能力",text:"能力",category:"nqms_straGoalAchievement",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:"221,222,254",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:0},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action: "move", x: "12", y: "12"},
|
|
{action:"line", x:"24", y:"12"},
|
|
{action:"line", x:"24", y:"24"},
|
|
{action:"line", x:"12", y:"24"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action: "move", x: "24", y: "18"},
|
|
{action: "line", x: "6", y: "18"},
|
|
{action:"line", x:"6", y:"24"},
|
|
{action:"line", x:"24", y:"24"},
|
|
{action:"line", x:"24", y:"6"},
|
|
{action:"line", x:"18", y:"6"},
|
|
{action:"line", x:"18", y:"24"},
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action: "move", x: "12", y: "12"},
|
|
{action:"line", x:"12", y:"24"},
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action: "move", x: "12", y: "12"},
|
|
{action:"line", x:"24", y:"12"},
|
|
]
|
|
},
|
|
|
|
|
|
{
|
|
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:"aimAchievement",title:"目标",text:"目标",category:"nqms_straGoalAchievement",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:"221,222,254",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: "15"},
|
|
{action: "curve", x1: "6", y1: "3", x2: "24", y2: "3", x: "24", y: "15"},
|
|
{action: "curve", x1: "24", y1: "27", x2: "6", y2: "27", x: "6", y: "15"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action: "move", x: "9", y: "15"},
|
|
{action: "curve", x1: "9", y1: "7", x2: "21", y2: "7", x: "21", y: "15"},
|
|
{action: "curve", x1: "21", y1: "23", x2: "9", y2: "23", x: "9", y: "15"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"0,0,0"},
|
|
actions:[
|
|
{action: "move", x: "12", y: "15"},
|
|
{action: "curve", x1: "12", y1: "11", x2: "18", y2: "11", x: "18", y: "15"},
|
|
{action: "curve", x1: "18", y1: "19", x2: "12", y2: "19", x: "12", y: "15"},
|
|
{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:"principle",title:"原则",text:"原则",category:"nqms_straGoalAchievement",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:"221,222,254",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: "7", y: "7"},
|
|
{action:"quadraticCurve", x1:"15", y1:"5", x:"23", y:"7"},
|
|
{action:"quadraticCurve", x1:"25", y1:"15", x:"23", y:"23"},
|
|
{action:"quadraticCurve", x1:"15", y1:"26", x:"7", y:"23"},
|
|
{action:"quadraticCurve", x1:"5", y1:"15", x:"7", y:"7"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"0,0,0"},
|
|
actions:[
|
|
{action: "move", x: "13.5", y: "10"},
|
|
{action:"quadraticCurve", x1:"15", y1:"8", x:"16.5", y:"10"},
|
|
{action:"line", x:"15", y:"18"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"0,0,0"},
|
|
actions:[
|
|
{action: "move", x: "14", y: "21"},
|
|
{action:"line", x:"15", y:"21"},
|
|
{action:"close"}
|
|
]
|
|
},
|
|
{
|
|
lineStyle:{lineWidth:1},
|
|
fillStyle:{color:"0,0,0"},
|
|
actions:[
|
|
{action: "move", x: "14.5", y: "20"},
|
|
{action:"quadraticCurve", x1:"15", y1:"19", x:"15.5", y:"20"},
|
|
{action:"quadraticCurve", x1:"16", y1:"20.5", x:"15.5", y:"21"},
|
|
{action:"quadraticCurve", x1:"15", y1:"22", x:"14.5", y:"21"},
|
|
{action:"quadraticCurve", x1:"14", y1:"20.5", x:"14.5", y:"20"},
|
|
{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:"requirementAchievement",title:"需求",text:"需求",category:"nqms_straGoalAchievement",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,236,181",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:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action:"move",x:"10",y:"10"},
|
|
{action:"line",x:"25",y:"10"},
|
|
{action:"line",x:"21",y:"10+11"},
|
|
{action:"line",x:"6",y:"10+11"},
|
|
{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: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:"restrictionAchievement",title:"约束",text:"约束",category:"nqms_straGoalAchievement",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,236,181",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:1},
|
|
fillStyle:{color:"255,255,255"},
|
|
actions:[
|
|
{action:"move", x:"9", y:"9"},
|
|
{action:"line",x:"24",y:"9"},
|
|
{action:"line",x:"21",y:"21"},
|
|
{action:"line",x:"6",y:"21"},
|
|
{action:"close"},
|
|
{action:"move", x:"13", y:"9"},
|
|
{action:"line",x:"10",y:"21"},
|
|
]
|
|
},
|
|
|
|
|
|
{
|
|
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: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"}
|
|
]
|
|
},
|
|
]
|
|
});
|