From 6bd7cc47e7865159dcdca4dece458cf282b258e4 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sat, 23 May 2020 14:49:25 +0200 Subject: [PATCH] abbozzato (e non attivato) fix elenco fogli SOLO x bunk LETTI --- AppData/ComLib.cs | 30 ++++++++++++++++++++++++++---- NKC_WF/NKC_WF.csproj | 8 ++++++++ NKC_WF/site/OrderManager.aspx.cs | 2 +- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/AppData/ComLib.cs b/AppData/ComLib.cs index 6dd90fa..88e7f5b 100644 --- a/AppData/ComLib.cs +++ b/AppData/ComLib.cs @@ -152,8 +152,8 @@ namespace AppData { // definisco filtro var filtBuilder = Builders.Filter; - // filtro vuoto x svuotare sempre - var filter = filtBuilder.Empty; + // filtro vuoto x svuotare sempre + var filter = filtBuilder.Empty; var collRawData = database.GetCollection("ProdArchive"); // elimino old (TUTTI!!!) collRawData.DeleteMany(filter); @@ -162,7 +162,7 @@ namespace AppData // fatto! answ = true; } - catch(Exception exc) + catch (Exception exc) { } return answ; } @@ -1243,7 +1243,7 @@ namespace AppData /// /// Elenco di sheet in lavorazione su una data macchina: /// - da macchina recupera il BATCH - /// - dal batch prende i BUNK attivi sulla macchina (posizione 3) + /// - dal batch prende i BUNK CARICATI sulla macchina (posizione 5) /// - filtra i fogli giĆ  lavorati /// /// @@ -1260,6 +1260,28 @@ namespace AppData { // come batch DOVREI averne solo 1 in corso... DS_App.BatchListRow batchRow = currBatch[0]; + + // FIXME TODO !!!! copiare qui la sezione sottostante... da attivare a FINE test... +#if false + DS_App.StackListDataTable bunkTable = DataLayer.man.taSTL.getCurrByBatch(batchRow.BatchID); + // SOLO SE ho caricato 1 bunk procedo... + if (bunkTable != null && bunkTable.Count > 0) + { + int currStackId = 0; + try + { + currStackId = bunkTable[0].StackID; + } + catch + { } + if (currStackId > 0) + { + // proseguo verifiche controllando che lo sheet sia dello stack indicato.. + + // FIXME TODO !!!! copiare qui la sezione sottostante + } + } +#endif // recupero i vari SHEETS del batch... DS_App.SheetListDataTable sheetTable = DataLayer.man.taSHL.getByBatch(batchRow.BatchID); List sheetList = new List(); diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 770e436..030ac94 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -408,6 +408,7 @@ + @@ -1019,6 +1020,13 @@ cmp_scrapList.ascx + + cmp_searchItems.ascx + ASPXCodeBehind + + + cmp_searchItems.ascx + cmp_slider.ascx ASPXCodeBehind diff --git a/NKC_WF/site/OrderManager.aspx.cs b/NKC_WF/site/OrderManager.aspx.cs index 7a70729..3a3a8af 100644 --- a/NKC_WF/site/OrderManager.aspx.cs +++ b/NKC_WF/site/OrderManager.aspx.cs @@ -198,7 +198,7 @@ namespace NKC_WF fileOk = System.IO.File.Exists(localPath); if (!fileOk) { - DataLayer.man.taEL.insertQuery(DateTime.Now, "I.1", $"B.{batchID}", $"{item.ItemExtCode}.dxf", $"DXF File not found {localPath} | part {item.ItemExtCode} | {item.ItemDesc}"); + DataLayer.man.taEL.insertQuery(DateTime.Now, "I.1", $"B.{batchID}", $"{item.ItemExtCode}.dxf", $"DXF File not found {localPath} | part {item.ItemExtCode} | {item.ItemDesc}"); allOk = false; missingDxfList.Add(item.ItemExtCode); }