206 lines
9.1 KiB
Smarty
206 lines
9.1 KiB
Smarty
|
|
|
||
|
|
Schema.addCategory({name:"nqms_physEquipmentList", 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:"equipment",title:"装备",text:"装备",category:"nqms_physEquipmentList",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:"191,252,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:1},
|
||
|
|
fillStyle:{color:"255,255,255"},
|
||
|
|
actions:[
|
||
|
|
{action:"move",x:"13-8",y:"17"},
|
||
|
|
{action:"line",x:"13-8*0.924",y:"17-8*0.383"},
|
||
|
|
{action:"curve",x1:"13-5*0.924",y1:"17-5*0.383",x2:"13-5*0.707",y2:"17-5*0.707",x:"13-8*0.707",y:"17-8*0.707"},
|
||
|
|
{action:"line",x:"13-8*0.383",y:"17-8*0.924"},
|
||
|
|
{action:"curve",x1:"13-5*0.383",y1:"17-5*0.924",x2:"13",y2:"17-5",x:"13",y:"17-8"},
|
||
|
|
{action:"line",x:"13+8*0.383",y:"17-8*0.924"},
|
||
|
|
{action:"curve",x1:"13+5*0.383",y1:"17-5*0.924",x2:"13+5*0.707",y2:"17-5*0.707",x:"13+8*0.707",y:"17-8*0.707"},
|
||
|
|
{action:"line",x:"13+8*0.924",y:"17-8*0.383"},
|
||
|
|
{action:"curve",x1:"13+5*0.924",y1:"17-5*0.383",x2:"13+5",y2:"17",x:"13+8",y:"17"},
|
||
|
|
{action:"line",x:"13+8*0.924",y:"17+8*0.383"},
|
||
|
|
{action:"curve",x1:"13+5*0.924",y1:"17+5*0.383",x2:"13+5*0.707",y2:"17+5*0.707",x:"13+8*0.707",y:"17+8*0.707"},
|
||
|
|
{action:"line",x:"13+8*0.383",y:"17+8*0.924"},
|
||
|
|
{action:"curve",x1:"13+5*0.383",y1:"17+5*0.924",x2:"13",y2:"17+5",x:"13",y:"17+8"},
|
||
|
|
{action:"line",x:"13-8*0.383",y:"17+8*0.924"},
|
||
|
|
{action:"curve",x1:"13-5*0.383",y1:"17+5*0.924",x2:"13-5*0.707",y2:"17+5*0.707",x:"13-8*0.707",y:"17+8*0.707"},
|
||
|
|
{action:"line",x:"13-8*0.924",y:"17+8*0.383"},
|
||
|
|
{action:"curve",x1:"13-5*0.924",y1:"17+5*0.383",x2:"13-5",y2:"17",x:"13-8",y:"17"},
|
||
|
|
|
||
|
|
{action:"move",x:"13-3",y:"17"},
|
||
|
|
{action:"curve",x1:"13-2",y1:"14",x2:"13+2",y2:"14",x:"13+3",y:"17"},
|
||
|
|
{action:"curve",x1:"13+2",y1:"20",x2:"13-2",y2:"20",x:"13-3",y:"17"},
|
||
|
|
{action:"close"}
|
||
|
|
|
||
|
|
]
|
||
|
|
},
|
||
|
|
/***
|
||
|
|
小齿轮
|
||
|
|
*/
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1},
|
||
|
|
fillStyle:{color:"255,255,255"},
|
||
|
|
actions:[
|
||
|
|
{action:"move",x:"25-6",y:"10"},
|
||
|
|
{action:"curve",x1:"25-4",y1:"10",x2:"25-4*0.924",y2:"10-4*0.383",x:"25-6*0.924",y:"10-6*0.383"},
|
||
|
|
{action:"line",x:"25-6*0.707",y:"10-6*0.707"},
|
||
|
|
{action:"curve",x1:"25-4*0.707",y1:"10-4*0.707",x2:"25-4*0.383",y2:"10-4*0.924",x:"25-6*0.383",y:"10-6*0.924"},
|
||
|
|
{action:"line",x:"25",y:"10-6"},
|
||
|
|
{action:"curve",x1:"25",y1:"10-4",x2:"25+4*0.383",y2:"10-4*0.924",x:"25+6*0.383",y:"10-6*0.924"},
|
||
|
|
{action:"line",x:"25+6*0.707",y:"10-6*0.707"},
|
||
|
|
{action:"curve",x1:"25+4*0.707",y1:"10-4*0.707",x2:"25+4*0.924",y2:"10-4*0.383",x:"25+6*0.924",y:"10-6*0.383"},
|
||
|
|
{action:"line",x:"25+6",y:"10"},
|
||
|
|
{action:"curve",x1:"25+4",y1:"10",x2:"25+4*0.924",y2:"10+4*0.383",x:"25+6*0.924",y:"10+6*0.383"},
|
||
|
|
{action:"line",x:"25+6*0.707",y:"10+6*0.707"},
|
||
|
|
{action:"curve",x1:"25+4*0.707",y1:"10+4*0.707",x2:"25+4*0.383",y2:"10+4*0.924",x:"25+6*0.383",y:"10+6*0.924"},
|
||
|
|
{action:"line",x:"25",y:"10+6"},
|
||
|
|
{action:"curve",x1:"25",y1:"10+3",x2:"25-4*0.383",y2:"10+4*0.924",x:"25-6*0.383",y:"10+6*0.924"},
|
||
|
|
{action:"line",x:"25-6*0.707",y:"10+6*0.707"},
|
||
|
|
{action:"curve",x1:"25-4*0.707",y1:"10+4*0.707",x2:"25-4*0.924",y2:"10+4*0.383",x:"25-6*0.924",y:"10+6*0.383"},
|
||
|
|
{action:"line",x:"25-6",y:"10"},
|
||
|
|
{action:"close"},
|
||
|
|
{action:"move",x:"25-2",y:"10"},
|
||
|
|
{action:"curve",x1:"25-1",y1:"8",x2:"25+1",y2:"8",x:"25+2",y:"10"},
|
||
|
|
{action:"curve",x1:"25+1",y1:"12",x2:"25-1",y2:"12",x:"25-2",y:"10"},
|
||
|
|
{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"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
]
|
||
|
|
});
|