fix gestione cartelle per file processati

This commit is contained in:
zaccaria.majid
2023-07-27 17:07:27 +02:00
parent 645cf9aea3
commit b4e56f960e
43 changed files with 111 additions and 5 deletions
+5 -1
View File
@@ -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" />
+10 -3
View File
@@ -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);
}
+6 -1
View File
@@ -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;
@@ -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
1 IdxFamiglia IdxStato IdxTipo next_IdxStato
2 12 0 1 13
3 12 0 2 2
4 12 0 3 3
5 12 0 4 33
6 12 0 5 5
7 12 0 6 34
8 12 0 7 7
9 12 0 8 8
10 12 0 9 9
11 12 0 10 10
12 12 0 12 11
13 12 0 14 11
14 12 2 1 13
15 12 2 2 2
16 12 2 3 3
17 12 2 4 33
18 12 2 5 5
25 12 2 14 11
26 12 3 1 13
27 12 3 2 2
28 12 3 3 3
29 12 3 4 33
30 12 3 5 5
31 12 3 6 34
39 12 5 2 2
40 12 5 3 3
41 12 5 4 33
42 12 5 5 5
43 12 5 6 34
44 12 5 7 7
45 12 5 8 8
53 12 7 4 33
54 12 7 5 5
55 12 7 6 34
56 12 7 7 7
57 12 7 8 8
58 12 7 9 9
59 12 7 10 10
66 12 8 5 5
67 12 8 6 34
68 12 8 7 7
69 12 8 8 8
70 12 8 9 9
71 12 8 10 10
72 12 8 12 11
79 12 9 6 34
80 12 9 7 7
81 12 9 8 8
82 12 9 9 9
83 12 9 10 10
84 12 9 12 11
85 12 9 14 11
92 12 10 7 7
93 12 10 8 8
94 12 10 9 9
95 12 10 10 10
96 12 10 12 11
97 12 10 14 11
98 12 11 1 13
105 12 11 8 8
106 12 11 9 9
107 12 11 10 10
108 12 11 12 11
109 12 11 14 11
110 12 11 15 12
111 12 11 16 13
112 12 11 17 14
123 12 12 12 11
124 12 12 14 11
125 12 12 16 13
126 12 12 17 12
127 12 13 1 13
128 12 13 2 2
129 12 13 3 3
130 12 13 4 33
137 12 13 12 11
138 12 13 14 11
139 12 13 15 12
140 12 13 17 13
141 12 14 1 13
142 12 14 2 2
143 12 14 3 3
166 12 15 14 11
167 12 15 15 12
168 12 15 16 13
169 12 15 17 15
170 12 24 1 13
171 12 24 2 2
172 12 24 3 3
181 12 24 14 11
182 12 24 15 12
183 12 24 16 13
184 12 24 17 24
185 12 27 1 13
186 12 27 2 2
187 12 27 3 3
188 12 27 4 33
189 12 27 5 5
190 12 27 6 34
191 12 27 7 7
192 12 27 8 8
193 12 27 9 9
194 12 27 10 10
195 12 27 12 11
196 12 27 14 11
197 12 30 1 13
198 12 30 2 2
199 12 30 3 3
200 12 30 4 33
201 12 30 5 5
202 12 30 6 34
203 12 30 7 7
204 12 30 8 8
205 12 30 9 9
206 12 30 10 10
207 12 30 12 11
208 12 30 14 11
209 12 32 1 13
210 12 32 2 2
211 12 32 3 3
212 12 32 4 33
213 12 32 5 5
214 12 32 6 34
215 12 32 7 7
216 12 32 8 8
217 12 32 9 9
218 12 32 10 10
219 12 32 12 11
220 12 32 14 11
221 12 33 1 13
222 12 33 2 2
223 12 33 3 3
224 12 33 4 33
225 12 33 5 5
226 12 33 6 34
227 12 33 7 7
235 12 34 3 3
236 12 34 4 33
237 12 34 5 5
238 12 34 6 34
239 12 34 7 7
240 12 34 8 8
241 12 34 9 9
244 12 34 14 11
245 12 34 15 12
246 12 34 16 13
247 12 35 1 13
248 12 35 2 2
249 12 35 3 3
250 12 35 4 33
251 12 35 5 5
252 12 35 6 34
253 12 35 7 7
254 12 35 8 8
255 12 35 9 9
256 12 35 10 10
257 12 35 12 11
258 12 35 14 11
259 12 50 1 13
260 12 50 2 2
261 12 50 3 3
262 12 50 4 33
263 12 50 5 5
264 12 50 6 34
265 12 50 7 7
266 12 50 8 8
267 12 50 9 9
268 12 50 10 10
269 12 50 12 11
270 12 50 14 11
+2
View File
@@ -11,6 +11,8 @@
},
"ServerConf": {
"ProcCsvRootPath": "Temp\\Rules\\PROCESSED",
"BitCsvPath": "BIT",
"StatiCsvPath": "STATI",
"DisableSMGMigrate": true
},
"AllowedHosts": "*",