MTN6-244 #124

Merged
gigi.mamaladze merged 5 commits from beka-branch into main 2025-06-14 13:06:56 +00:00
Showing only changes of commit fcab83262d - Show all commits

View File

@ -471,6 +471,10 @@
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
}, },
"transforms": [ "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{ {
"fallback": "ENABLED", "fallback": "ENABLED",
"inputType": "scalar", "inputType": "scalar",
@ -616,6 +620,10 @@
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Full" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Full"
}, },
"transforms": [ "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{ {
"fallback": "NOT FULL", "fallback": "NOT FULL",
"inputType": "scalar", "inputType": "scalar",
@ -761,6 +769,10 @@
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Half_Full" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Half_Full"
}, },
"transforms": [ "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{ {
"fallback": "NOT HALF FULL", "fallback": "NOT HALF FULL",
"inputType": "scalar", "inputType": "scalar",
@ -906,6 +918,10 @@
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Jam" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Jam"
}, },
"transforms": [ "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{ {
"fallback": "NOT JAMMED", "fallback": "NOT JAMMED",
"inputType": "scalar", "inputType": "scalar",
@ -1032,19 +1048,113 @@
}, },
"type": "expr" "type": "expr"
} }
},
"props.style.backgroundColor": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#C9FCC0"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
}
},
"props.style.color": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FFFFFF",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#000000"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
}
},
"props.text": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
},
"transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "DISABLE",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "ENABLE"
}
],
"outputType": "scalar",
"type": "map"
}
],
"type": "tag"
}
} }
}, },
"props": { "props": {
"image": { "image": {
"icon": { "icon": {
"path": "material/sync_problem" "path": "material/cached"
} }
}, },
"style": { "style": {
"backgroundColor": "#FE9240",
"classes": "Background-Styles/Controller" "classes": "Background-Styles/Controller"
}, }
"text": "ENABLE"
}, },
"type": "ia.input.button" "type": "ia.input.button"
} }