aggiunto calcolo di se stesso condizionale
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -13,5 +13,8 @@
|
||||
"ProcCsvRootPath": "Temp\\Rules\\PROCESSED",
|
||||
"DisableSMGMigrate": true
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"SetupOptions": {
|
||||
"DoCalcItself": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user