110 lines
2.7 KiB
Plaintext
110 lines
2.7 KiB
Plaintext
{
|
|
"custom": {
|
|
"endDate": "2025-04-25 23:59:59",
|
|
"location": null,
|
|
"startDate": "2025-04-20 00:00:00"
|
|
},
|
|
"params": {
|
|
"endDate": "2025-04-25 23:59:59",
|
|
"location": null,
|
|
"startDate": "2025-04-20 00:00:00"
|
|
},
|
|
"propConfig": {
|
|
"custom.endDate": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.endDate"
|
|
},
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.location": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.location"
|
|
},
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.startDate": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.startDate"
|
|
},
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"params.endDate": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.location": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.startDate": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Table"
|
|
},
|
|
"position": {
|
|
"basis": "400px",
|
|
"grow": 1
|
|
},
|
|
"propConfig": {
|
|
"props.columns": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "this.props.data"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\treturn utils.helper.xformTableColumns(value)",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.data": {
|
|
"binding": {
|
|
"config": {
|
|
"struct": {
|
|
"endDate": "toDate({view.custom.endDate})",
|
|
"location": "{view.custom.location}",
|
|
"startDate": "toDate({view.custom.startDate})"
|
|
},
|
|
"waitOnAll": true
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tstartDate \u003d value[\"startDate\"]\n\tendDate \u003d value[\"endDate\"]\n#\treturn reports.MBR.generators.getHistoryLastValues(\"[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_GEN-M1\",\"[Ignition_Common_IO_Gtwy]MPR1240/SATB1_MPR1240_M1_PQM\", startDate, endDate)\n\treturn reports.MBR.generators.buildFinalTable(startDate,endDate,location\u003dNone)",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "expr-struct"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.table"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column"
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |