Updated Project

This commit is contained in:
gigi.mamaladze 2025-10-15 01:20:35 +04:00
parent cd8b7c1b89
commit 0cbd8bd5e2
12 changed files with 112523 additions and 4335 deletions

View File

@ -455,7 +455,7 @@
"OutDown": false,
"OutRight": true,
"OutUp": false,
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM02/DPM2_PS2-1"
"view": "Windows/Tabs/Enternet Windows/DPMs/DPM Devices/MCM02/DPM2_PS2_1"
},
"path": "Windows/Tabs/Enternet Windows/Components/DPM_BLOCK"
},

View File

@ -0,0 +1,18 @@
{
"base": {
"animation": {
"duration": "2.5s",
"keyframes": {
"0%": {
"boxShadow": "0 0 12px 5px rgba(255, 255, 0, 0.8)"
},
"50%": {
"boxShadow": "0 0 20px 8px rgba(255, 255, 0, 1)"
},
"100%": {
"boxShadow": "0 0 5px 2px rgba(255, 255, 0, 0.3)"
}
}
}
}
}

View File

@ -6,9 +6,9 @@
"$": [
"ts",
192,
1759061020328
1760453220142
],
"$ts": 1759061020328
"$ts": 1760453220142
}
}
},

View File

@ -58,7 +58,7 @@
{
"custom": {
"Severity": "High",
"background_on": "false"
"background_on": "true"
},
"events": {
"component": {
@ -157,7 +157,7 @@
{
"custom": {
"Severity": "Medium",
"background_on": "false"
"background_on": "true"
},
"events": {
"component": {
@ -475,16 +475,16 @@
"custom": {
"priorities": {
"diagnostic": false,
"high": false,
"high": true,
"low": false,
"medium": false
"medium": true
}
},
"events": {
"system": {
"onStartup": {
"config": {
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": False,\n\t \"high\": False,\n\t}"
"script": "\tself.custom.priorities \u003d {\n\t \"diagnostic\": False,\n\t \"low\": False,\n\t \"medium\": True,\n\t \"high\": True,\n\t}"
},
"scope": "G",
"type": "script"
@ -1660,17 +1660,17 @@
"$": [
"ts",
192,
1760375320766
1760443389071
],
"$ts": 1760375320765
"$ts": 1760443389070
},
"startDate": {
"$": [
"ts",
192,
1760375320766
1760443389071
],
"$ts": 1760373520765
"$ts": 1760441589070
}
},
"meta": {
@ -1844,7 +1844,7 @@
}
},
"props": {
"formattedValue": "Oct 13, 2025 8:38 PM",
"formattedValue": "Oct 14, 2025 3:33 PM",
"style": {
"margin": 15
}
@ -1928,7 +1928,7 @@
}
},
"props": {
"formattedValue": "Oct 13, 2025 9:08 PM",
"formattedValue": "Oct 14, 2025 4:03 PM",
"style": {
"margin": 15
},
@ -1936,9 +1936,9 @@
"$": [
"ts",
192,
1760375320766
1760443389071
],
"$ts": 1760375320765
"$ts": 1760443389070
}
},
"scripts": {
@ -3282,17 +3282,17 @@
"$": [
"ts",
192,
1760375320767
1760443389071
],
"$ts": 1760375320764
"$ts": 1760443389070
},
"startDate": {
"$": [
"ts",
192,
1760375320765
1760443389071
],
"$ts": 1760373520764
"$ts": 1760441589070
}
},
"meta": {
@ -3559,9 +3559,9 @@
"$": [
"ts",
192,
1760375320767
1760443389071
],
"$ts": 1760375320764
"$ts": 1760443389070
}
},
"scripts": {
@ -3834,7 +3834,7 @@
"$ts": 1747562336635
},
"page_size": 100,
"record_count": 1701,
"record_count": 0,
"source_id_filters": null,
"type_filters": null
},
@ -5710,7 +5710,6 @@
"contentStyle": {
"classes": "Background-Styles/Grey-Background"
},
"currentTabIndex": 1,
"menuType": "modern",
"style": {
"classes": "Background-Styles/Grey-Background"

View File

@ -1311,6 +1311,163 @@
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"children": [
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Commands/bBlockHost1\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button",
"tooltip": {
"enabled": true
}
},
"position": {
"basis": "80px",
"grow": 1
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Maintenance or Administrator role!\")"
},
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "#C3C3C3",
"classes": "Background-Styles/Controller",
"color": "#000000"
},
"text": "BLOCK"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "Block"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"padding": ""
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\ttag_name \u003d self.view.params.tagProps[0]\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Commands/bUnlockHost1\"\n\tsystem.tag.writeBlocking([tag_path],[True])"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button",
"tooltip": {
"enabled": true
}
},
"position": {
"basis": "80px",
"grow": 1
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Maintenance or Administrator role!\")"
},
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "#C3C3C3",
"classes": "Background-Styles/Controller",
"color": "#000000"
},
"text": "UNBLOCK"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "Unblock"
},
"position": {
"basis": "35px"
},
"props": {
"style": {
"classes": "PopUp-Styles/InfoLabel",
"padding": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "100px",
"grow": 1
},
"props": {
"direction": "column",
"style": {
"gap": 6,
"paddingBottom": 20,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 13
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "Commands"
},
"position": {
"tabIndex": 2
},
"props": {
"direction": "column",
"style": {
"margin-left": ""
}
},
"type": "ia.container.flex"
}
],
"meta": {
@ -1319,22 +1476,6 @@
"position": {
"grow": 1
},
"propConfig": {
"props.tabs": {
"binding": {
"config": {
"path": "view.custom.type"
},
"transforms": [
{
"code": "\t# This script runs whenever view.custom.type changes\n\tif value \u003d\u003d 0 or value \u003d\u003d 3:\n\t\treturn [\"Alarms\", \"Info\"]\n\telse:\n\t\treturn [\"Alarms\", \"Info\", \"Commands\"]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"menuType": "modern",
"tabSize": {
@ -1357,7 +1498,12 @@
"fontWeight": "bold",
"paddingLeft": 10
}
}
},
"tabs": [
"Alarms",
"Info",
"Commands"
]
},
"type": "ia.container.tab"
}

View File

@ -3159,7 +3159,7 @@
"grow": 1
},
"props": {
"currentTabIndex": 1,
"currentTabIndex": 2,
"menuType": "modern",
"tabSize": {
"width": 1000

View File

@ -1,12 +1,12 @@
{
"custom": {
"color": "#FFFF00",
"priority": "Low",
"state": "Half Full"
"color": "#000000",
"priority": "No Active Alarms",
"state": "Inactive"
},
"params": {
"tagProps": [
"Status/Chute/Chute_68",
"Status/Chute/Chute_1",
"value",
"value",
"value",
@ -32,7 +32,7 @@
},
"transforms": [
{
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FF8C00\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#D3D3D3\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#CCFFCC\"\n else:\n return \"#808080\"",
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FFA500\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#C2C2C2\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#00FF00\"\n else:\n return \"#000000\"",
"type": "script"
}
],
@ -53,7 +53,7 @@
},
"transforms": [
{
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\telse:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
"type": "script"
}
],

View File

@ -0,0 +1,16 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-10-14T17:58:50Z"
},
"lastModificationSignature": "16432e6c47476b70c892793cfa3f8b07686a5ad920dd73a6c0ba89846df88914"
}
}

View File

@ -0,0 +1,186 @@
{
"custom": {
"color": "#00FF00",
"priority": "No Active Alarms",
"state": "Enabled"
},
"params": {
"tagProps": [
"Status/Chute/Chute_1",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value",
"value"
]
},
"propConfig": {
"custom.color": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/"
},
"transforms": [
{
"code": "\n data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"#FFA500\"\n elif data.get(\"Full\"):\n return \"#0000FF\"\n elif data.get(\"Half_Full\"):\n return \"#FFFF00\"\n elif data.get(\"No_Container\"):\n return \"#C2C2C2\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"#00FF00\"\n else:\n return \"#000000\"",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"custom.priority": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/"
},
"transforms": [
{
"code": "\tdata \u003d dict(value) if value else {}\n\t\n\tif data.get(\"Jam\"):\n\t return \"High\"\n\telif data.get(\"Full\"):\n\t return \"Low\"\n\telif data.get(\"Half_Full\"):\n\t return \"Low\"\n\telif data.get(\"No_Container\"):\n\t return \"Low\"\n\telif data.get(\"Disabled\") \u003d\u003d False:\n\t return \"No Active Alarms\"\n\t\n\treturn \"No Active Alarms\"",
"type": "script"
}
],
"type": "tag"
},
"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}/"
},
"transforms": [
{
"code": " data \u003d dict(value) if value else {}\n\n if data.get(\"Jam\"):\n return \"Jammed\"\n elif data.get(\"Full\"):\n return \"Full\"\n elif data.get(\"Half_Full\"):\n return \"Half Full\"\n elif data.get(\"No_Container\"):\n return \"No Container\"\n elif data.get(\"Disabled\") \u003d\u003d False:\n return \"Enabled\"\n else:\n return \"Inactive\"",
"type": "script"
}
],
"type": "tag"
},
"persistent": true
},
"params.tagProps": {
"paramDirection": "inout",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 52,
"width": 19
}
},
"root": {
"children": [
{
"meta": {
"name": "CoordinateContainer"
},
"position": {
"basis": "200px"
},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"path": "view.custom.color"
},
"type": "property"
}
}
},
"type": "ia.container.coord"
}
],
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tsystem.perspective.openDock(\u0027Docked-East-CH\u0027,params\u003d{\u0027tagProps\u0027:self.view.params.tagProps})"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "root",
"tooltip": {
"enabled": true,
"location": "top-left",
"style": {}
}
},
"propConfig": {
"meta.tooltip.style.classes": {
"binding": {
"config": {
"expression": "{view.custom.priority}"
},
"transforms": [
{
"fallback": "Alarms-Styles/NoAlarm",
"inputType": "scalar",
"mappings": [
{
"input": "High",
"output": "Alarms-Styles/High"
},
{
"input": "Medium",
"output": "Alarms-Styles/Medium"
},
{
"input": "Low",
"output": "Alarms-Styles/Low"
},
{
"input": "Diagnostic",
"output": "Alarms-Styles/Diagnostic"
}
],
"outputType": "style-list",
"type": "map"
}
],
"type": "expr"
}
},
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if(\n {view.custom.state} !\u003d \"TagError\",\n \"Source Id: \" + {view.params.tagProps[1]} + \", Priority: \" + {view.custom.priority} + \", State: \" + {view.custom.state},\n \"Device Disconnected\"\n)\n"
},
"type": "expr"
}
}
},
"props": {
"justify": "center"
},
"type": "ia.container.flex"
}
}

View File

@ -1,6 +1,6 @@
{
"custom": {
"color": "#808080",
"color": "#000000",
"priority": "No Active Alarms",
"state": "Closed",
"type": 0
@ -38,7 +38,7 @@
"type": "expression"
},
{
"fallback": "#808080",
"fallback": "#000000",
"inputType": "scalar",
"mappings": [
{

115469
tags.json

File diff suppressed because it is too large Load Diff