Merge branch 'release/AddFtpIob11'

This commit is contained in:
Samuele Locatelli
2024-11-02 10:41:26 +01:00
+11 -1
View File
@@ -140,6 +140,13 @@ namespace IOB_WIN_NEXT.IobNet
// controllo sulla KEY...
switch (tName)
{
case taskType.setArt:
case taskType.setPzComm:
// L'articolo ed il numPz li salva nei dati di produzione... SE disponibili li indicherà nel file ODL ATTIVA...
saveProdData(new KeyValuePair<string, string>(item.Key, item.Value));
// salvo nei taskVal il valore acquisito...
taskVal = $"Saved {item.Key} = {item.Value} on ProdData";
break;
case taskType.setComm:
/*------------------------------------------------------------------
* La commessa è la cartella DI BASE per poter poi procedere con acquisizione dati...
@@ -185,7 +192,10 @@ namespace IOB_WIN_NEXT.IobNet
}
// ora creo il file interno...
remFile = $"{newDir}/{fNameOdl}";
fileContent = $"NEW ODL activated | {item.Value} | {DateTime.Now}";
// cerco se disponibili info in prodData x art/pezzi
string setArt = getCurrProdData("setArt", "ND");
string setPzComm = getCurrProdData("setPzComm", "?");
fileContent = $"NEW ODL activated | {item.Value} | ART: {setArt} x {setPzComm} pz | {DateTime.Now}";
locFile = Path.Combine(basePath, "temp", fNameOdl);
taskOk = SendOdlActFile(locFile, remFile, fileContent);
if (taskOk)