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,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
},
|
|
"params": {},
|
|
"propConfig": {
|
|
"custom.data": {
|
|
"binding": {
|
|
"config": {
|
|
"bidirectional": true,
|
|
"fallbackDelay": 2.5,
|
|
"mode": "direct",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]CHWS/Chiller_LLS/Control/ORef_Devices"
|
|
},
|
|
"type": "tag"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.key": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"hb": "now(3000)"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\titem \u003d 0\n\ti \u003d 1\n\tfor i in range(1,9):\n\t\tj \u003d 0\n\t\tfor j in range(0,6):\n\t\t\tflex \u003d \"l{:1d}\".format(i)\n\t\t\tself.getChild(\"root\").getChild(\"LLS\").getChild(flex).props.instances[j].ch \u003d self.view.custom.order[item]\n\t\t\tself.getChild(\"root\").getChild(\"LLS\").getChild(flex).props.instances[j].current_op \u003d self.view.custom.data[item]\n\n\t\t\titem +\u003d 1\n\treturn item",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.order": {
|
|
"persistent": true
|
|
},
|
|
"custom.temp": {
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 656,
|
|
"width": 892
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Title"
|
|
},
|
|
"position": {
|
|
"basis": "516px"
|
|
},
|
|
"props": {
|
|
"text": "l8"
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "Header"
|
|
},
|
|
"position": {
|
|
"basis": "5%"
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "l1"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 1,
|
|
"current_op": 27,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 27
|
|
},
|
|
{
|
|
"ch": 2,
|
|
"current_op": 22,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 22
|
|
},
|
|
{
|
|
"ch": 3,
|
|
"current_op": 26,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 26
|
|
},
|
|
{
|
|
"ch": 4,
|
|
"current_op": 14,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 14
|
|
},
|
|
{
|
|
"ch": 5,
|
|
"current_op": 25,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 25
|
|
},
|
|
{
|
|
"ch": 6,
|
|
"current_op": 24,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 24
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l2"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 7,
|
|
"current_op": 16,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 16
|
|
},
|
|
{
|
|
"ch": 8,
|
|
"current_op": 17,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 17
|
|
},
|
|
{
|
|
"ch": 9,
|
|
"current_op": 18,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 18
|
|
},
|
|
{
|
|
"ch": 10,
|
|
"current_op": 19,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 19
|
|
},
|
|
{
|
|
"ch": 11,
|
|
"current_op": 20,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 20
|
|
},
|
|
{
|
|
"ch": 12,
|
|
"current_op": 21,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 21
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l3"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 13,
|
|
"current_op": 11,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 11
|
|
},
|
|
{
|
|
"ch": 14,
|
|
"current_op": 10,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 10
|
|
},
|
|
{
|
|
"ch": 15,
|
|
"current_op": 9,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 9
|
|
},
|
|
{
|
|
"ch": 16,
|
|
"current_op": 8,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 8
|
|
},
|
|
{
|
|
"ch": 17,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 18,
|
|
"current_op": 7,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 7
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l4"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 19,
|
|
"current_op": 6,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 6
|
|
},
|
|
{
|
|
"ch": 20,
|
|
"current_op": 5,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 5
|
|
},
|
|
{
|
|
"ch": 21,
|
|
"current_op": 23,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 23
|
|
},
|
|
{
|
|
"ch": 22,
|
|
"current_op": 4,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 4
|
|
},
|
|
{
|
|
"ch": 23,
|
|
"current_op": 13,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 13
|
|
},
|
|
{
|
|
"ch": 24,
|
|
"current_op": 12,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 12
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l5"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 25,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 35
|
|
},
|
|
{
|
|
"ch": 26,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 36
|
|
},
|
|
{
|
|
"ch": 27,
|
|
"current_op": 37,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 37
|
|
},
|
|
{
|
|
"ch": 28,
|
|
"current_op": 38,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 38
|
|
},
|
|
{
|
|
"ch": 29,
|
|
"current_op": 39,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 39
|
|
},
|
|
{
|
|
"ch": 30,
|
|
"current_op": 34,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 34
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l6"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 31,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 32,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 33,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 34,
|
|
"current_op": 1,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 1
|
|
},
|
|
{
|
|
"ch": 35,
|
|
"current_op": 2,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 2
|
|
},
|
|
{
|
|
"ch": 36,
|
|
"current_op": 3,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 3
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l7"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 37,
|
|
"current_op": 28,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 28
|
|
},
|
|
{
|
|
"ch": 38,
|
|
"current_op": 29,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 29
|
|
},
|
|
{
|
|
"ch": 39,
|
|
"current_op": 30,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 30
|
|
},
|
|
{
|
|
"ch": 40,
|
|
"current_op": 31,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 31
|
|
},
|
|
{
|
|
"ch": 41,
|
|
"current_op": 32,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 32
|
|
},
|
|
{
|
|
"ch": 42,
|
|
"current_op": 33,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 33
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "l8"
|
|
},
|
|
"position": {
|
|
"basis": "12.5%"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"instances": [
|
|
{
|
|
"ch": 43,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 15
|
|
},
|
|
{
|
|
"ch": 44,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 45,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 46,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 47,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
},
|
|
{
|
|
"ch": 48,
|
|
"current_op": 0,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"new_op": 0
|
|
}
|
|
],
|
|
"justify": "center",
|
|
"path": "Pages/Dev/B_Mechanical/Widget/ChillerOP",
|
|
"useDefaultViewHeight": false,
|
|
"useDefaultViewWidth": false
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "LLS"
|
|
},
|
|
"position": {
|
|
"basis": "89.6%"
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"gap": "10px",
|
|
"key": "value"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\titem \u003d 0\n\tlogger \u003d system.util.getLogger(\"LLSOperatorPriority\")\n\ti \u003d 0\n\tfor i in range(1,9):\n\t\tj \u003d 0\n\t\tfor j in range(0,6):\n\t\t\tflex \u003d \"l{:1d}\".format(i)\n\t\t\titem \u003d self.parent.getChild(\"LLS\").getChild(flex).props.instances[j].ch -1\n\t\t\tself.view.custom.temp[item] \u003d self.parent.getChild(\"LLS\").getChild(flex).props.instances[j].new_op\n\t\t\t\n\tself.view.custom.data \u003d self.view.custom.temp\n \n\titem \u003d 0\n\ti \u003d 1\n\tfor i in range(1,9):\n\t\tj \u003d 0\n\t\tfor j in range(0,6):\n\t\t\tflex \u003d \"l{:1d}\".format(i)\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].ch \u003d self.view.custom.order[item]\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].current_op \u003d self.view.custom.data[item]\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].new_op \u003d self.view.custom.temp[item]\n\t\t\titem +\u003d1"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
},
|
|
"system": {
|
|
"onStartup": {
|
|
"config": {
|
|
"script": "\tself.view.custom.temp \u003d self.view.custom.data\n\titem \u003d 0\n\ti \u003d 1\n\tfor i in range(1,9):\n\t\tj \u003d 0\n\t\tfor j in range(0,6):\n\t\t\tflex \u003d \"l{:1d}\".format(i)\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].ch \u003d self.view.custom.order[item]\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].current_op \u003d self.view.custom.data[item]\n\t\t\tself.parent.getChild(\"LLS\").getChild(flex).props.instances[j].new_op \u003d self.view.custom.temp[item]\n\t\t\titem +\u003d 1\t"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Button"
|
|
},
|
|
"position": {
|
|
"basis": "34px"
|
|
},
|
|
"props": {
|
|
"text": "Save"
|
|
},
|
|
"type": "ia.input.button"
|
|
}
|
|
],
|
|
"events": {
|
|
"system": {
|
|
"onStartup": {
|
|
"config": {
|
|
"script": "\titem \u003d 0\n\ti \u003d 1\n\torder \u003d self.view.custom.order\n\tdata \u003d self.view.custom.data\n\ttemp \u003d self.view.custom.temp\n\tfor i in range(1,9):\n\t\tj \u003d 0\n\t\tfor j in range(0,6):\n\t\t\tflex \u003d \"l{:1d}\".format(i)\n\t\t\tself.getChild(\"LLS\").getChild(flex).props.instances[j].ch \u003d order[item]\n\t\t\tself.getChild(\"LLS\").getChild(flex).props.instances[j].current_op \u003d data[item]\n\t\t\tself.getChild(\"LLS\").getChild(flex).props.instances[j].new_op \u003d temp [item]\n\t\t\titem +\u003d 1\n\t\t\t\n\tself.getChild(\"Header\").getChild(\"Title\").props.text \u003d flex"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"padding": "10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |