Added PLCs in Status/Enternet page

This commit is contained in:
Gigi Mamaladze 2025-05-01 11:39:52 +04:00
parent 10823e83e9
commit 16c0883d71
8 changed files with 1434 additions and 103 deletions

View File

@ -1,10 +1,10 @@
{
"custom": {
"currentTab": "Windows/Tabs/Lane Status"
"currentTab": "value"
},
"params": {
"Tab_ID": 0,
"Table": "Status_tab"
"Tab_ID": null,
"Table": null
},
"propConfig": {
"custom.currentTab": {
@ -59,10 +59,9 @@
"props.path": {
"binding": {
"config": {
"bidirectional": true,
"path": "view.custom.currentTab"
"expression": "if(\r\n {view.custom.currentTab} \u003d \"value\",\r\n \"Windows/Tabs/Enternet Windows/Enternet\",\r\n {view.custom.currentTab}\r\n)\r\n"
},
"type": "property"
"type": "expr"
}
}
},
@ -73,11 +72,32 @@
{
"children": [
{
"meta": {
"name": "Button"
},
"position": {
"basis": "80px",
"grow": 1
},
"props": {
"style": {
"backgroundColor": "#C4D0D5",
"borderStyle": "none"
},
"text": "Enternet",
"textStyle": {
"color": "#000000",
"fontWeight": "lighter"
}
},
"type": "ia.input.button"
}
],
"events": {
"component": {
"onActionPerformed": {
"dom": {
"onClick": {
"config": {
"script": "\tself.view.custom.currentTab \u003d self.props.value"
"script": "\tif (self.parent.custom.currentTab !\u003d \"Windows/Tabs/Enternet Windows/Enternet\"):\n\t\t\tself.parent.custom.currentTab \u003d \"Windows/Tabs/Enternet Windows/Enternet\""
},
"scope": "G",
"type": "script"
@ -85,64 +105,17 @@
}
},
"meta": {
"name": "Dropdown"
},
"position": {
"grow": 1
},
"props": {
"options": [
{
"label": "MCM01",
"value": "Detailed-Views/MCM01 Fluid Inbound Merges 1-4"
},
{
"label": "MCM02",
"value": "Detailed-Views/MCM02 Fluid Inbound Merges 5-7"
},
{
"label": "MCM03",
"value": "/MCM03"
},
{
"label": "MCM04",
"value": "/MCM04"
},
{
"label": "MCM05",
"value": "/MCM05"
},
{
"label": "MCM06",
"value": "/MCM06"
},
{
"label": "MCM07",
"value": "/MCM07"
}
],
"placeholder": {
"text": "Select view"
},
"search": {
"enabled": false
},
"style": {
"backgroundColor": "#C4D0D5",
"borderStyle": "none"
},
"value": 3
},
"type": "ia.input.dropdown"
}
],
"meta": {
"name": "Dropdown"
"name": "Enternet"
},
"position": {
"basis": "200px",
"grow": 1
},
"props": {
"style": {
"backgroundColor": "#C4D0D5"
}
},
"type": "ia.container.flex"
},
{
@ -2335,51 +2308,6 @@
}
},
"type": "ia.container.flex"
},
{
"meta": {
"name": "Info",
"tooltip": {
"enabled": true,
"location": "bottom-right",
"style": {
"backgroundColor": "#2B2B2BBF",
"color": "#FFFFFF",
"fontFamily": "Arial",
"fontSize": 14,
"textAlign": "left",
"white-space": "pre"
},
"text": "About: Ethernet\n\nDevice Type - the type of device that uses the ethernet connection.\nDevice - device name.\nIP Address - device IP address on the ethernet network.\nStatus - the state of the device.\nCurrent (Amps) - measured current of the device (if it is VFD).\nSpeed (FPM) - the measured speed of the device (if it is VFD).\nStatus Code - device fault code.\nLast Status Code - previous device fault code."
}
},
"position": {
"height": 40,
"width": 40,
"x": 1802.99,
"y": 46
},
"propConfig": {
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "if ({view.params.Table} \u003d \"Status_tab\" \u0026\u0026 {view.params.Tab_ID} \u003d 0,\r\n\t\"About: Ethernet\"+ \r\n\t\"\\n\"+\r\n\t\"\\n\"+\"Device Type - the type of device that uses the ethernet connection.\"+ \r\n\t\"\\n\"+\"Device - device name.\"+ \r\n\t\"\\n\"+\"IP Address - device IP address on the ethernet network.\"+ \r\n\t\"\\n\"+\"Status - the state of the device.\"+ \r\n\t\"\\n\"+\"Current (Amps) - measured current of the device (if it is VFD).\"+ \r\n\t\"\\n\"+\"Speed (FPM) - the measured speed of the device (if it is VFD).\"+ \r\n\t\"\\n\"+\"Status Code - device fault code.\"+ \r\n\t\"\\n\"+\"Last Status Code - previous device fault code.\",\r\nif ({view.params.Table} \u003d \"Status_tab\" \u0026\u0026 {view.params.Tab_ID} \u003d 1,\r\n\t\"About: Scanner\"+ \r\n\t\"\\n\"+\r\n\t\"\\n\"+\"Time/date stamp - the date the parcel was read.\"+\r\n\t\"\\n\"+\"Sorter - the name of the sorter on which the parcel\u0027s Bar-code was read.\"+\r\n\t\"\\n\"+\"Parcel ID - \"+\r\n\t\"\\n\"+\"Scanner - the name of the scanner that read the Bar-code of the parcel.\"+\r\n\t\"\\n\"+\"Img ID - \"+\r\n\t\"\\n\"+\"Scan Label - bar-code parcels\"+\r\n\t\"\\n\"+\"Scan Status - bar-code parcel scanning quality.\"+\r\n\t\"\\n\"+\"Length (in) - \"+\r\n\t\"\\n\"+\"Trays (#) - \"+\r\n\t\"\\n\"+\"Assignment - the place of preferred sending of the parcel, to which Chute.\"+\r\n\t\"\\n\"+\"Divert Status - status of sent / unsent parcels on Chute.\"+\r\n\t\"\\n\"+\"Requested Destination - possible place where the parcel can come, to which Chute.\"+\r\n\t\"\\n\"+\"Actual Destination - the place where the parcel arrived, which Chute.\"+\r\n\t\"\\n\"+\"Sort Code - Any errors or reasons for unsuccessful diverts (lane full, lane jam, divert disabled, etc.)\",\r\nif ({view.params.Table} \u003d \"Status_tab\" \u0026\u0026 {view.params.Tab_ID} \u003d 2,\r\n\t\"About: Lane Status\"+ \r\n\t\"\\n\"+\r\n\t\"\\n\"+\"Start Timestamp - time of the first fixation by Full or Jam sorter on a certain lane.\"+\r\n\t\"\\n\"+\"End Timestamp - time of the last fixation by Full or Jam sorter on a certain lane.\"+\r\n\t\"\\n\"+\"Lane (#) - the name of the Lane on which Full or Jam was fixed.\"+\r\n\t\"\\n\"+\"Full (#) - the number of Full states on a certain lane.\"+\r\n\t\"\\n\"+\"Jam(#) - the number of Jam states on a certain lane.\"+\r\n\t\"\\n\"+\"Full Duration - the duration of the Full state on a certain lane.\"+\r\n\t\"\\n\"+\"Jam Duration - the duration of the Jam state on a on a certain lane.\"+\r\n\t\"\\n\"+\"50% Full (#) - number of 50% Full states on a on a certain lane.\"+\r\n\t\"\\n\"+\"Disabled (#) - the number of disabled states on a certain lane.\"+\r\n\t\"\\n\"+\"Enabled (#) - the number of enabled states on a certain lane.\",\r\n\"not response\")))"
},
"enabled": false,
"type": "expr"
}
}
},
"props": {
"fit": {
"mode": "fill"
},
"source": "/system/images/MyIcon/question64x64.png",
"style": {
"cursor": "pointer"
}
},
"type": "ia.display.image"
}
],
"meta": {
@ -2391,7 +2319,7 @@
},
"props": {
"style": {
"backgroundColor": "#1A4A5E",
"backgroundColor": "#F1F1F1",
"overflow": "hidden"
}
},

View File

@ -0,0 +1,17 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json",
"thumbnail.png"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-05-01T07:24:37Z"
},
"lastModificationSignature": "24a7f42ac2f03d4e970acfc39e73164907a11bb226bae7d30477554384867eb6"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,91 @@
{
"custom": {},
"params": {
"MCM": "value"
},
"propConfig": {
"params.MCM": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 512,
"width": 117
}
},
"root": {
"children": [
{
"meta": {
"name": "Image"
},
"position": {
"height": 419.63,
"rotate": {
"anchor": "251% 110%"
},
"width": 93,
"x": 11,
"y": 75.6641
},
"propConfig": {
"props.source": {
"binding": {
"config": {
"expression": "\"http://127.0.0.1:5500/EN4TR.svg?var\" + toMillis(now(1000))"
},
"type": "expr"
}
}
},
"props": {
"fit": {
"mode": "fill"
}
},
"type": "ia.display.image"
},
{
"meta": {
"name": "Label"
},
"position": {
"height": 34.21,
"rotate": {
"anchor": "-132% -413%"
},
"width": 83,
"x": 17,
"y": 28
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.MCM"
},
"type": "property"
}
}
},
"props": {
"style": {
"borderColor": "#1A1A1A",
"borderStyle": "solid"
},
"textStyle": {
"fontFamily": "inherit",
"textAlign": "center"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "root"
},
"type": "ia.container.coord"
}
}

View File

@ -0,0 +1,17 @@
{
"scope": "G",
"version": 1,
"restricted": false,
"overridable": true,
"files": [
"view.json",
"thumbnail.png"
],
"attributes": {
"lastModification": {
"actor": "admin",
"timestamp": "2025-05-01T07:29:53Z"
},
"lastModificationSignature": "42501b5792e3c0f89842ce7ab4949d4a50602498a5a74ef30d285cb45088744e"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,144 @@
{
"custom": {},
"params": {},
"props": {
"defaultSize": {
"height": 894,
"width": 1920
}
},
"root": {
"children": [
{
"meta": {
"name": "MCM01_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 84,
"y": 28
},
"props": {
"params": {
"MCM": "MCM01"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM02_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 332,
"y": 341.49310302734375
},
"props": {
"params": {
"MCM": "MCM02"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM03_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 604,
"y": 57
},
"props": {
"params": {
"MCM": "MCM03"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM04_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 854,
"y": 351
},
"props": {
"params": {
"MCM": "MCM04"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM05_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 1130,
"y": 68.5
},
"props": {
"params": {
"MCM": "MCM05"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM06_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 1425,
"y": 341.99010302734376
},
"props": {
"params": {
"MCM": "MCM06"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "MCM07_PLC"
},
"position": {
"height": 505,
"width": 121,
"x": 1650,
"y": 48.5
},
"props": {
"params": {
"MCM": "MCM07"
},
"path": "Windows/Tabs/Enternet Windows/Components/PLC"
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"type": "ia.container.coord"
}
}

1134
image_server/EN4TR.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 95 KiB