fix gestione cartelle per file processati
This commit is contained in:
@@ -25,4 +25,8 @@
|
||||
<button @onclick="()=>Read_rule_file_transitions()">Process</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FilesList PagerResetReq="pgResetReq" updateRecordCount="UpdateTotCount" currFilter="@currFilter" FilesStatus="@filesStatus" Files2Download="@files2Download"></FilesList>
|
||||
|
||||
<DataPager @ref="pagerSMIn2Ev" PageSize="@numRecord" currPage="@currPage" numRecordChanged="@ForceReload" numPageChanged="@ForceReloadPage" totalCount="@totalCount" />
|
||||
@@ -56,6 +56,10 @@ namespace SMGen.Pages
|
||||
{
|
||||
get => conf.GetValue<bool>("SetupOptions:DoCalcEmptyState");
|
||||
}
|
||||
protected string statiCsvPath
|
||||
{
|
||||
get => conf.GetValue<string>("ServerConf:StatiCsvPath");
|
||||
}
|
||||
|
||||
protected List<RuleClass> Rules { get; set; } = new List<RuleClass>();
|
||||
protected Dictionary<string, int> StatesAll { get; set; } = new Dictionary<string, int>();
|
||||
@@ -151,10 +155,11 @@ namespace SMGen.Pages
|
||||
|
||||
case "$DO":
|
||||
b_rules_definition = false;
|
||||
var isOk = checkDirExist(procRootDir);
|
||||
var isOk = checkDirExist(Path.Combine(procRootDir, statiCsvPath));
|
||||
if (isOk)
|
||||
{
|
||||
evaluate_transitions($"{procRootDir}\\{item.Key.Split(".")[0]}.csv", item.Key);
|
||||
var fileName = $"{item.Key.Split(".")[0]}.csv";
|
||||
evaluate_transitions($"{Path.Combine(procRootDir, statiCsvPath, fileName)}", item.Key);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -264,7 +269,9 @@ namespace SMGen.Pages
|
||||
|
||||
//await SMGDService.AnagEventinInsert(events2Add);
|
||||
await Task.Delay(1);
|
||||
//filesStatus[origFileName] = await SMGDService.TranInInsert(TranInList2add, int.Parse(n_state_machine_index));
|
||||
filesStatus[origFileName] = true;
|
||||
|
||||
// await SMGDService.TranInInsert(TranInList2add, int.Parse(n_state_machine_index));
|
||||
|
||||
files2Download.Add(origFileName, sz_file2Write);
|
||||
}
|
||||
|
||||
@@ -52,6 +52,10 @@ namespace SMGen.Pages
|
||||
{
|
||||
get => conf.GetValue<string>("ServerConf:ProcCsvRootPath");
|
||||
}
|
||||
protected string bitCsvPath
|
||||
{
|
||||
get => conf.GetValue<string>("ServerConf:BitCsvPath");
|
||||
}
|
||||
|
||||
protected List<RuleClass> Rules { get; set; } = new List<RuleClass>();
|
||||
protected List<string> States { get; set; } = new List<string>();
|
||||
@@ -275,7 +279,8 @@ namespace SMGen.Pages
|
||||
var isOk = checkDirExist(procRootDir);
|
||||
if (isOk)
|
||||
{
|
||||
evaluate_transitions($"{procRootDir}\\{item.Key.Split(".")[0]}.csv", item.Key);
|
||||
var fileName = $"{item.Key.Split(".")[0]}.csv";
|
||||
evaluate_transitions($"{Path.Combine(procRootDir, bitCsvPath, fileName)}", item.Key);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
+88
@@ -1,5 +1,18 @@
|
||||
IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;0;1;13
|
||||
12;0;2;2
|
||||
12;0;3;3
|
||||
12;0;4;33
|
||||
12;0;5;5
|
||||
12;0;6;34
|
||||
12;0;7;7
|
||||
12;0;8;8
|
||||
12;0;9;9
|
||||
12;0;10;10
|
||||
12;0;12;11
|
||||
12;0;14;11
|
||||
12;2;1;13
|
||||
12;2;2;2
|
||||
12;2;3;3
|
||||
12;2;4;33
|
||||
12;2;5;5
|
||||
@@ -12,6 +25,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;2;14;11
|
||||
12;3;1;13
|
||||
12;3;2;2
|
||||
12;3;3;3
|
||||
12;3;4;33
|
||||
12;3;5;5
|
||||
12;3;6;34
|
||||
@@ -25,6 +39,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;5;2;2
|
||||
12;5;3;3
|
||||
12;5;4;33
|
||||
12;5;5;5
|
||||
12;5;6;34
|
||||
12;5;7;7
|
||||
12;5;8;8
|
||||
@@ -38,6 +53,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;7;4;33
|
||||
12;7;5;5
|
||||
12;7;6;34
|
||||
12;7;7;7
|
||||
12;7;8;8
|
||||
12;7;9;9
|
||||
12;7;10;10
|
||||
@@ -50,6 +66,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;8;5;5
|
||||
12;8;6;34
|
||||
12;8;7;7
|
||||
12;8;8;8
|
||||
12;8;9;9
|
||||
12;8;10;10
|
||||
12;8;12;11
|
||||
@@ -62,6 +79,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;9;6;34
|
||||
12;9;7;7
|
||||
12;9;8;8
|
||||
12;9;9;9
|
||||
12;9;10;10
|
||||
12;9;12;11
|
||||
12;9;14;11
|
||||
@@ -74,6 +92,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;10;7;7
|
||||
12;10;8;8
|
||||
12;10;9;9
|
||||
12;10;10;10
|
||||
12;10;12;11
|
||||
12;10;14;11
|
||||
12;11;1;13
|
||||
@@ -86,6 +105,8 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;11;8;8
|
||||
12;11;9;9
|
||||
12;11;10;10
|
||||
12;11;12;11
|
||||
12;11;14;11
|
||||
12;11;15;12
|
||||
12;11;16;13
|
||||
12;11;17;14
|
||||
@@ -102,6 +123,8 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;12;12;11
|
||||
12;12;14;11
|
||||
12;12;16;13
|
||||
12;12;17;12
|
||||
12;13;1;13
|
||||
12;13;2;2
|
||||
12;13;3;3
|
||||
12;13;4;33
|
||||
@@ -114,6 +137,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;13;12;11
|
||||
12;13;14;11
|
||||
12;13;15;12
|
||||
12;13;17;13
|
||||
12;14;1;13
|
||||
12;14;2;2
|
||||
12;14;3;3
|
||||
@@ -142,6 +166,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;15;14;11
|
||||
12;15;15;12
|
||||
12;15;16;13
|
||||
12;15;17;15
|
||||
12;24;1;13
|
||||
12;24;2;2
|
||||
12;24;3;3
|
||||
@@ -156,9 +181,47 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;24;14;11
|
||||
12;24;15;12
|
||||
12;24;16;13
|
||||
12;24;17;24
|
||||
12;27;1;13
|
||||
12;27;2;2
|
||||
12;27;3;3
|
||||
12;27;4;33
|
||||
12;27;5;5
|
||||
12;27;6;34
|
||||
12;27;7;7
|
||||
12;27;8;8
|
||||
12;27;9;9
|
||||
12;27;10;10
|
||||
12;27;12;11
|
||||
12;27;14;11
|
||||
12;30;1;13
|
||||
12;30;2;2
|
||||
12;30;3;3
|
||||
12;30;4;33
|
||||
12;30;5;5
|
||||
12;30;6;34
|
||||
12;30;7;7
|
||||
12;30;8;8
|
||||
12;30;9;9
|
||||
12;30;10;10
|
||||
12;30;12;11
|
||||
12;30;14;11
|
||||
12;32;1;13
|
||||
12;32;2;2
|
||||
12;32;3;3
|
||||
12;32;4;33
|
||||
12;32;5;5
|
||||
12;32;6;34
|
||||
12;32;7;7
|
||||
12;32;8;8
|
||||
12;32;9;9
|
||||
12;32;10;10
|
||||
12;32;12;11
|
||||
12;32;14;11
|
||||
12;33;1;13
|
||||
12;33;2;2
|
||||
12;33;3;3
|
||||
12;33;4;33
|
||||
12;33;5;5
|
||||
12;33;6;34
|
||||
12;33;7;7
|
||||
@@ -172,6 +235,7 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;34;3;3
|
||||
12;34;4;33
|
||||
12;34;5;5
|
||||
12;34;6;34
|
||||
12;34;7;7
|
||||
12;34;8;8
|
||||
12;34;9;9
|
||||
@@ -180,3 +244,27 @@ IdxFamiglia;IdxStato;IdxTipo;next_IdxStato
|
||||
12;34;14;11
|
||||
12;34;15;12
|
||||
12;34;16;13
|
||||
12;35;1;13
|
||||
12;35;2;2
|
||||
12;35;3;3
|
||||
12;35;4;33
|
||||
12;35;5;5
|
||||
12;35;6;34
|
||||
12;35;7;7
|
||||
12;35;8;8
|
||||
12;35;9;9
|
||||
12;35;10;10
|
||||
12;35;12;11
|
||||
12;35;14;11
|
||||
12;50;1;13
|
||||
12;50;2;2
|
||||
12;50;3;3
|
||||
12;50;4;33
|
||||
12;50;5;5
|
||||
12;50;6;34
|
||||
12;50;7;7
|
||||
12;50;8;8
|
||||
12;50;9;9
|
||||
12;50;10;10
|
||||
12;50;12;11
|
||||
12;50;14;11
|
||||
|
@@ -11,6 +11,8 @@
|
||||
},
|
||||
"ServerConf": {
|
||||
"ProcCsvRootPath": "Temp\\Rules\\PROCESSED",
|
||||
"BitCsvPath": "BIT",
|
||||
"StatiCsvPath": "STATI",
|
||||
"DisableSMGMigrate": true
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
|
||||
Reference in New Issue
Block a user