Update lettura XML + conf DTO

This commit is contained in:
Samuele E. Locatelli
2021-02-03 13:21:00 +01:00
parent 64e8bd0331
commit 7af6a9726a
8 changed files with 233 additions and 22 deletions
@@ -5,18 +5,19 @@ namespace Thermo.Active.Model.ConfigModels
{
public class IOConfigModel
{
public int Id { get; set; } =0;
public TACT_IO_TYPE Category { get; set; }
public int Id { get; set; } =0;
public string Bank { get; set; } = "0";
public string Position { get; set; } = "";
public string Position { get; set; } = "0";
public string Page { get; set; } = "";
public string Wire { get; set; } = "";
public string Profinet { get; set; } = "";
public bool DisableForce { get; set; } = false;
public string Label
{
get
{
string answ = $"LBL_IO_{Id}_{Bank}_{Position}";
string answ = $"LBL_IO_{Category}_{Id}";
return answ;
}
}