MCM names in the header
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 17 KiB |
@ -1,883 +0,0 @@
|
|||||||
{
|
|
||||||
"custom": {},
|
|
||||||
"params": {
|
|
||||||
"Tab_ID": 6,
|
|
||||||
"Table": "Statistics"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"params.Tab_ID": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "/root/Statistics.props.currentTabIndex"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
},
|
|
||||||
"paramDirection": "output",
|
|
||||||
"persistent": true
|
|
||||||
},
|
|
||||||
"params.Table": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "/root/Statistics.meta.name"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
},
|
|
||||||
"paramDirection": "output",
|
|
||||||
"persistent": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"defaultSize": {
|
|
||||||
"height": 930,
|
|
||||||
"width": 1920
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Sorter_Statistics"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Shipping Sorter Statistics",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Sorter_Summary"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 1
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Shipping Sorter Statistics Com",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Scan_Performance"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 2
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Scanner Performance",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Full_Recirc_Jackpot"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 3
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Lane Full Recirc Jackpot",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Total_Scans"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 4
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Total Scans",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Top_Jams"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 5
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Top Jams",
|
|
||||||
"zoomLevel": 50
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Divert_VS_Full"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"tabIndex": 6
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.params.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.endDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.params.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "parent.custom.startDate"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"page": 1,
|
|
||||||
"pageCount": 1,
|
|
||||||
"source": "Statistics/Lane Divert vs Full"
|
|
||||||
},
|
|
||||||
"type": "ia.reporting.report-viewer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"custom": {
|
|
||||||
"endDate": {
|
|
||||||
"$": [
|
|
||||||
"ts",
|
|
||||||
192,
|
|
||||||
1759234523279
|
|
||||||
],
|
|
||||||
"$ts": 1759234522000
|
|
||||||
},
|
|
||||||
"startDate": {
|
|
||||||
"$": [
|
|
||||||
"ts",
|
|
||||||
192,
|
|
||||||
1759234523279
|
|
||||||
],
|
|
||||||
"$ts": 1759205722000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Statistics"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"height": 0.96,
|
|
||||||
"width": 1,
|
|
||||||
"y": 0.04
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.tabs": {
|
|
||||||
"persistent": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"currentTabIndex": 6,
|
|
||||||
"menuStyle": {
|
|
||||||
"backgroundColor": "#FFFFFFBD",
|
|
||||||
"fontSize": "1.0vmin",
|
|
||||||
"overflowWrap": "break-word",
|
|
||||||
"textAlign": "left"
|
|
||||||
},
|
|
||||||
"style": {
|
|
||||||
"fontFamily": "Arial",
|
|
||||||
"width": "100%"
|
|
||||||
},
|
|
||||||
"tabSize": {
|
|
||||||
"width": 160
|
|
||||||
},
|
|
||||||
"tabStyle": {
|
|
||||||
"active": {
|
|
||||||
"flexBasis": 0,
|
|
||||||
"flexGrow": 1,
|
|
||||||
"fontSize": "1.0vmin"
|
|
||||||
},
|
|
||||||
"disabled": {
|
|
||||||
"fontSize": "1.0vmin"
|
|
||||||
},
|
|
||||||
"inactive": {
|
|
||||||
"flexBasis": 0,
|
|
||||||
"flexGrow": 1,
|
|
||||||
"fontSize": "1.0vmin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tabs": [
|
|
||||||
"Sorter Statistics",
|
|
||||||
"Sorter Summary",
|
|
||||||
"Scan Performance",
|
|
||||||
"Full/Recirc/Jackpot",
|
|
||||||
"Total Scans",
|
|
||||||
"Top Jams",
|
|
||||||
"Divert vs Full"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"type": "ia.container.tab"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "LPeriod"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "60px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF"
|
|
||||||
},
|
|
||||||
"text": "Period:"
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Period"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "140px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"dropdownOptionStyle": {
|
|
||||||
"fontSize": "1.5vmin",
|
|
||||||
"overflow": "hidden",
|
|
||||||
"width": "auto"
|
|
||||||
},
|
|
||||||
"options": [
|
|
||||||
{
|
|
||||||
"label": "Past 30 Min",
|
|
||||||
"value": "Past 30 Min"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Past Hour",
|
|
||||||
"value": "Past Hour"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Past 2 Hour",
|
|
||||||
"value": "Past 2 Hour"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Past 4 Hour",
|
|
||||||
"value": "Past 4 Hour"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Past 8 Hour",
|
|
||||||
"value": "Past 8 Hour"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Current Day",
|
|
||||||
"value": "Current Day"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Morning",
|
|
||||||
"value": "Morning"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Daylight",
|
|
||||||
"value": "Daylight"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Twilight",
|
|
||||||
"value": "Twilight"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Night",
|
|
||||||
"value": "Night"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Wrap Down",
|
|
||||||
"value": "Wrap Down"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Current Sort",
|
|
||||||
"value": "Current Sort"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Custom",
|
|
||||||
"value": "Custom"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"style": {
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
},
|
|
||||||
"value": "Past 8 Hour"
|
|
||||||
},
|
|
||||||
"type": "ia.input.dropdown"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Spare_0"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "18.1px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Start Date"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "85px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF"
|
|
||||||
},
|
|
||||||
"text": "Start Date:"
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"custom": {
|
|
||||||
"Selected": {
|
|
||||||
"$": [
|
|
||||||
"ts",
|
|
||||||
192,
|
|
||||||
1689168205405
|
|
||||||
],
|
|
||||||
"$ts": 1688473380000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"component": {
|
|
||||||
"onActionPerformed": {
|
|
||||||
"config": {
|
|
||||||
"script": "\t\n\tself.custom.Selected \u003d self.props.value"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "StartTime"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "190px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.enabled": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{../Period.props.value} \u003d \"Custom\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.maxDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "now()"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.startDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "../Period.props.value"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "todate(now())",
|
|
||||||
"inputType": "expression",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": "\"Past 30 Min\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),-30, \"Minute\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Past Hour\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),-1, \"Hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Past 2 Hour\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),-2, \"Hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Past 4 Hour\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),-4, \"Hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Past 8 Hour\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),-8, \"Hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Current Day\"",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 00:00:00\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Morning\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"2:30:00\",\r dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 2:30:00\"),todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 2:30:00\")))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Daylight\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"7:30:00\", todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 7:30:00\")),todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 7:30:00\")))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Twilight\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Hours\"), \"HH:mm:ss\")\u003c\"13:00:00\", todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 13:00:00\")),todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 13:00:00\")))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Night\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"18:30:00\", todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 18:30:00\")),todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 18:30:00\")))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Wrap Down\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"23:30:00\", todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 23:30:00\")),todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 23:30:00\")))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Current Sort\"",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"7:30:00\", todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 2:30:00\")), \r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"13:00:00\",todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 7:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"18:30:00\",todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 13:00:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"23:30:00\",todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 18:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"2:30:00\", todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 23:30:00\")),\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")))))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "\"Custom\"",
|
|
||||||
"output": "{this.props.value}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "expression",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\t\n\tif self.getSibling(\"Period\").props.value !\u003d \"Custom\":\n\t\tself.props.value \u003d self.props.startDate"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.value": {
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\t\n\tif system.date.secondsBetween(self.props.value,self.getSibling(\"EndTime\").props.value) \u003e 604800 or system.date.secondsBetween(self.props.value,self.getSibling(\"EndTime\").props.value) \u003c 0:\n\t if system.date.secondsBetween(system.date.addSeconds(self.props.value,604800),system.date.now()) \u003c 0: \n\t self.getSibling(\"EndTime\").props.value \u003d system.date.now()\n\t else:\n\t self.getSibling(\"EndTime\").props.value \u003d system.date.addSeconds(self.props.value,604800)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"dismissOnSelect": false,
|
|
||||||
"formattedValue": "Sep 30, 2025 10:17 AM",
|
|
||||||
"formattedValues": {
|
|
||||||
"date": "Mar 26, 2021",
|
|
||||||
"datetime": "Mar 26, 2021 12:00 AM",
|
|
||||||
"time": "12:00 AM"
|
|
||||||
},
|
|
||||||
"inputProps": {
|
|
||||||
"style": {
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"style": {
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"$": [
|
|
||||||
"ts",
|
|
||||||
192,
|
|
||||||
1759241850950
|
|
||||||
],
|
|
||||||
"$ts": 1759213050000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.input.date-time-input"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Spare"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "18.1px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "End Date"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "81px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF"
|
|
||||||
},
|
|
||||||
"text": "End Date:"
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"custom": {
|
|
||||||
"Selected": "value"
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"component": {
|
|
||||||
"onActionPerformed": {
|
|
||||||
"config": {
|
|
||||||
"script": "\t\n\tself.custom.Selected \u003d self.props.value"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "EndTime"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "190px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.enabled": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{../Period.props.value} \u003d \"Custom\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.endDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "../Period.props.value"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "{this.props.value}",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": "Past 30 Min",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"Hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Past Hour",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Past 2 Hour",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Past 4 Hour",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Past 8 Hour",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Current Day",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Morning",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"2:30:00\",\r todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 7:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"7:30:00\",\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")), todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 7:30:00\"))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Daylight",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"7:30:00\",\r todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 13:00:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"13:00:00\",\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")), todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 13:00:00\"))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Twilight",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"13:00:00\",\r todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 18:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"18:30:00\",\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")), todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 18:30:00\"))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Night",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"18:30:00\",\r todate(dateFormat(dateArithmetic(now(0),-1, \"Day\"), \"yyyy-MM-dd 23:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"23:30:00\",\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")), todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 23:30:00\"))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Wrap Down",
|
|
||||||
"output": "if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"23:30:00\",\r todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 2:30:00\")),\r if (dateFormat(dateArithmetic(now(),0, \"Day\"), \"HH:mm:ss\")\u003c\"2:30:00\",\r todate(dateFormat(dateArithmetic(now(),0, \"Day\"), \"yyyy-MM-dd HH:mm:ss\")), todate(dateFormat(dateArithmetic(now(0),0, \"Day\"), \"yyyy-MM-dd 2:30:00\"))))"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "Current Sort",
|
|
||||||
"output": "todate(dateFormat(dateArithmetic(now(),0, \"hour\"), \"yyyy-MM-dd HH:mm:ss\"))"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "expression",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\t\n\tif self.getSibling(\"Period\").props.value !\u003d \"Custom\":\n\t\tself.props.value \u003d self.props.endDate"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.maxDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "if(dateDiff({../StartTime.props.value},now(),\"day\") \u003c 7, now(),dateArithmetic({../StartTime.props.value}, 7, \"days\"))"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.minDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{../StartTime.props.value}"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"dismissOnSelect": false,
|
|
||||||
"formattedValue": "Sep 30, 2025 6:17 PM",
|
|
||||||
"formattedValues": {
|
|
||||||
"date": "Mar 29, 2021",
|
|
||||||
"datetime": "Mar 29, 2021 1:37 PM",
|
|
||||||
"time": "1:37 PM"
|
|
||||||
},
|
|
||||||
"inputProps": {
|
|
||||||
"style": {
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"style": {
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"$": [
|
|
||||||
"ts",
|
|
||||||
192,
|
|
||||||
1759241850968
|
|
||||||
],
|
|
||||||
"$ts": 1759241850000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.input.date-time-input"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "Period_not_Global_0"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"height": 0.0269,
|
|
||||||
"width": 0.483,
|
|
||||||
"x": 0.0025,
|
|
||||||
"y": 0.0059
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"custom.EndDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "./EndTime.props.value"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom.StartDate": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "./StartTime.props.value"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"fontFamily": "Arial",
|
|
||||||
"fontSize": "1.5vmin"
|
|
||||||
},
|
|
||||||
"text": "Highest Sorted PPH at 5 min Interval: 0 pph"
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"component": {
|
|
||||||
"onActionPerformed": {
|
|
||||||
"config": {
|
|
||||||
"script": "\t#Passing start and end dates to the reports, this is to avoid re-renders\n\tstartDate \u003d self.getSibling(\"Period_not_Global_0\").custom.StartDate\n\tendDate \u003d self.getSibling(\"Period_not_Global_0\").custom.EndDate\n\t\n\tself.getSibling(\"Statistics\").custom.startDate \u003d startDate\n\tself.getSibling(\"Statistics\").custom.endDate \u003d endDate\n\t"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Button",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true,
|
|
||||||
"text": "Clicking this button generates new report with updated times"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"height": 0.0312,
|
|
||||||
"width": 0.0667,
|
|
||||||
"x": 0.4958,
|
|
||||||
"y": 0.0043
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"primary": false,
|
|
||||||
"text": "Generate New Report",
|
|
||||||
"textStyle": {
|
|
||||||
"fontSize": "1vmin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.input.button"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"events": {
|
|
||||||
"system": {
|
|
||||||
"onStartup": {
|
|
||||||
"config": {
|
|
||||||
"script": "\t#Saving start and end dates on startup of view\n\tstartDate \u003d self.getChild(\"Period_not_Global_0\").custom.StartDate\n\tendDate \u003d self.getChild(\"Period_not_Global_0\").custom.EndDate\n\t\n\tself.getChild(\"Statistics\").custom.startDate \u003d startDate\n\tself.getChild(\"Statistics\").custom.endDate \u003d endDate"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "root"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"mode": "percent",
|
|
||||||
"style": {
|
|
||||||
"backgroundColor": "#1A4A5E",
|
|
||||||
"overflow": "hidden"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.container.coord"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 29 KiB |
@ -1,941 +0,0 @@
|
|||||||
{
|
|
||||||
"custom": {
|
|
||||||
"largeView": false
|
|
||||||
},
|
|
||||||
"params": {
|
|
||||||
"params": {}
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"custom.largeView": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{page.props.dimensions.viewport.width} \u003e 800"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"persistent": true
|
|
||||||
},
|
|
||||||
"params.params": {
|
|
||||||
"paramDirection": "input",
|
|
||||||
"persistent": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"defaultSize": {
|
|
||||||
"height": 58
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onDoubleClick": {
|
|
||||||
"config": {
|
|
||||||
"page": "/Monitron"
|
|
||||||
},
|
|
||||||
"scope": "C",
|
|
||||||
"type": "nav"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"path": "material/vibration",
|
|
||||||
"style": {
|
|
||||||
"classes": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Label"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "41px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "direct",
|
|
||||||
"tagPath": "[IEC_SCADA_TAG_PROVIDER]Monitron/monitron_data"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\treturn value.getRowCount()",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"textAlign": "center"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "FlexContainer_0"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "80px",
|
|
||||||
"display": false
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onDoubleClick": {
|
|
||||||
"config": {
|
|
||||||
"page": "/Oil"
|
|
||||||
},
|
|
||||||
"scope": "C",
|
|
||||||
"type": "nav"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"path": "material/opacity",
|
|
||||||
"style": {
|
|
||||||
"classes": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Label"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "41px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "direct",
|
|
||||||
"tagPath": "[IEC_SCADA_TAG_PROVIDER]Oil/oil_condition_monitoring"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\treturn value.getRowCount()",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"textAlign": "center"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "FlexContainer_1"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "80px",
|
|
||||||
"display": false
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Image"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "120px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"position.display": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "view.custom.largeView"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"fit": {
|
|
||||||
"height": 30,
|
|
||||||
"mode": "fill"
|
|
||||||
},
|
|
||||||
"source": "/system/images/Builtin/amazon_rme_logo.png"
|
|
||||||
},
|
|
||||||
"type": "ia.display.image"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer Start"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "16px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"id": "Docked-West",
|
|
||||||
"type": "toggle"
|
|
||||||
},
|
|
||||||
"scope": "C",
|
|
||||||
"type": "dock"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Menu Dock"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "24px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"position.display": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "!{view.custom.largeView}"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"path": "material/menu",
|
|
||||||
"style": {
|
|
||||||
"classes": "Header/Icon",
|
|
||||||
"marginRight": "10px"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "FlexContainer"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "550px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"custom": {
|
|
||||||
"area": ""
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Label"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "300px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"custom.path": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{page.props.path}"
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\t# get the last part of the path\n\tmcm_key \u003d str(currentValue.value).split(\u0027/\u0027)[-1]\n\tself.custom.area \u003d mcm_key\n\tsystem.perspective.print(mcm_key)\n\n#\t# get the JSON from the custom property\n#\tjson_data \u003d self.custom.plc_dict\n#\t\n#\t# lookup the Area value\n#\tarea_value \u003d json_data.get(mcm_key, {}).get(\"Area\", \"Unknown\")\n#\t\n#\t# debug prints\n#\tsystem.perspective.print(mcm_key)\n#\tsystem.perspective.print(area_value)\n\t\n\t# write result to another property (e.g., Label.props.text)\n#\tself.getSibling(\"Label\").props.text \u003d \"{mcm_key} - {area_value}\""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom.plc_dict": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]Configuration/PLC"
|
|
||||||
},
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position.display": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{view.params.size} \u003d \"large\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "this.custom.area"
|
|
||||||
},
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"fontFamily": "Arial",
|
|
||||||
"fontWeight": "bold",
|
|
||||||
"textAlign": "center"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "FlexContainer_0"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "150px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "Area"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "200px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon_1",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"meta.tooltip.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{[System]Gateway/Database/MariaDB/Available}"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "Database Connection Status: LOST",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "Database Connection Status: GOOD"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": false,
|
|
||||||
"output": "Database Connection Status: LOST"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "scalar",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.color": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{[System]Gateway/Database/MariaDB/Available}"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "#FF0000",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "#47FF47"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": false,
|
|
||||||
"output": "#FF0000"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "color",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": " db_tag_path \u003d \"[System]Gateway/Database/MariaDB/Available\"\n\t\n if not (system.tag.readBlocking([db_tag_path])[0].value):\n \tsystem.perspective.openPopup(\"errorPopup\",\u0027autStand/PopUp-Views/DatabaseError\u0027, title\u003d\"Database Error\")\n\t"
|
|
||||||
},
|
|
||||||
"persistent": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"color": "#47FF47",
|
|
||||||
"path": "material/table_chart"
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer End_3"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "10px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"custom": {
|
|
||||||
"buttonid": "HeaderLegendIcon"
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"draggable": false,
|
|
||||||
"id": "TZyBcXB7",
|
|
||||||
"modal": true,
|
|
||||||
"overlayDismiss": true,
|
|
||||||
"resizable": false,
|
|
||||||
"showCloseIcon": false,
|
|
||||||
"type": "open",
|
|
||||||
"viewPath": "autStand/PopUp-Views/Legend_Popup/Legend-popup-view",
|
|
||||||
"viewportBound": true
|
|
||||||
},
|
|
||||||
"scope": "C",
|
|
||||||
"type": "popup"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon",
|
|
||||||
"tooltip": {
|
|
||||||
"delay": 250,
|
|
||||||
"enabled": true,
|
|
||||||
"sustain": 1000,
|
|
||||||
"text": "Legend"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "35px"
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"path": "material/legend_toggle",
|
|
||||||
"style": {
|
|
||||||
"classes": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer End"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "10px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"script": "\tsystem.perspective.navigate(page \u003d \"/autStand/Alarms\")"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.color": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "../Label.props.text"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\t\n\treturn \"red\" if value \u003e 0 else \"#fff\"",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"path": "material/notifications_active",
|
|
||||||
"style": {
|
|
||||||
"classes": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Label"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "41px",
|
|
||||||
"grow": 1
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"polling": {
|
|
||||||
"enabled": true,
|
|
||||||
"rate": "3"
|
|
||||||
},
|
|
||||||
"queryPath": "autStand/Alarms/GetActiveAlarmsByLocationAndPriority",
|
|
||||||
"returnFormat": "json"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\ttotal \u003d sum(row[\"Count\"] for row in value if \"Count\" in row and row[\"Count\"] is not None)\n\treturn total",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "query"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"textAlign": "center"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "FlexContainer",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "75px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"meta.tooltip.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{./Label.props.text} + \" active alarms in the system\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"justify": "flex-end",
|
|
||||||
"style": {
|
|
||||||
"cursor": "pointer",
|
|
||||||
"overflow": "hidden"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"custom": {
|
|
||||||
"covert": true
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"script": "\tdevice_list \u003d tags.tag_utilities.get_devices(self.session.custom.fc)\n\ttags.tag_utilities.reset_disconnect_tags(self.session.custom.fc, device_list)\n\tAWS.wbsckt_abort.close_websckt()"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon_2",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"custom.heartbeat_received": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_heartbeat_interval"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"expression": "if(secondsBetween(todate({value}),todate(now())) \u003e 70, False, True)",
|
|
||||||
"type": "expression"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom.wbsckt_running": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_running"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"expression": "if({value} \u003d True \u0026\u0026 ({this.custom.heartbeat_received} \u003d True) , True, False)",
|
|
||||||
"type": "expression"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta.tooltip.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "this.custom.wbsckt_running"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "websocket running"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": false,
|
|
||||||
"output": "websocket disconnected"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "scalar",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.color": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "this.custom.wbsckt_running"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "#000000",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": false,
|
|
||||||
"output": "#FF4747"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "#FFFFFF"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "color",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"path": "material/location_city",
|
|
||||||
"style": {
|
|
||||||
"cursor": "pointer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Label"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"position.basis": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "len({this.props.text}) * 11 + \"px\""
|
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"0": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{0}_SCADA_TAG_PROVIDER]Configuration/FC"
|
|
||||||
},
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"icon": "material/building",
|
|
||||||
"style": {
|
|
||||||
"borderWidth": "0.25px",
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"textAlign": "",
|
|
||||||
"textIndent": 10
|
|
||||||
},
|
|
||||||
"textStyle": {
|
|
||||||
"lineBreak": "auto"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer End"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "20px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"script": "\tif self.session.props.auth.authenticated:\n\t\tsystem.perspective.logout()\n\telse:\n\t\tsystem.perspective.login()"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "User"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"path": "material/person",
|
|
||||||
"style": {
|
|
||||||
"classes": "Header/Icon",
|
|
||||||
"color": "#FFFFFF"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"script": "\tif self.session.props.auth.authenticated:\n\t\tsystem.perspective.logout()\n\telse:\n\t\tsystem.perspective.login()"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Sign In"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "session.props.auth.user.userName"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\tif value is None or len(str(value)) \u003d\u003d 0 or str(value).lower() \u003d\u003d \"null\":\n\t return \"Sign In\"\n\telse:\n\t return str(value).split(\"@\")[0]",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"classes": "Header/Icon",
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"cursor": "pointer",
|
|
||||||
"marginLeft": "4px"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer End_0"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "20px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"events": {
|
|
||||||
"dom": {
|
|
||||||
"onClick": {
|
|
||||||
"config": {
|
|
||||||
"script": "\tsystem.perspective.closeSession()"
|
|
||||||
},
|
|
||||||
"scope": "G",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Exit",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true,
|
|
||||||
"location": "bottom-left",
|
|
||||||
"style": {
|
|
||||||
"fontFamily": "Arial",
|
|
||||||
"fontSize": 12
|
|
||||||
},
|
|
||||||
"tail": false,
|
|
||||||
"text": "Exit Application"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"path": "material/exit_to_app",
|
|
||||||
"style": {
|
|
||||||
"classes": "Header/Icon",
|
|
||||||
"color": "#FFFFFF",
|
|
||||||
"cursor": "pointer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"hasDelegate": true,
|
|
||||||
"name": "Spacer End_1"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "16px",
|
|
||||||
"shrink": 0
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"text": " "
|
|
||||||
},
|
|
||||||
"type": "ia.display.label"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"name": "root"
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"justify": "flex-end",
|
|
||||||
"style": {
|
|
||||||
"background": "rgb(43,43,43)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -595,7 +595,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"title": "",
|
"title": "",
|
||||||
"viewPath": "autStand/Detailed_Views/MCM02-NC SORTER"
|
"viewPath": "autStand/Detailed_Views/MCM02-NON CON SORTER"
|
||||||
},
|
},
|
||||||
"/autStand/Reports": {
|
"/autStand/Reports": {
|
||||||
"docks": {
|
"docks": {
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-09-30T13:10:30Z"
|
"timestamp": "2025-10-01T15:00:30Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "63bf6d7d5f388d1a2c3e823c7e71390139e77cd4268798e4251078cb94e8bcaa"
|
"lastModificationSignature": "ef57cb49865178bfbfc8486cf291e5296e0e3ebbbc4b98079129ab6b8fd7a8b7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-10-01T10:01:09Z"
|
"timestamp": "2025-10-01T13:00:18Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "703b32e2f5d2f02def085075ddc330c86f57bc14a7ac25ce31d6a8af3222dd67"
|
"lastModificationSignature": "c665846fc569e204c937ed05b7c9f1b298cddd4a28d7017a444e32de366f265e"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 40 KiB |
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-10-01T10:02:46Z"
|
"timestamp": "2025-10-01T12:58:51Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "8a2a22c00dd87d5ae0acb6ae123f223dc2e0742cb5bafda2445275cf6e6f82cd"
|
"lastModificationSignature": "e6c89591b30d0cb8b11ca2b4b1278021412e82a9c55c6f69704015092139d3ee"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 42 KiB |
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-10-01T10:01:23Z"
|
"timestamp": "2025-10-01T15:00:39Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "9d7c34fdc8a9128e0bc1c2f42b467658724511d9391f25ec1c23304d75c3b6b2"
|
"lastModificationSignature": "b609a38a08453c30cf653a1a599c325d2f78c8be666bd800cce2c1565d0702d4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 58 KiB |
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"scope": "G",
|
|
||||||
"version": 1,
|
|
||||||
"restricted": false,
|
|
||||||
"overridable": true,
|
|
||||||
"files": [
|
|
||||||
"view.json",
|
|
||||||
"thumbnail.png"
|
|
||||||
],
|
|
||||||
"attributes": {
|
|
||||||
"lastModification": {
|
|
||||||
"actor": "admin",
|
|
||||||
"timestamp": "2025-09-25T13:06:20Z"
|
|
||||||
},
|
|
||||||
"lastModificationSignature": "8819631f301ebd0daf26f26b5c2df9e8294b4e927bf06aeb54a55b0fdf6217ca"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 85 KiB |
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-09-30T12:20:10Z"
|
"timestamp": "2025-10-01T12:57:25Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "f0285d48532680cebabbb90ce25719f9e1916cb8c9f5d00be86587f95df91307"
|
"lastModificationSignature": "9bb0ed265c69e8a030afcf2c1576ded650fe1efcd16e9e01972ef4eaf725b645"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 2.4 KiB |
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-09-30T14:17:31Z"
|
"timestamp": "2025-10-01T14:59:26Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "7390e7d18dc222f1e255bc253be51e20f72d6775dbddc9ce60aca987a6ebbd31"
|
"lastModificationSignature": "2a818c2bf88be425997dd6b1152148a1dfcd42631ef1c0874be8ee49adf58e78"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
@ -258,60 +258,38 @@
|
|||||||
"name": "FlexContainer"
|
"name": "FlexContainer"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"basis": "550px",
|
"basis": "150px",
|
||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"custom": {
|
|
||||||
"area": ""
|
|
||||||
},
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "Label"
|
"name": "Label"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"basis": "300px",
|
"basis": "300px",
|
||||||
"shrink": 0
|
"grow": 1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
"custom.path": {
|
"custom.path": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "{page.props.path}"
|
"expression": "{page.props.primaryView}"
|
||||||
},
|
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\t# get the last part of the path\n\tmcm_key \u003d str(currentValue.value).split(\u0027/\u0027)[-1]\n\tself.custom.area \u003d mcm_key\n\tsystem.perspective.print(mcm_key)\n\n#\t# get the JSON from the custom property\n#\tjson_data \u003d self.custom.plc_dict\n#\t\n#\t# lookup the Area value\n#\tarea_value \u003d json_data.get(mcm_key, {}).get(\"Area\", \"Unknown\")\n#\t\n#\t# debug prints\n#\tsystem.perspective.print(mcm_key)\n#\tsystem.perspective.print(area_value)\n\t\n\t# write result to another property (e.g., Label.props.text)\n#\tself.getSibling(\"Label\").props.text \u003d \"{mcm_key} - {area_value}\""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom.plc_dict": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]Configuration/PLC"
|
|
||||||
},
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position.display": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"expression": "{view.params.size} \u003d \"large\""
|
|
||||||
},
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"code": "\tview \u003d str(value).split(\"/\")[-1]\n\tif not \"MCM\" in view:\n\t\treturn \"\"\n\treturn view\n\t",
|
||||||
|
"type": "script"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props.text": {
|
"props.text": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"path": "this.custom.area"
|
"path": "this.custom.path"
|
||||||
},
|
},
|
||||||
"type": "property"
|
"type": "property"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-10-01T12:28:39Z"
|
"timestamp": "2025-10-01T12:50:53Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "e4067b173a2029ae19a5b0c7ce6519f39e0ff159563e5740bf4634e8040f95b6"
|
"lastModificationSignature": "79d5974e46d8d8cf7596a67d8ed71e4e0c5112afa051c3b23a9e160bdf8ab916"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -12,7 +12,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759321718962
|
1759323051157
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-10-01T12:28:39Z"
|
"timestamp": "2025-10-01T12:50:53Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "d2241e6430ee1be9ff7a1c067bd62784deae5b573948cd9867cb1a92625a6885"
|
"lastModificationSignature": "c14e77fb9af57516b6c7b2a4814e32b0721b0b35fbdc02ba95f6af664b60300f"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4,7 +4,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759321718962
|
1759323053176
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-09-30T14:17:31Z"
|
"timestamp": "2025-10-01T15:00:39Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "371c65c23baac23404c7c147cf5738cca094a6a924578ac3542ce65edceb48cc"
|
"lastModificationSignature": "8ee4058f43ff8f75de6b6bcf2ef0c6cdbd5061dccfa9522329144a004895bce5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 41 KiB |
@ -269,17 +269,17 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759234523279
|
1759323667144
|
||||||
],
|
],
|
||||||
"$ts": 1759234522000
|
"$ts": 1759241850000
|
||||||
},
|
},
|
||||||
"startDate": {
|
"startDate": {
|
||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759234523279
|
1759323667144
|
||||||
],
|
],
|
||||||
"$ts": 1759205722000
|
"$ts": 1759213050000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
@ -585,7 +585,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "Sep 30, 2025 10:17 AM",
|
"formattedValue": "Oct 1, 2025 11:00 AM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 26, 2021",
|
"date": "Mar 26, 2021",
|
||||||
"datetime": "Mar 26, 2021 12:00 AM",
|
"datetime": "Mar 26, 2021 12:00 AM",
|
||||||
@ -603,9 +603,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759241850950
|
1759330838895
|
||||||
],
|
],
|
||||||
"$ts": 1759213050000
|
"$ts": 1759302038000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
@ -756,7 +756,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "Sep 30, 2025 6:17 PM",
|
"formattedValue": "Oct 1, 2025 7:00 PM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 29, 2021",
|
"date": "Mar 29, 2021",
|
||||||
"datetime": "Mar 29, 2021 1:37 PM",
|
"datetime": "Mar 29, 2021 1:37 PM",
|
||||||
@ -774,9 +774,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759241850968
|
1759330838923
|
||||||
],
|
],
|
||||||
"$ts": 1759241850000
|
"$ts": 1759330838000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"lastModification": {
|
"lastModification": {
|
||||||
"actor": "admin",
|
"actor": "admin",
|
||||||
"timestamp": "2025-09-30T10:46:29Z"
|
"timestamp": "2025-10-01T15:00:39Z"
|
||||||
},
|
},
|
||||||
"lastModificationSignature": "b47e8e29e3fc5499abfb136c8a61fc516bbcfce67b7985d78d5a7552394cd502"
|
"lastModificationSignature": "630baf7180add8582232436ada17ae0dd2b71475e666d9524d3466b0e6ea75ea"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 30 KiB |
@ -618,7 +618,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188220
|
1759330838925
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -2165,7 +2165,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188220
|
1759330838897
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -2217,7 +2217,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188220
|
1759330838897
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -3538,7 +3538,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188223
|
1759330838925
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -4880,7 +4880,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188223
|
1759330838896
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -9629,7 +9629,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188224
|
1759330838896
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -24962,7 +24962,7 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ds",
|
"ds",
|
||||||
192,
|
192,
|
||||||
1759229188220
|
1759330838891
|
||||||
],
|
],
|
||||||
"$columns": [
|
"$columns": [
|
||||||
{
|
{
|
||||||
@ -29485,7 +29485,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "Sep 30, 2025 1:46 PM",
|
"formattedValue": "Oct 1, 2025 6:00 PM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 26, 2021",
|
"date": "Mar 26, 2021",
|
||||||
"datetime": "Mar 26, 2021 12:00 AM",
|
"datetime": "Mar 26, 2021 12:00 AM",
|
||||||
@ -29503,9 +29503,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759229188220
|
1759330838923
|
||||||
],
|
],
|
||||||
"$ts": 1759225588000
|
"$ts": 1759327238000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
@ -29656,7 +29656,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "Sep 30, 2025 2:46 PM",
|
"formattedValue": "Oct 1, 2025 7:00 PM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 29, 2021",
|
"date": "Mar 29, 2021",
|
||||||
"datetime": "Mar 29, 2021 1:37 PM",
|
"datetime": "Mar 29, 2021 1:37 PM",
|
||||||
@ -29674,9 +29674,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1759229188217
|
1759330838909
|
||||||
],
|
],
|
||||||
"$ts": 1759229188000
|
"$ts": 1759330838000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
|
|||||||