aggiunto calcolo di se stesso condizionale

This commit is contained in:
zaccaria.majid
2023-07-27 08:39:28 +02:00
parent a0afc0523e
commit a1926bc4f1
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -48,6 +48,10 @@ namespace SMGen.Pages
{
get => conf.GetValue<string>("ServerConf:ProcCsvRootPath");
}
protected bool calcItself
{
get => conf.GetValue<bool>("SetupOptions:DoCalcItself");
}
protected List<RuleClass> Rules { get; set; } = new List<RuleClass>();
protected Dictionary<string, string> States { get; set; } = new Dictionary<string, string>();
@@ -196,7 +200,7 @@ namespace SMGen.Pages
{
sz_line = "";
//eseguo solo se diverso dallo stato corrente
if (nextState != int.Parse(item.Value))
if (nextState != int.Parse(item.Value) || calcItself)
{
if (nextState < 0)
{
+4 -1
View File
@@ -13,5 +13,8 @@
"ProcCsvRootPath": "Temp\\Rules\\PROCESSED",
"DisableSMGMigrate": true
},
"AllowedHosts": "*"
"AllowedHosts": "*",
"SetupOptions": {
"DoCalcItself": false
}
}