353 lines
8.9 KiB
Plaintext
353 lines
8.9 KiB
Plaintext
{
|
|
"custom": {
|
|
"status": "Tag Error"
|
|
},
|
|
"params": {
|
|
"ip": "value",
|
|
"name": "value",
|
|
"tag": "value",
|
|
"tagProps": [
|
|
"System/MCM01/IO_BLOCK/SIO/UL14_1_SIO1",
|
|
"value",
|
|
"value"
|
|
],
|
|
"type": "FIO_SIO"
|
|
},
|
|
"propConfig": {
|
|
"custom.status": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.tag"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "Tag Error",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "Communication Faulted"
|
|
},
|
|
{
|
|
"input": false,
|
|
"output": "Good"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.ip": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.name": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tag": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagProps": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.type": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 271,
|
|
"width": 277
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "RunningStatus"
|
|
},
|
|
"position": {
|
|
"height": 0.989,
|
|
"rotate": {
|
|
"angle": 0
|
|
},
|
|
"width": 0.9892
|
|
},
|
|
"propConfig": {
|
|
"props.elements[0].fill.paint": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.tag"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "#00FF00",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": true,
|
|
"output": "#FF0000"
|
|
},
|
|
{
|
|
"input": "comm",
|
|
"output": "#FFFFFF"
|
|
}
|
|
],
|
|
"outputType": "color",
|
|
"type": "map"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"elements": [
|
|
{
|
|
"d": "M74,24\nC80.666666,24 84,27.333334 84,34\nL84,74\nC84,80.666666 80.666666,84 74,84\nL34,84\nC27.333334,84 24,80.666666 24,74\nL24,34\nC24,27.333334 27.333334,24 34,24\nZ\n",
|
|
"fill": {},
|
|
"name": "path",
|
|
"stroke": {
|
|
"paint": "#4c4c4c",
|
|
"width": 3
|
|
},
|
|
"type": "path"
|
|
}
|
|
],
|
|
"preserveAspectRatio": "none",
|
|
"style": {
|
|
"overflow": "hidden"
|
|
},
|
|
"viewBox": "20 20 67 67"
|
|
},
|
|
"type": "ia.shapes.svg"
|
|
},
|
|
{
|
|
"custom": {
|
|
"key": "value"
|
|
},
|
|
"meta": {
|
|
"name": "EmbeddedView"
|
|
},
|
|
"position": {
|
|
"height": 0.4059,
|
|
"width": 0.491,
|
|
"x": 0.2834,
|
|
"y": 0.5092
|
|
},
|
|
"propConfig": {
|
|
"props.path": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "\"autStand/Windows/Tabs/Enternet Windows/Components/\" + {view.params.type}"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"params": {
|
|
"Down1": false,
|
|
"Down2": false,
|
|
"Down3": false,
|
|
"DownLeft": false,
|
|
"DownOn": false,
|
|
"DownRight": false,
|
|
"InDown": false,
|
|
"InLeft": false,
|
|
"InOn": false,
|
|
"InUp": false,
|
|
"OutDown": false,
|
|
"OutOn": false,
|
|
"OutRight": false,
|
|
"OutUp": false
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "name"
|
|
},
|
|
"position": {
|
|
"height": 0.1181,
|
|
"width": 1,
|
|
"y": 0.1661
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.name"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontSize": "10px",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
},
|
|
"textStyle": {
|
|
"fontSize": "10px",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "type"
|
|
},
|
|
"position": {
|
|
"height": 0.1181,
|
|
"width": 1,
|
|
"y": 0.3432
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.type"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"fallback": "",
|
|
"inputType": "scalar",
|
|
"mappings": [
|
|
{
|
|
"input": "DPM_BLOCK",
|
|
"output": "DPM"
|
|
},
|
|
{
|
|
"input": "PLC",
|
|
"output": "PLC"
|
|
},
|
|
{
|
|
"input": "FIO_SIO",
|
|
"output": "FIO"
|
|
},
|
|
{
|
|
"input": "PMM",
|
|
"output": "PMM"
|
|
},
|
|
{
|
|
"input": "SIO",
|
|
"output": "SIO"
|
|
}
|
|
],
|
|
"outputType": "scalar",
|
|
"type": "map"
|
|
},
|
|
{
|
|
"code": "\tif \"SIO\" in self.view.params.name:\n\t\treturn \"SIO\"\n\treturn value",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"fontSize": "16px",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
},
|
|
"textStyle": {
|
|
"fontSize": "16px",
|
|
"fontWeight": "bold",
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\n\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset, \"name\":\"\"} )"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
},
|
|
"onMouseEnter": {
|
|
"config": {
|
|
"draggable": false,
|
|
"id": "LZ5nPg43{view.params.tagProps[0]}",
|
|
"modal": false,
|
|
"overlayDismiss": false,
|
|
"position": {
|
|
"relativeLocation": "top-right"
|
|
},
|
|
"positionType": "relative",
|
|
"resizable": false,
|
|
"showCloseIcon": false,
|
|
"type": "open",
|
|
"viewParams": {
|
|
"text": "{/root.meta.tooltip.text}"
|
|
},
|
|
"viewPath": "autStand/Custom_Views/Tooltip",
|
|
"viewportBound": false
|
|
},
|
|
"scope": "C",
|
|
"type": "popup"
|
|
},
|
|
"onMouseLeave": {
|
|
"config": {
|
|
"draggable": true,
|
|
"id": "LZ5nPg43{view.params.tagProps[0]}",
|
|
"modal": false,
|
|
"overlayDismiss": false,
|
|
"resizable": true,
|
|
"showCloseIcon": true,
|
|
"type": "close",
|
|
"viewPath": "autStand/Custom_Views/Tooltip",
|
|
"viewportBound": false
|
|
},
|
|
"scope": "C",
|
|
"type": "popup"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root",
|
|
"tooltip": {
|
|
"enabled": true,
|
|
"style": {
|
|
"classes": "Alarms-Styles/NoAlarm"
|
|
}
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "if(\n {view.custom.status} !\u003d \"Tag Error\",\n \"Source Id: \" + {view.custom.status} + \", IP: \" + {view.params.ip},\n \"Device Disconnected. IP: \" + {view.params.ip}\n)\n"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"mode": "percent",
|
|
"style": {
|
|
"cursor": "pointer",
|
|
"overflow": "hidden"
|
|
}
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |