Associate protocol tag fields batch 3
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "hh-address",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "hh-datatype",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "hh-datatype",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "select",
|
||||
"key": "hh-datatype",
|
||||
"labelsAdded": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-fullname",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "select",
|
||||
"key": "mtc-datatype",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-category",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-type",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-subtype",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-units",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-device",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "mtc-component",
|
||||
"labelsAdded": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,119 @@
|
||||
[
|
||||
{
|
||||
"tag": "select",
|
||||
"key": "field-01",
|
||||
"labelsAdded": [
|
||||
"Model"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-02",
|
||||
"labelsAdded": [
|
||||
"Table or view"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-03",
|
||||
"labelsAdded": [
|
||||
"Named query"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "select",
|
||||
"key": "field-04",
|
||||
"labelsAdded": [
|
||||
"Type override"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-05",
|
||||
"labelsAdded": [
|
||||
"Result column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-06",
|
||||
"labelsAdded": [
|
||||
"Row key column (optional)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-07",
|
||||
"labelsAdded": [
|
||||
"Row key value"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-08",
|
||||
"labelsAdded": [
|
||||
"Key column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-09",
|
||||
"labelsAdded": [
|
||||
"Key value"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-10",
|
||||
"labelsAdded": [
|
||||
"Value column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-11",
|
||||
"labelsAdded": [
|
||||
"Value column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "select",
|
||||
"key": "field-12",
|
||||
"labelsAdded": [
|
||||
"Row selector"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-13",
|
||||
"labelsAdded": [
|
||||
"Where column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-14",
|
||||
"labelsAdded": [
|
||||
"Where value"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-15",
|
||||
"labelsAdded": [
|
||||
"Order-by (timestamp) column"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "sqlTagWritable",
|
||||
"labelsAdded": []
|
||||
},
|
||||
{
|
||||
"tag": "input",
|
||||
"key": "field-17",
|
||||
"labelsAdded": [
|
||||
"Timestamp column (optional)"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/bin/Debug/netstandard2.0/ZB.MOM.WW.OtOpcUa.Analyzers.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Commons.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Configuration.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Cluster.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.dll
|
||||
ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Security.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
|
||||
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
|
||||
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
|
||||
ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Runtime.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
|
||||
Test run for /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0)
|
||||
A total of 1 test files matched the specified pattern.
|
||||
|
||||
Passed! - Failed: 0, Passed: 141, Skipped: 0, Total: 141, Duration: 227 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
+16
-12
@@ -9,14 +9,14 @@
|
||||
|
||||
<div class="row g-2">
|
||||
<div class="col-md-8">
|
||||
<label class="form-label" for="hh-address">Address</label>
|
||||
<input id="hh-address" type="text" class="form-control form-control-sm mono" list="hh-catalog"
|
||||
<label class="form-label" for="@FieldId("hh-address")">Address</label>
|
||||
<input aria-describedby="@FieldIds("hh-address-hint")" id="@FieldId("hh-address")" type="text" class="form-control form-control-sm mono" list="@FieldId("hh-catalog")"
|
||||
value="@_m.Address" @onchange="@(e => Update(() => _m.Address = e.Value?.ToString() ?? ""))"
|
||||
placeholder="Status/ExecutionState · PLC:WORD:4 · DATA:/PLC/memory/W/8 · ALARM:*" />
|
||||
<datalist id="hh-catalog">
|
||||
<datalist id="@FieldId("hh-catalog")">
|
||||
@foreach (var e in HeidenhainCatalog.Entries) { <option value="@e.Address"></option> }
|
||||
</datalist>
|
||||
<div class="form-text">
|
||||
<div id="@FieldId("hh-address-hint")" class="form-text">
|
||||
A fixed leaf, <span class="mono">PLC:AREA:INDEX</span> (element index into the control's advertised region; AREA one of
|
||||
@string.Join(", ", HeidenhainAddress.AreaTokens)), <span class="mono">DATA:/path</span> (needs DATA access enabled on the driver),
|
||||
or an alarm condition <span class="mono">ALARM:*</span> · <span class="mono">ALARM:OTHER</span> ·
|
||||
@@ -24,34 +24,38 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label" for="hh-datatype">Data type</label>
|
||||
<label class="form-label" for="@FieldId("hh-datatype")">Data type</label>
|
||||
@if (_m.IsCatalogAddress)
|
||||
{
|
||||
<input id="hh-datatype" type="text" class="form-control form-control-sm mono" value="@CatalogShape()" disabled readonly />
|
||||
<div class="form-text">Fixed by the namespace catalog.</div>
|
||||
<input aria-describedby="@FieldId("catalog-type-hint")" id="@FieldId("hh-datatype")" type="text" class="form-control form-control-sm mono" value="@CatalogShape()" disabled readonly />
|
||||
<div id="@FieldId("catalog-type-hint")" class="form-text">Fixed by the namespace catalog.</div>
|
||||
}
|
||||
else if (_m.IsAlarmAddress)
|
||||
{
|
||||
<input id="hh-datatype" type="text" class="form-control form-control-sm mono" value="@HeidenhainTagDefinitionFactory.AlarmConditionDataType" disabled readonly />
|
||||
<div class="form-text">A Part 9 condition (active / inactive), not a value.</div>
|
||||
<input aria-describedby="@FieldId("alarm-type-hint")" id="@FieldId("hh-datatype")" type="text" class="form-control form-control-sm mono" value="@HeidenhainTagDefinitionFactory.AlarmConditionDataType" disabled readonly />
|
||||
<div id="@FieldId("alarm-type-hint")" class="form-text">A Part 9 condition (active / inactive), not a value.</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<select id="hh-datatype" class="form-select form-select-sm" value="@_m.DataType"
|
||||
<select aria-describedby="@FieldId("custom-type-hint")" id="@FieldId("hh-datatype")" class="form-select form-select-sm" value="@_m.DataType"
|
||||
@onchange="@(e => Update(() => _m.DataType = ParseEnum(e.Value, DriverDataType.Int32)))">
|
||||
@foreach (var v in HeidenhainAddress.CustomDataTypes) { <option value="@v">@v</option> }
|
||||
</select>
|
||||
<div class="form-text">Must hold the area's native range (no narrowing): Boolean for bit areas, String for STRING.</div>
|
||||
<div id="@FieldId("custom-type-hint")" class="form-text">Must hold the area's native range (no narrowing): Boolean for bit areas, String for STRING.</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (_m.Validate() is { } error)
|
||||
{
|
||||
<div class="text-danger small mt-2">@error</div>
|
||||
<div id="@FieldId("validation")" class="text-danger small mt-2" role="alert">@error</div>
|
||||
}
|
||||
|
||||
@code {
|
||||
private readonly string _fieldScope = "heidenhain-tag-config-editor-" + Guid.NewGuid().ToString("N");
|
||||
private string FieldIds(params string[] names) => string.Join(" ", names.Select(FieldId));
|
||||
private string FieldId(string name) => $"{_fieldScope}-{name}";
|
||||
|
||||
/// <summary>The tag's raw TagConfig JSON (supports <c>@bind-ConfigJson</c>).</summary>
|
||||
[Parameter] public string? ConfigJson { get; set; }
|
||||
/// <summary>Two-way config callback.</summary>
|
||||
|
||||
+23
-19
@@ -19,59 +19,59 @@
|
||||
|
||||
<div class="row g-2">
|
||||
<div class="col-md-8">
|
||||
<label class="form-label" for="mtc-fullname">DataItem id</label>
|
||||
<input id="mtc-fullname" type="text" class="form-control form-control-sm mono"
|
||||
<label class="form-label" for="@FieldId("mtc-fullname")">DataItem id</label>
|
||||
<input aria-describedby="@FieldIds("mtc-fullname-hint")" id="@FieldId("mtc-fullname")" type="text" class="form-control form-control-sm mono"
|
||||
value="@_m.FullName" @onchange="@(e => Update(() => _m.FullName = e.Value?.ToString() ?? ""))"
|
||||
placeholder="Xact" />
|
||||
<div class="form-text">The Agent DataItem's <span class="mono">id</span> attribute — the driver's read/subscribe key.</div>
|
||||
<div id="@FieldId("mtc-fullname-hint")" class="form-text">The Agent DataItem's <span class="mono">id</span> attribute — the driver's read/subscribe key.</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label" for="mtc-datatype">Data type</label>
|
||||
<select id="mtc-datatype" class="form-select form-select-sm" value="@_m.DataType"
|
||||
<label class="form-label" for="@FieldId("mtc-datatype")">Data type</label>
|
||||
<select aria-describedby="@FieldIds("mtc-datatype-hint")" id="@FieldId("mtc-datatype")" class="form-select form-select-sm" value="@_m.DataType"
|
||||
@onchange="@(e => Update(() => _m.DataType = ParseEnum(e.Value, DriverDataType.String)))">
|
||||
@foreach (var v in Enum.GetValues<DriverDataType>()) { <option value="@v">@v</option> }
|
||||
</select>
|
||||
<div class="form-text">Overrides the type the browse picker inferred. MTConnect is text on the wire — a wrong numeric type reads as Bad quality.</div>
|
||||
<div id="@FieldId("mtc-datatype-hint")" class="form-text">Overrides the type the browse picker inferred. MTConnect is text on the wire — a wrong numeric type reads as Bad quality.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@* Probe-sourced device-model metadata — display only. *@
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-3">
|
||||
<label class="form-label" for="mtc-category">Category</label>
|
||||
<input id="mtc-category" type="text" class="form-control form-control-sm mono"
|
||||
<label class="form-label" for="@FieldId("mtc-category")">Category</label>
|
||||
<input aria-describedby="@FieldId("probe-metadata-hint")" id="@FieldId("mtc-category")" type="text" class="form-control form-control-sm mono"
|
||||
value="@Display(_m.MtCategory)" disabled readonly />
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label" for="mtc-type">Type</label>
|
||||
<input id="mtc-type" type="text" class="form-control form-control-sm mono"
|
||||
<label class="form-label" for="@FieldId("mtc-type")">Type</label>
|
||||
<input aria-describedby="@FieldId("probe-metadata-hint")" id="@FieldId("mtc-type")" type="text" class="form-control form-control-sm mono"
|
||||
value="@Display(_m.MtType)" disabled readonly />
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label" for="mtc-subtype">Sub-type</label>
|
||||
<input id="mtc-subtype" type="text" class="form-control form-control-sm mono"
|
||||
<label class="form-label" for="@FieldId("mtc-subtype")">Sub-type</label>
|
||||
<input aria-describedby="@FieldId("probe-metadata-hint")" id="@FieldId("mtc-subtype")" type="text" class="form-control form-control-sm mono"
|
||||
value="@Display(_m.MtSubType)" disabled readonly />
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label" for="mtc-units">Units</label>
|
||||
<input id="mtc-units" type="text" class="form-control form-control-sm mono"
|
||||
<label class="form-label" for="@FieldId("mtc-units")">Units</label>
|
||||
<input aria-describedby="@FieldId("probe-metadata-hint")" id="@FieldId("mtc-units")" type="text" class="form-control form-control-sm mono"
|
||||
value="@Display(_m.Units)" disabled readonly />
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-text">From the Agent's <span class="mono">/probe</span> device model — not editable here. Re-pick the tag in the browser to refresh it.</div>
|
||||
<div id="@FieldId("probe-metadata-hint")" class="form-text">From the Agent's <span class="mono">/probe</span> device model — not editable here. Re-pick the tag in the browser to refresh it.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@* Author's own notes — not consumed by the driver or the runtime. *@
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label" for="mtc-device">Device (note)</label>
|
||||
<input id="mtc-device" type="text" class="form-control form-control-sm"
|
||||
<label class="form-label" for="@FieldId("mtc-device")">Device (note)</label>
|
||||
<input id="@FieldId("mtc-device")" type="text" class="form-control form-control-sm"
|
||||
value="@_m.MtDevice" @onchange="@(e => Update(() => _m.MtDevice = e.Value?.ToString()))" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label" for="mtc-component">Component (note)</label>
|
||||
<input id="mtc-component" type="text" class="form-control form-control-sm"
|
||||
<label class="form-label" for="@FieldId("mtc-component")">Component (note)</label>
|
||||
<input id="@FieldId("mtc-component")" type="text" class="form-control form-control-sm"
|
||||
value="@_m.MtComponent" @onchange="@(e => Update(() => _m.MtComponent = e.Value?.ToString()))" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,6 +86,10 @@
|
||||
}
|
||||
|
||||
@code {
|
||||
private readonly string _fieldScope = "m-t-connect-tag-config-editor-" + Guid.NewGuid().ToString("N");
|
||||
private string FieldIds(params string[] names) => string.Join(" ", names.Select(FieldId));
|
||||
private string FieldId(string name) => $"{_fieldScope}-{name}";
|
||||
|
||||
/// <summary>The tag's raw TagConfig JSON (supports <c>@bind-ConfigJson</c>).</summary>
|
||||
[Parameter] public string? ConfigJson { get; set; }
|
||||
/// <summary>Two-way config callback.</summary>
|
||||
|
||||
+45
-41
@@ -12,25 +12,25 @@
|
||||
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers.Pickers
|
||||
|
||||
<div class="row g-2">
|
||||
<div class="col-md-4"><label class="form-label">Model</label>
|
||||
<select class="form-select form-select-sm" value="@_m.Model" @onchange="@(e => Update(() => _m.Model = ParseEnum(e.Value, SqlTagModel.KeyValue)))">
|
||||
<div class="col-md-4"><label for="@FieldId("field-01")" class="form-label">Model</label>
|
||||
<select id="@FieldId("field-01")" class="form-select form-select-sm" value="@_m.Model" @onchange="@(e => Update(() => _m.Model = ParseEnum(e.Value, SqlTagModel.KeyValue)))">
|
||||
<option value="@SqlTagModel.KeyValue">KeyValue</option>
|
||||
<option value="@SqlTagModel.WideRow">WideRow</option>
|
||||
<option value="@SqlTagModel.Query">Query (named query)</option>
|
||||
</select></div>
|
||||
@if (_m.Model != SqlTagModel.Query)
|
||||
{
|
||||
<div class="col-md-5"><label class="form-label">Table or view</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.Table" placeholder="dbo.TagValues" @onchange="@(e => Update(() => _m.Table = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-5"><label for="@FieldId("field-02")" class="form-label">Table or view</label>
|
||||
<input id="@FieldId("field-02")" class="form-control form-control-sm mono" value="@_m.Table" placeholder="dbo.TagValues" @onchange="@(e => Update(() => _m.Table = NullIfBlank(e.Value)))" /></div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="col-md-5"><label class="form-label">Named query</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.QueryName" placeholder="activeBatch" @onchange="@(e => Update(() => _m.QueryName = NullIfBlank(e.Value)))" />
|
||||
<div class="form-text">A key of the driver config's <code>queries</code>.</div></div>
|
||||
<div class="col-md-5"><label for="@FieldId("field-03")" class="form-label">Named query</label>
|
||||
<input aria-describedby="@FieldIds("field-03-hint")" id="@FieldId("field-03")" class="form-control form-control-sm mono" value="@_m.QueryName" placeholder="activeBatch" @onchange="@(e => Update(() => _m.QueryName = NullIfBlank(e.Value)))" />
|
||||
<div id="@FieldId("field-03-hint")" class="form-text">A key of the driver config's <code>queries</code>.</div></div>
|
||||
}
|
||||
<div class="col-md-3"><label class="form-label">Type override</label>
|
||||
<select class="form-select form-select-sm" value="@(_m.Type?.ToString() ?? "")" @onchange="@(e => Update(() => _m.Type = ParseNullableEnum<DriverDataType>(e.Value)))">
|
||||
<div class="col-md-3"><label for="@FieldId("field-04")" class="form-label">Type override</label>
|
||||
<select id="@FieldId("field-04")" class="form-select form-select-sm" value="@(_m.Type?.ToString() ?? "")" @onchange="@(e => Update(() => _m.Type = ParseNullableEnum<DriverDataType>(e.Value)))">
|
||||
<option value="">(infer from column)</option>
|
||||
@foreach (var v in Enum.GetValues<DriverDataType>()) { <option value="@v">@v</option> }
|
||||
</select></div>
|
||||
@@ -39,50 +39,50 @@
|
||||
@if (_m.Model == SqlTagModel.Query)
|
||||
{
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-4"><label class="form-label">Result column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.Column" placeholder="speed" @onchange="@(e => Update(() => _m.Column = NullIfBlank(e.Value)))" />
|
||||
<div class="form-text">The column of the query's result this tag reads.</div></div>
|
||||
<div class="col-md-4"><label class="form-label">Row key column <span class="text-muted small">(optional)</span></label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.RowKey.Column" placeholder="line" @onchange="@(e => Update(() => SetRowKey(NullIfBlank(e.Value), _m.RowKey.Value)))" /></div>
|
||||
<div class="col-md-4"><label class="form-label">Row key value</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.RowKey.Value" placeholder="Line1" @onchange="@(e => Update(() => SetRowKey(_m.RowKey.Column, e.Value?.ToString())))" />
|
||||
<div class="form-text">Both blank ⇒ the query must return exactly one row.</div></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-05")" class="form-label">Result column</label>
|
||||
<input aria-describedby="@FieldIds("field-05-hint")" id="@FieldId("field-05")" class="form-control form-control-sm mono" value="@_m.Column" placeholder="speed" @onchange="@(e => Update(() => _m.Column = NullIfBlank(e.Value)))" />
|
||||
<div id="@FieldId("field-05-hint")" class="form-text">The column of the query's result this tag reads.</div></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-06")" class="form-label">Row key column <span class="text-muted small">(optional)</span></label>
|
||||
<input id="@FieldId("field-06")" class="form-control form-control-sm mono" value="@_m.RowKey.Column" placeholder="line" @onchange="@(e => Update(() => SetRowKey(NullIfBlank(e.Value), _m.RowKey.Value)))" /></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-07")" class="form-label">Row key value</label>
|
||||
<input aria-describedby="@FieldIds("field-07-hint")" id="@FieldId("field-07")" class="form-control form-control-sm mono" value="@_m.RowKey.Value" placeholder="Line1" @onchange="@(e => Update(() => SetRowKey(_m.RowKey.Column, e.Value?.ToString())))" />
|
||||
<div id="@FieldId("field-07-hint")" class="form-text">Both blank ⇒ the query must return exactly one row.</div></div>
|
||||
</div>
|
||||
}
|
||||
else if (_m.Model == SqlTagModel.KeyValue)
|
||||
{
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-4"><label class="form-label">Key column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.KeyColumn" placeholder="tag_name" @onchange="@(e => Update(() => _m.KeyColumn = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-4"><label class="form-label">Key value</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.KeyValue" placeholder="Line1.Speed" @onchange="@(e => Update(() => _m.KeyValue = e.Value?.ToString()))" />
|
||||
<div class="form-text">Bound as a parameter — never interpolated.</div></div>
|
||||
<div class="col-md-4"><label class="form-label">Value column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.ValueColumn" placeholder="num_value" @onchange="@(e => Update(() => _m.ValueColumn = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-08")" class="form-label">Key column</label>
|
||||
<input id="@FieldId("field-08")" class="form-control form-control-sm mono" value="@_m.KeyColumn" placeholder="tag_name" @onchange="@(e => Update(() => _m.KeyColumn = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-09")" class="form-label">Key value</label>
|
||||
<input aria-describedby="@FieldIds("field-09-hint")" id="@FieldId("field-09")" class="form-control form-control-sm mono" value="@_m.KeyValue" placeholder="Line1.Speed" @onchange="@(e => Update(() => _m.KeyValue = e.Value?.ToString()))" />
|
||||
<div id="@FieldId("field-09-hint")" class="form-text">Bound as a parameter — never interpolated.</div></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-10")" class="form-label">Value column</label>
|
||||
<input id="@FieldId("field-10")" class="form-control form-control-sm mono" value="@_m.ValueColumn" placeholder="num_value" @onchange="@(e => Update(() => _m.ValueColumn = NullIfBlank(e.Value)))" /></div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-4"><label class="form-label">Value column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.ColumnName" placeholder="oven_temp" @onchange="@(e => Update(() => _m.ColumnName = NullIfBlank(e.Value)))" />
|
||||
<div class="form-text">The column this tag reads from the selected row.</div></div>
|
||||
<div class="col-md-4"><label class="form-label">Row selector</label>
|
||||
<select class="form-select form-select-sm" value="@_selectorMode" @onchange="@(e => OnSelectorModeChanged(e.Value?.ToString()))">
|
||||
<div class="col-md-4"><label for="@FieldId("field-11")" class="form-label">Value column</label>
|
||||
<input aria-describedby="@FieldIds("field-11-hint")" id="@FieldId("field-11")" class="form-control form-control-sm mono" value="@_m.ColumnName" placeholder="oven_temp" @onchange="@(e => Update(() => _m.ColumnName = NullIfBlank(e.Value)))" />
|
||||
<div id="@FieldId("field-11-hint")" class="form-text">The column this tag reads from the selected row.</div></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-12")" class="form-label">Row selector</label>
|
||||
<select id="@FieldId("field-12")" class="form-select form-select-sm" value="@_selectorMode" @onchange="@(e => OnSelectorModeChanged(e.Value?.ToString()))">
|
||||
<option value="Where">Where column = value</option>
|
||||
<option value="Newest">Newest by timestamp</option>
|
||||
</select></div>
|
||||
@if (_selectorMode == "Where")
|
||||
{
|
||||
<div class="col-md-2"><label class="form-label">Where column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.RowSelector.WhereColumn" placeholder="station_id" @onchange="@(e => Update(() => _m.RowSelector.WhereColumn = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-2"><label class="form-label">Where value</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.RowSelector.WhereValue" placeholder="7" @onchange="@(e => Update(() => _m.RowSelector.WhereValue = e.Value?.ToString()))" /></div>
|
||||
<div class="col-md-2"><label for="@FieldId("field-13")" class="form-label">Where column</label>
|
||||
<input id="@FieldId("field-13")" class="form-control form-control-sm mono" value="@_m.RowSelector.WhereColumn" placeholder="station_id" @onchange="@(e => Update(() => _m.RowSelector.WhereColumn = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-2"><label for="@FieldId("field-14")" class="form-label">Where value</label>
|
||||
<input id="@FieldId("field-14")" class="form-control form-control-sm mono" value="@_m.RowSelector.WhereValue" placeholder="7" @onchange="@(e => Update(() => _m.RowSelector.WhereValue = e.Value?.ToString()))" /></div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="col-md-4"><label class="form-label">Order-by (timestamp) column</label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.RowSelector.TopByTimestamp" placeholder="sample_ts" @onchange="@(e => Update(() => _m.RowSelector.TopByTimestamp = NullIfBlank(e.Value)))" /></div>
|
||||
<div class="col-md-4"><label for="@FieldId("field-15")" class="form-label">Order-by (timestamp) column</label>
|
||||
<input id="@FieldId("field-15")" class="form-control form-control-sm mono" value="@_m.RowSelector.TopByTimestamp" placeholder="sample_ts" @onchange="@(e => Update(() => _m.RowSelector.TopByTimestamp = NullIfBlank(e.Value)))" /></div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -90,12 +90,12 @@ else
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-6">
|
||||
<div class="form-check form-switch mt-2">
|
||||
<input type="checkbox" class="form-check-input" id="sqlTagWritable" checked="@(_m.Writable == true)"
|
||||
<input aria-describedby="@FieldIds("sqlTagWritable-hint")" type="checkbox" class="form-check-input" id="@FieldId("sqlTagWritable")" checked="@(_m.Writable == true)"
|
||||
disabled="@(_m.Model == SqlTagModel.Query)"
|
||||
@onchange="@(e => Update(() => _m.Writable = e.Value is true ? true : null))" />
|
||||
<label class="form-check-label" for="sqlTagWritable">Allow writes to this tag</label>
|
||||
<label class="form-check-label" for="@FieldId("sqlTagWritable")">Allow writes to this tag</label>
|
||||
</div>
|
||||
<div class="form-text mt-0">
|
||||
<div id="@FieldId("sqlTagWritable-hint")" class="form-text mt-0">
|
||||
Also needs the driver's <em>Allow writes</em> and the tag's Writable flag. Writes are a single-row
|
||||
<code>UPDATE</code> of the value column — KeyValue, or WideRow by where-pair only.
|
||||
</div>
|
||||
@@ -103,9 +103,9 @@ else
|
||||
</div>
|
||||
|
||||
<div class="row g-2 mt-1">
|
||||
<div class="col-md-6"><label class="form-label">Timestamp column <span class="text-muted small">(optional)</span></label>
|
||||
<input class="form-control form-control-sm mono" value="@_m.TimestampColumn" placeholder="sample_ts" @onchange="@(e => Update(() => _m.TimestampColumn = NullIfBlank(e.Value)))" />
|
||||
<div class="form-text">Source-timestamp column; blank ⇒ the driver stamps the poll time.</div></div>
|
||||
<div class="col-md-6"><label for="@FieldId("field-17")" class="form-label">Timestamp column <span class="text-muted small">(optional)</span></label>
|
||||
<input aria-describedby="@FieldIds("field-17-hint")" id="@FieldId("field-17")" class="form-control form-control-sm mono" value="@_m.TimestampColumn" placeholder="sample_ts" @onchange="@(e => Update(() => _m.TimestampColumn = NullIfBlank(e.Value)))" />
|
||||
<div id="@FieldId("field-17-hint")" class="form-text">Source-timestamp column; blank ⇒ the driver stamps the poll time.</div></div>
|
||||
<div class="col-12 mt-1">
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" @onclick="@(() => _showPicker = true)">Build address</button>
|
||||
</div>
|
||||
@@ -124,6 +124,10 @@ else
|
||||
}
|
||||
|
||||
@code {
|
||||
private readonly string _fieldScope = "sql-tag-config-editor-" + Guid.NewGuid().ToString("N");
|
||||
private string FieldIds(params string[] names) => string.Join(" ", names.Select(FieldId));
|
||||
private string FieldId(string name) => $"{_fieldScope}-{name}";
|
||||
|
||||
/// <summary>The tag's current TagConfig JSON.</summary>
|
||||
[Parameter] public string? ConfigJson { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user