Files
Stream_PHX_A7/Gateways/FE/projects/.resources/c5ea6e77a83c4a8ce0debb58555b5a3f55c781f0f48b1efe4a49f8361dbba508

406 lines
12 KiB
Plaintext

{
"custom": {
"endDate": "2025-05-15 23:59:59",
"location": "Common",
"startDate": "2025-05-13 00:00:00"
},
"params": {
"endDate": "2025-05-15 23:59:59",
"location": "Common",
"startDate": "2025-05-13 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": [
{
"children": [
{
"children": [
{
"meta": {
"name": "Label_0"
},
"position": {
"basis": "32px"
},
"props": {
"text": "Total Load Summary",
"textStyle": {
"fontWeight": "700"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label"
},
"position": {
"shrink": 0
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "parent.custom.calculated.ResultData"
},
"transforms": [
{
"code": "\treturn \"Daily Avgs: \" + str([round(v[1],2) for v in value])",
"type": "script"
}
],
"type": "property"
}
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_1"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "concat(\"Min Avg: \", round({parent.custom.calculated.MinAvg},2))"
},
"type": "expr"
}
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_2"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "concat(\"Max Avg: \", round({parent.custom.calculated.MaxAvg},2))"
},
"type": "expr"
}
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "TotalLoad"
},
"position": {
"basis": "200px"
},
"propConfig": {
"custom.calculated": {
"binding": {
"config": {
"path": ".../Table.custom.PUEData.TotalLoad"
},
"type": "property"
}
}
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Label_0"
},
"position": {
"basis": "32px"
},
"props": {
"text": "Critical Load Summary",
"textStyle": {
"fontWeight": "700"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "parent.custom.calculated.ResultData"
},
"transforms": [
{
"code": "\treturn \"Daily Avgs: \" + str([round(v[1],2) for v in value])",
"type": "script"
}
],
"type": "property"
}
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_1"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "concat(\"Min Avg: \", round({parent.custom.calculated.MinAvg},2))"
},
"type": "expr"
}
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_2"
},
"position": {
"basis": "32px"
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "concat(\"Max Avg: \", round({parent.custom.calculated.MaxAvg},2))"
},
"type": "expr"
}
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "CriticalLoad"
},
"position": {
"basis": "200px"
},
"propConfig": {
"custom.calculated": {
"binding": {
"config": {
"path": ".../Table.custom.PUEData.CriticalLoad"
},
"type": "property"
}
}
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
},
{
"children": [
{
"children": [
{
"meta": {
"name": "RadioGroup"
},
"position": {
"basis": "200px"
},
"props": {
"radios": [
{
"selected": true,
"text": "Total Load",
"value": "TotalLoad"
},
{
"selected": false,
"text": "Critical Load",
"value": "CriticalLoad"
}
],
"value": "TotalLoad"
},
"type": "ia.input.radio-group"
}
],
"meta": {
"name": "Toggles"
},
"position": {
"basis": "84px"
},
"type": "ia.container.flex"
},
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tdata \u003d [self.parent.parent.parent.getChild(\"Table\").props.data]\n\txlsBytes \u003d system.dataset.toExcel(True, data)\n\ttoggleSelect \u003d self.parent.getChild(\"Toggles\").getChild(\"RadioGroup\").props.value\n\tsystem.perspective.download(\"%s-Raw.xls\"%toggleSelect, xlsBytes)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Export"
},
"position": {
"basis": "34px"
},
"props": {
"text": "Export"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "Actions"
},
"position": {
"basis": "200px"
},
"props": {
"direction": "column",
"justify": "center"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "CalculatedFields"
},
"position": {
"basis": "150px"
},
"type": "ia.container.flex"
},
{
"meta": {
"name": "Table"
},
"position": {
"basis": "400px",
"grow": 1
},
"propConfig": {
"custom.PUEData": {
"binding": {
"config": {
"struct": {
"endDate": "{view.custom.endDate}",
"location": "{view.custom.location}",
"startDate": "{view.custom.startDate}"
},
"waitOnAll": true
},
"transforms": [
{
"code": "\tstartDate \u003d value[\"startDate\"]\n\tendDate \u003d value[\"endDate\"]\n\tlocation\u003d value[\"location\"]\n\n\treturn reports.MBR.totalpower.doAllInterval(startDate, endDate, location, None)",
"type": "script"
}
],
"type": "expr-struct"
}
},
"props.columns": {
"binding": {
"config": {
"path": "this.props.data"
},
"transforms": [
{
"code": "\treturn utils.helper.xformTableColumns(value)",
"type": "script"
}
],
"type": "property"
}
},
"props.data": {
"binding": {
"config": {
"expression": "case({../CalculatedFields/Actions/Toggles/RadioGroup.props.value},\r\n\t\"TotalLoad\", {this.custom.PUEData.TotalLoad.RawDS},\r\n\t\"CriticalLoad\", {this.custom.PUEData.CriticalLoad.RawDS},\r\n\tNone)"
},
"type": "expr"
}
}
},
"type": "ia.display.table"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
}