Added perent project, tags, status and statistics windows

This commit is contained in:
Gigi Mamaladze 2025-04-30 16:33:24 +04:00
parent 907805b5c1
commit 7df8a2f684
782 changed files with 139704 additions and 956 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,17 @@
{
"base": {
"style": {
"backgroundColor": "transparent",
"borderBottomColor": "var(--neutral-30)",
"borderBottomStyle": "solid",
"borderBottomWidth": "1px",
"color": "var(--neutral-80)",
"fontSize": "12px",
"fontWeight": "bold",
"paddingLeft": "6px",
"paddingRight": "6px",
"textTransform": "uppercase",
"fill": "var(--neutral-70)"
}
}
}

View File

@ -0,0 +1,15 @@
{
"base": {
"style": {
"backgroundColor": "#2B2B2B",
"borderColor": "#909090",
"borderStyle": "solid",
"borderWidth": "0.5px",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontSize": "14px",
"fontWeight": "bold",
"textAlign": "center"
}
}
}

View File

@ -0,0 +1,13 @@
{
"base": {
"animation": {
"duration": "1s",
"keyframes": {
"0%": {
"backgroundColor": "#00CC00"
},
"100%": {}
}
}
}
}

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"borderStyle": "none"
}
}
}

View File

@ -0,0 +1,8 @@
{
"base": {
"style": {
"backgroundColor": "transparent",
"margin": "1px"
}
}
}

View File

@ -0,0 +1,17 @@
{
"base": {
"style": {
"backgroundColor": "var(--error)",
"borderTopLeftRadius": "4px",
"borderTopRightRadius": "4px",
"borderBottomLeftRadius": "4px",
"borderBottomRightRadius": "4px",
"color": "var(--neutral-10)",
"fontSize": "12px",
"fontWeight": "bold",
"lineHeight": "16px",
"padding": "2px",
"textAlign": "center"
}
}
}

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"color": "#808080"
}
}
}

View File

@ -0,0 +1,33 @@
{
"base": {
"style": {
"backgroundColor": "var(--neutral-10)",
"borderColor": "var(--warning)",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "var(--warning)",
"fontWeight": "normal",
"margin": "5px",
"textTransform": "uppercase",
"fill": "var(--warning)"
}
},
"variants": [
{
"pseudo": "hover",
"animation": {
"duration": "0.2s",
"direction": "normal",
"iterationCount": "1",
"timingFunction": "ease",
"keyframes": {
"0%": {},
"100%": {
"backgroundColor": "var(--neutral-20)"
}
}
}
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,133 @@
{
"pages": {
"/": {
"title": "",
"viewPath": "Main-Views/Home"
},
"/Command": {
"title": "",
"viewPath": "Main-Views/CommandControl"
},
"/CustomView/:customView": {
"title": "",
"viewPath": "Custom-Views/Detail"
},
"/DetailedView/:detailedView/:plcTagPath": {
"title": "DetailedView",
"viewPath": "Detailed-Views/Detail"
},
"/DetailedView/MCM01 Bulk Inbound": {
"title": "",
"viewPath": "Detailed-Views/MCM01 Bulk Inbound"
},
"/DetailedView/MCM02 \u0026 MCM03 Fluid Inbound": {
"title": "",
"viewPath": "Detailed-Views/MCM02-MCM03 Fluid Inbound"
},
"/DetailedView/MCM04 \u0026 MCM05 Sorter Destination,chutes and bypass": {
"title": "",
"viewPath": "Detailed-Views/MCM04-MCM05 Sorter Destination, chutes and Bypass"
},
"/Device-manager": {
"viewPath": "Main-Views/Device-Manager/DeviceManager"
},
"/Help": {
"title": "Help",
"viewPath": "Main-Views/Help"
},
"/MAP-Home": {
"title": "",
"viewPath": "Additional-Home-View/SAT9"
},
"/Monitron": {
"title": "",
"viewPath": "Main-Views/Monitron"
},
"/Oil": {
"viewPath": "Main-Views/OilMonitoring"
},
"/Temperature": {
"title": "",
"viewPath": "Main-Views/TempMonitoring"
},
"/Tools": {
"title": "Tools",
"viewPath": "Main-Views/ToolBox"
},
"/Windows/Statistics": {
"title": "",
"viewPath": "Windows/Statistics"
},
"/Windows/Status": {
"title": "",
"viewPath": "Windows/Status"
}
},
"sharedDocks": {
"bottom": [
{
"anchor": "fixed",
"autoBreakpoint": 480,
"content": "cover",
"handle": "show",
"iconUrl": "material/notifications_active",
"id": "Docked-South",
"modal": false,
"resizable": false,
"show": "onDemand",
"size": 165,
"viewParams": {},
"viewPath": "Navigation-Views/Docked-South"
}
],
"cornerPriority": "top-bottom",
"left": [
{
"anchor": "fixed",
"autoBreakpoint": 805,
"content": "auto",
"handle": "autoHide",
"iconUrl": "",
"id": "Docked-West",
"modal": false,
"resizable": false,
"show": "auto",
"size": 70,
"viewParams": {},
"viewPath": "Navigation-Views/Docked-West"
}
],
"right": [
{
"anchor": "fixed",
"autoBreakpoint": 480,
"content": "cover",
"handle": "hide",
"iconUrl": "",
"id": "Docked-East",
"modal": false,
"resizable": false,
"show": "onDemand",
"size": 400,
"viewParams": {},
"viewPath": "PopUp-Views/Controller-Equipment/Information-Docked-East"
}
],
"top": [
{
"anchor": "fixed",
"autoBreakpoint": 480,
"content": "auto",
"handle": "hide",
"iconUrl": "",
"id": "",
"modal": false,
"resizable": false,
"show": "visible",
"size": 50,
"viewParams": {},
"viewPath": "Framework/Breakpoint"
}
]
}
}

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"backgroundColor": "#EEEEEE"
}
}
}

View File

@ -0,0 +1,17 @@
{
"base": {
"style": {
"backgroundColor": "var(--neutral-20)",
"borderBottomColor": "var(--neutral-30)",
"borderBottomStyle": "solid",
"borderBottomWidth": "1px",
"color": "var(--neutral-80)",
"fontSize": "12px",
"fontWeight": "bold",
"paddingLeft": "6px",
"paddingRight": "6px",
"textTransform": "uppercase",
"fill": "var(--neutral-70)"
}
}
}

View File

@ -0,0 +1,9 @@
{
"base": {
"style": {
"backgroundColor": "#FFFFFF",
"color": "#000000",
"fontFamily": "Arial"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"backgroundColor": "#00CC00",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontWeight": "bold"
}
}
}

View File

@ -0,0 +1,13 @@
{
"base": {
"animation": {
"duration": "1s",
"keyframes": {
"0%": {
"backgroundColor": "#FF8000B3"
},
"100%": {}
}
}
}
}

View File

@ -0,0 +1,11 @@
{
"base": {
"style": {
"borderColor": "#CCCCCC",
"borderStyle": "solid",
"borderWidth": "1px",
"borderRadius": "4px",
"padding": "4px"
}
}
}

View File

@ -0,0 +1,13 @@
{
"base": {
"animation": {
"duration": "1s",
"keyframes": {
"0%": {
"backgroundColor": "#007DFA"
},
"100%": {}
}
}
}
}

View File

@ -44,6 +44,14 @@
"title": "Tools", "title": "Tools",
"viewPath": "Main-Views/ToolBox" "viewPath": "Main-Views/ToolBox"
}, },
"/Windows/Statistics": {
"title": "",
"viewPath": ""
},
"/Windows/Status": {
"title": "",
"viewPath": ""
},
"/config": { "/config": {
"title": "", "title": "",
"viewPath": "CommissioningTool/PageConfig" "viewPath": "CommissioningTool/PageConfig"

View File

@ -0,0 +1,16 @@
{
"base": {
"style": {
"cursor": "pointer",
"fill": "var(--callToAction)"
}
},
"variants": [
{
"pseudo": "hover",
"style": {
"fill": "var(--callToAction--hover)"
}
}
]
}

View File

@ -0,0 +1,15 @@
{
"base": {
"style": {
"backgroundColor": "#008000",
"borderColor": "#000000",
"borderStyle": "solid",
"borderWidth": "0.5px",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontSize": "14px",
"fontWeight": "bold",
"textAlign": "center"
}
}
}

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"fontWeight": "bold"
}
}
}

View File

@ -0,0 +1,8 @@
{
"base": {
"style": {
"backgroundColor": "#3B3B3B",
"color": "#FFFFFF"
}
}
}

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"backgroundColor": "#FFDC00"
}
}
}

View File

@ -0,0 +1,9 @@
{
"base": {
"style": {
"backgroundColor": "#2F73BF",
"fontFamily": "Arial",
"fontSize": "12px"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"color": "var(--neutral-80)",
"fontSize": "min(2.0vw, 36px)",
"fontWeight": "bold",
"textAlign": "center"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"fontFamily": "Arial",
"fontSize": "10px",
"fontWeight": "bold",
"textAlign": "left"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,33 @@
{
"base": {
"style": {
"backgroundColor": "var(--neutral-10)",
"borderColor": "var(--success)",
"borderStyle": "solid",
"borderWidth": "1px",
"boxShadow": "none",
"color": "var(--success)",
"fontWeight": "normal",
"margin": "5px",
"textTransform": "uppercase",
"fill": "var(--success)"
}
},
"variants": [
{
"pseudo": "hover",
"animation": {
"duration": "0.2s",
"direction": "normal",
"iterationCount": "1",
"timingFunction": "ease",
"keyframes": {
"0%": {},
"100%": {
"backgroundColor": "var(--neutral-20)"
}
}
}
}
]
}

View File

@ -0,0 +1,13 @@
{
"base": {
"animation": {
"duration": "1s",
"keyframes": {
"0%": {
"backgroundColor": "#007EFCB3"
},
"100%": {}
}
}
}
}

View File

@ -0,0 +1,8 @@
{
"base": {
"style": {
"color": "#FAFAFA",
"fontSize": "14px"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -6,9 +6,9 @@
"$": [ "$": [
"ts", "ts",
192, 192,
1715164723047 1746010658533
], ],
"$ts": 1715164723045 "$ts": 1746010658516
} }
} }
}, },
@ -235,6 +235,7 @@
"config": { "config": {
"path": "this.custom.s3URI" "path": "this.custom.s3URI"
}, },
"enabled": false,
"transforms": [ "transforms": [
{ {
"code": "\treturn AWS.s3.getPresignedURL(self, value)", "code": "\treturn AWS.s3.getPresignedURL(self, value)",
@ -247,9 +248,10 @@
}, },
"props": { "props": {
"fit": { "fit": {
"height": 40, "height": 30,
"mode": "fill" "mode": "fill"
} },
"source": "/system/images/Builtin/amazon_rme_logo.png"
}, },
"type": "ia.display.image" "type": "ia.display.image"
}, },

View File

@ -0,0 +1,38 @@
def get_devices(fc):
tag_path = "[%s_SCADA_TAG_PROVIDER]Configuration/DetailedViews" % (fc)
tags_to_read = system.tag.readBlocking([tag_path])
devices = system.util.jsonDecode(tags_to_read[0].value)
device_list = []
for k,v in devices.items():
for i in v:
device_list.append(i)
return(device_list)
def reset_disconnect_tags(whid, device_list):
tags_to_write = []
values_to_write = []
for i in device_list:
tag_path = "[%s_SCADA_TAG_PROVIDER]%s/DCN" % (whid, i)
tags_to_write.append(tag_path)
values_to_write.append(0)
system.tag.writeAsync(tags_to_write, values_to_write)
def get_tag_paths(fc):
tags_to_read = system.tag.readBlocking(["Configuration/FC"])
fc = tags_to_read[0].value
results = system.tag.browse(path ="["+fc+"_SCADA_TAG_PROVIDER]", filter = {"recursive":True, "tagType": "Folder"})
tag_list = results.getResults()
source_list = []
items_to_exclude = ["Configuration", "System","_types_"]
for i in tag_list:
full_path = str(i["fullPath"])
try:
source_id = full_path.split("]")[1]
except IndexError:
continue
if source_id not in items_to_exclude:
item_to_add = {"value": source_id, "label": source_id}
source_list.append(item_to_add)
return(source_list)

View File

@ -0,0 +1,7 @@
{
"base": {
"style": {
"color": "#CCCCFF"
}
}
}

View File

@ -0,0 +1,13 @@
{
"base": {
"style": {
"backgroundColor": "#FAFAFA",
"borderColor": "#D5D5D5",
"borderStyle": "solid",
"borderWidth": "1px",
"borderRadius": "4px",
"boxShadow": "0px 2px 4px rgba(0, 0, 40, 0.15)",
"margin": "5px"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"backgroundColor": "#007DFA",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontWeight": "bold"
}
}
}

View File

@ -0,0 +1,12 @@
{
"base": {
"style": {
"backgroundColor": "#AAAAAA",
"borderColor": "#808080",
"borderStyle": "none",
"color": "#555555",
"margin": "5px",
"fill": "#2B2B2B"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -0,0 +1,9 @@
{
"base": {
"style": {
"margin": "5px",
"marginLeft": "0px",
"marginRight": "0px"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"backgroundColor": "#FF0000",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontWeight": "bold"
}
}
}

View File

@ -6,9 +6,9 @@
"$": [ "$": [
"ts", "ts",
192, 192,
1710802671820 1746012819449
], ],
"$ts": 1710802671820 "$ts": 1746012819449
} }
} }
}, },

View File

@ -0,0 +1,9 @@
{
"base": {
"style": {
"fontFamily": "Arial",
"fontSize": "10px",
"textAlign": "center"
}
}
}

View File

@ -0,0 +1,10 @@
{
"base": {
"style": {
"overflowWrap": "normal",
"paddingLeft": "4px",
"paddingRight": "4px",
"textAlign": "center"
}
}
}

Some files were not shown because too many files have changed in this diff Show More