Added JR Docked East view
This commit is contained in:
parent
d3d383b240
commit
e14fe5c435
@ -2,7 +2,7 @@
|
|||||||
"pages": {
|
"pages": {
|
||||||
"/": {
|
"/": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"viewPath": "Main-Views/Home"
|
"viewPath": "Simulations/Station_JR_PB"
|
||||||
},
|
},
|
||||||
"/Command": {
|
"/Command": {
|
||||||
"title": "",
|
"title": "",
|
||||||
@ -105,6 +105,20 @@
|
|||||||
"size": 400,
|
"size": 400,
|
||||||
"viewParams": {},
|
"viewParams": {},
|
||||||
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
|
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"anchor": "fixed",
|
||||||
|
"autoBreakpoint": 480,
|
||||||
|
"content": "cover",
|
||||||
|
"handle": "hide",
|
||||||
|
"iconUrl": "",
|
||||||
|
"id": "Docked-East-JR",
|
||||||
|
"modal": false,
|
||||||
|
"resizable": false,
|
||||||
|
"show": "onDemand",
|
||||||
|
"size": 400,
|
||||||
|
"viewParams": {},
|
||||||
|
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"top": [
|
"top": [
|
||||||
|
|||||||
@ -105,6 +105,20 @@
|
|||||||
"size": 400,
|
"size": 400,
|
||||||
"viewParams": {},
|
"viewParams": {},
|
||||||
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
|
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"anchor": "fixed",
|
||||||
|
"autoBreakpoint": 480,
|
||||||
|
"content": "cover",
|
||||||
|
"handle": "hide",
|
||||||
|
"iconUrl": "",
|
||||||
|
"id": "Docked-East-JR",
|
||||||
|
"modal": false,
|
||||||
|
"resizable": false,
|
||||||
|
"show": "onDemand",
|
||||||
|
"size": 400,
|
||||||
|
"viewParams": {},
|
||||||
|
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East-JR-PB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"top": [
|
"top": [
|
||||||
|
|||||||
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"scope": "G",
|
||||||
|
"version": 1,
|
||||||
|
"restricted": false,
|
||||||
|
"overridable": true,
|
||||||
|
"files": [
|
||||||
|
"view.json",
|
||||||
|
"thumbnail.png"
|
||||||
|
],
|
||||||
|
"attributes": {
|
||||||
|
"lastModification": {
|
||||||
|
"actor": "admin",
|
||||||
|
"timestamp": "2025-06-06T17:53:37Z"
|
||||||
|
},
|
||||||
|
"lastModificationSignature": "489aa99a6227aecb6c5f25279c628733c458b0aae0aeed8251fc2d755904c918"
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,850 @@
|
|||||||
|
{
|
||||||
|
"custom": {
|
||||||
|
"PLC_list": null,
|
||||||
|
"running_state": -1,
|
||||||
|
"state": 5,
|
||||||
|
"views_data": []
|
||||||
|
},
|
||||||
|
"params": {
|
||||||
|
"tagProps": [
|
||||||
|
"UL1_3_JR_PB1/HMI",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value",
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"custom.PLC_list": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"fc": "{session.custom.fc}"
|
||||||
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]Configuration/PLC"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\tdevices \u003d system.util.jsonDecode(value)\n\tplcList \u003d []\n\tfor k in devices.keys():\n\t\tplcList.append(k)\n\t\t\n\treturn(sorted(set(plcList)))\n",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"custom.running_state": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "try(jsonGet({session.custom.state_messages},{this.custom.tag_path_to_lookup}),-1)\t\r\n"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"expression": "if({value} !\u003d -1, try(jsonGet({value},\"state\"),4),{value})",
|
||||||
|
"type": "expression"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "expr"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"custom.state": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"0": "{view.params.tagProps[0]}",
|
||||||
|
"fc": "{session.custom.fc}"
|
||||||
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/ALARMST"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"expression": "if(isNull({value}), 0, {value})",
|
||||||
|
"type": "expression"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fallback": null,
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": 4,
|
||||||
|
"output": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 3,
|
||||||
|
"output": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 2,
|
||||||
|
"output": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 1,
|
||||||
|
"output": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 0,
|
||||||
|
"output": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "scalar",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"custom.views_data": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"struct": {
|
||||||
|
"equipment_id": "{view.params.tagProps[0]}"
|
||||||
|
},
|
||||||
|
"waitOnAll": true
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\tproject_info \u003d system.perspective.getProjectInfo()\n\t#self.custom.views_data \u003d project_info\n\tviews \u003d project_info.get(\"views\")\n\t#equipment_id \u003d self.view.params.tagProps[0]\n\tviews_data \u003d [i for i in views if i[\"path\"].startswith(\"Custom-Views/\"+ value.equipment_id)]\n\t#self.custom.views_data \u003d views_data\n\t\n\treturn views_data",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "expr-struct"
|
||||||
|
},
|
||||||
|
"persistent": true
|
||||||
|
},
|
||||||
|
"params.tagProps": {
|
||||||
|
"paramDirection": "input",
|
||||||
|
"persistent": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"defaultSize": {
|
||||||
|
"width": 400
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Label"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "\u0027Source ID: \u0027 + {view.params.tagProps[0]}"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\treturn value[:-4]",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"color": "#FFFF",
|
||||||
|
"fontFamily": "Arial",
|
||||||
|
"fontSize": 14,
|
||||||
|
"fontWeight": "bold",
|
||||||
|
"paddingLeft": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"events": {
|
||||||
|
"dom": {
|
||||||
|
"onClick": {
|
||||||
|
"config": {
|
||||||
|
"script": "\tsystem.perspective.closeDock(\u0027Docked-East-JR\u0027)\n\tself.getSibling(\"tabs\").props.currentTabIndex \u003d 0"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "Icon",
|
||||||
|
"tooltip": {
|
||||||
|
"enabled": true,
|
||||||
|
"style": {
|
||||||
|
"cursor": "pointer"
|
||||||
|
},
|
||||||
|
"text": "Close faceplate"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"path": "material/close",
|
||||||
|
"style": {
|
||||||
|
"cursor": "pointer",
|
||||||
|
"marginBottom": 5,
|
||||||
|
"marginLeft": 5,
|
||||||
|
"marginRight": 5,
|
||||||
|
"marginTop": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.icon"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "30px",
|
||||||
|
"shrink": 0
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Label"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "200px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"position.display": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "session.custom.command_auth.enabled"
|
||||||
|
},
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "\u0027Control Enabled Timeout: \\n\u0027 + ({session.custom.command_auth.timeout_sp} - {session.custom.command_auth.auth_timeout}) + \u0027 seconds\u0027"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"color": "#000000",
|
||||||
|
"fontFamily": "Arial",
|
||||||
|
"fontSize": 14,
|
||||||
|
"fontWeight": "bold",
|
||||||
|
"marginBottom": 5,
|
||||||
|
"marginLeft": 5,
|
||||||
|
"marginRight": 5,
|
||||||
|
"marginTop": 5,
|
||||||
|
"whiteSpace": "pre"
|
||||||
|
},
|
||||||
|
"textStyle": {
|
||||||
|
"textAlign": "center"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"events": {
|
||||||
|
"component": {
|
||||||
|
"onActionPerformed": {
|
||||||
|
"config": {
|
||||||
|
"script": "\tif self.session.custom.command_auth.enabled:\n\t\t\tself.session.custom.command_auth.enabled \u003d False\n\telse:\n\t\t#self.session.custom.command_auth.enabled \u003d True\n\t\tsystem.perspective.openPopup(\u0027command-auth\u0027, \u0027PopUp-Views/Command-Authenticate\u0027, showCloseIcon \u003d False, draggable \u003d False, modal \u003d True, overlayDismiss \u003d True)"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "Button_0",
|
||||||
|
"tooltip": {
|
||||||
|
"enabled": true,
|
||||||
|
"location": "bottom",
|
||||||
|
"style": {
|
||||||
|
"whiteSpace": "pre"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "170px",
|
||||||
|
"shrink": 0
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"meta.tooltip.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "//if({this.props.enabled}, \u0027Re-Authenticate to Enable Command Controls\u0027, \u0027Insufficient Privileges - User Role Required: \u0027 + {session.custom.fc} + \u0027-rme-all\u0027)\r\nif({session.custom.command_auth.enabled},\u0027Click to Disable Controls.\u0027, \u0027Re-Authenticate to Enable Command Controls \\nUser Role Required: \u0027 + {session.custom.fc} + \u0027-rme-all\u0027)"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.image.icon.path": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({session.custom.command_auth.enabled},\u0027material/lock_open\u0027,\u0027material/lock\u0027)"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({session.custom.command_auth.enabled},\u0027Disable Controls\u0027,\u0027Enable Controls\u0027)"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"image": {
|
||||||
|
"icon": {}
|
||||||
|
},
|
||||||
|
"primary": false,
|
||||||
|
"style": {
|
||||||
|
"marginBottom": 5,
|
||||||
|
"marginRight": 25,
|
||||||
|
"marginTop": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.input.button"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"justify": "center"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_0"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "100px",
|
||||||
|
"shrink": 0
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"position.display": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.params.tagProps[0]"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\n\tplcList \u003d self.view.custom.PLC_list\n\n\tshowCommand \u003d False\n\n\tfor i in plcList:\n\t\tif value \u003d\u003d i:\n\t\t\tshowCommand \u003d True\n\n\treturn showCommand",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column",
|
||||||
|
"style": {
|
||||||
|
"classes": "Buttons/Clear-Background"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Label"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "32px"
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"position.display": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({../AlarmTable.props.params.length_of_table_data} \u003d 0, True, False)"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "Labels/Label_1",
|
||||||
|
"marginTop": 20
|
||||||
|
},
|
||||||
|
"text": "No Active Alarms"
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "AlarmTable"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "733px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"position.display": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"expression": "if({this.props.params.length_of_table_data} \u003e 0, True, False)"
|
||||||
|
},
|
||||||
|
"type": "expr"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.params.tagProps[0]": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.params.tagProps[0]"
|
||||||
|
},
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"params": {
|
||||||
|
"alarm_states": [
|
||||||
|
"Shelved",
|
||||||
|
"Active",
|
||||||
|
"Not Active"
|
||||||
|
],
|
||||||
|
"length_of_table_data": 0,
|
||||||
|
"show_severity_column": true,
|
||||||
|
"show_state_column": true,
|
||||||
|
"table_type": "Docked-East",
|
||||||
|
"tagProps": [
|
||||||
|
null
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "Alarm-Views/AlarmTable"
|
||||||
|
},
|
||||||
|
"type": "ia.display.view"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Active_tab"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "NameField"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50%",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"paddingLeft": 20
|
||||||
|
},
|
||||||
|
"text": "NAME"
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "DeviceName"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50%",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.params.tagProps[0]"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\treturn value[:-4]",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"backgroundColor": "#FFFFFF",
|
||||||
|
"classes": "Text-Styles/Ariel-Bold-12pt",
|
||||||
|
"paddingLeft": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Name"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "PopUp-Styles/InfoLabel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_0"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "NameField"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50%",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"paddingLeft": 20
|
||||||
|
},
|
||||||
|
"text": "LIGHT"
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "PB_Light"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50%",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"props.style.backgroundColor": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "this.props.text"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "#000000",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": "ON",
|
||||||
|
"output": "#FFFFFF"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "OFF",
|
||||||
|
"output": "#D5D5D5"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "color",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "indirect",
|
||||||
|
"references": {
|
||||||
|
"0": "{view.params.tagProps[0]}"
|
||||||
|
},
|
||||||
|
"tagPath": "[MTN6_SCADA_TAG_PROVIDER]{0}/JR_PB_LT"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "OFF",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "ON"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "OFF"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "scalar",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.textStyle.color": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "this.props.text"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "#000000",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": "ON",
|
||||||
|
"output": "#FF0000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": "OFF",
|
||||||
|
"output": "#47FF47"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "color",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "Text-Styles/Ariel-Bold-12pt",
|
||||||
|
"paddingLeft": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Name"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px",
|
||||||
|
"shrink": 2
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "PopUp-Styles/InfoLabel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_1"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Info_tab"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"tabIndex": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"events": {
|
||||||
|
"component": {
|
||||||
|
"onActionPerformed": {
|
||||||
|
"config": {
|
||||||
|
"script": "\ttag_name \u003d self.view.params.value.tagProps[0]\n\ttag_path \u003d \"[MTN6_SCADA_TAG_PROVIDER]\"+tag_name+\"/Start_PB\"\n\tsystem.perspective.print(tag_path)\n\tsystem.tag.writeBlocking([tag_path],[True])\n\tsystem.perspective.print(tag_path)\n"
|
||||||
|
},
|
||||||
|
"scope": "G",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"name": "Button"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "80px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "Background-Styles/Controller"
|
||||||
|
},
|
||||||
|
"text": "RESET JAM"
|
||||||
|
},
|
||||||
|
"type": "ia.input.button"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Reset Jam"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "35px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"style": {
|
||||||
|
"classes": "PopUp-Styles/InfoLabel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_0"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "100px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "Commands_tab"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"tabIndex": 2
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "tabs"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"currentTabIndex": 2,
|
||||||
|
"menuType": "modern",
|
||||||
|
"tabSize": {
|
||||||
|
"width": 1000
|
||||||
|
},
|
||||||
|
"tabStyle": {
|
||||||
|
"active": {
|
||||||
|
"classes": "",
|
||||||
|
"color": "#FFFFFF",
|
||||||
|
"fontFamily": "Arial",
|
||||||
|
"fontSize": 14,
|
||||||
|
"fontWeight": "bold",
|
||||||
|
"paddingLeft": 10
|
||||||
|
},
|
||||||
|
"inactive": {
|
||||||
|
"classes": "",
|
||||||
|
"color": "#B8B8B8",
|
||||||
|
"fontFamily": "Arial",
|
||||||
|
"fontSize": 14,
|
||||||
|
"fontWeight": "bold",
|
||||||
|
"paddingLeft": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tabs": [
|
||||||
|
"Alarms",
|
||||||
|
"Info",
|
||||||
|
"Commands"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": "ia.container.tab"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer_1"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "670px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "FlexContainer"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "800px",
|
||||||
|
"grow": 1
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column"
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"name": "root"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"direction": "column",
|
||||||
|
"style": {
|
||||||
|
"classes": "Buttons/Button-Menu"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.container.flex"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -11,7 +11,7 @@
|
|||||||
"priority_string": "No active alarms",
|
"priority_string": "No active alarms",
|
||||||
"searchId": "PLC01",
|
"searchId": "PLC01",
|
||||||
"state": 5,
|
"state": 5,
|
||||||
"status": 3,
|
"status": 0,
|
||||||
"visible_status": false
|
"visible_status": false
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
@ -395,7 +395,7 @@
|
|||||||
"dom": {
|
"dom": {
|
||||||
"onClick": {
|
"onClick": {
|
||||||
"config": {
|
"config": {
|
||||||
"script": "\tsystem.perspective.openDock(\u0027Docked-East\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
|
"script": "\tsystem.perspective.openDock(\u0027Docked-East-JR\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
|
||||||
},
|
},
|
||||||
"scope": "G",
|
"scope": "G",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user