User input hub comunication
Added signalR comunication -> client Adedd new library and nhandler softkey management
This commit is contained in:
@@ -78,6 +78,7 @@ namespace Step.Config
|
||||
// Get SoftKeys
|
||||
xmlConfigFile = GetXmlHandlerWithValidator(SOFT_KEY_CONFIG_SCHEMA_PATH, SOFT_KEY_CONFIG_PATH);
|
||||
int id = 1;
|
||||
|
||||
SoftKeysConfig = xmlConfigFile
|
||||
.Root
|
||||
.Elements()
|
||||
@@ -92,13 +93,14 @@ namespace Step.Config
|
||||
y => y.Attribute("langKey").Value, y => y.Value
|
||||
),
|
||||
|
||||
SubKeys = x.Element("plcKeys")?.Elements().Select(y => new SubKeysModel()
|
||||
SubKeys = x.Element("plcKeys")?.Elements().Select(y => new SubKeysModel() // Populate subkeys if exist
|
||||
{
|
||||
Id = id++,
|
||||
PlcId = Convert.ToInt32(y.Attribute("plcId").Value),
|
||||
Text = y.Value
|
||||
}).ToList(),
|
||||
Type = GetSoftKeyType(x.Name.ToString())
|
||||
Type = GetSoftKeyType(x.Name.ToString()),
|
||||
OperatorConfirmationNeeded = Convert.ToBoolean(x.Element("operatorConfirmationNeeded").Value)
|
||||
})
|
||||
.ToList();
|
||||
}
|
||||
@@ -128,7 +130,7 @@ namespace Step.Config
|
||||
switch (type)
|
||||
{
|
||||
case "procedure": return SOFTKEY_TYPE.PROCEDURE;
|
||||
case "group": return SOFTKEY_TYPE.MULTIPLE;
|
||||
case "group": return SOFTKEY_TYPE.GROUP;
|
||||
default: return SOFTKEY_TYPE.SOFTKEY;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user