abbozzato (e non attivato) fix elenco fogli SOLO x bunk LETTI

This commit is contained in:
Samuele E. Locatelli
2020-05-23 14:49:25 +02:00
parent 8bc9535e84
commit 6bd7cc47e7
3 changed files with 35 additions and 5 deletions
+26 -4
View File
@@ -152,8 +152,8 @@ namespace AppData
{
// definisco filtro
var filtBuilder = Builders<SheetWorkList>.Filter;
// filtro vuoto x svuotare sempre
var filter = filtBuilder.Empty;
// filtro vuoto x svuotare sempre
var filter = filtBuilder.Empty;
var collRawData = database.GetCollection<SheetWorkList>("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
/// <summary>
/// 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
/// </summary>
/// <param name="codPost"></param>
@@ -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<DS_App.SheetListRow> sheetList = new List<DS_App.SheetListRow>();
+8
View File
@@ -408,6 +408,7 @@
<Content Include="WebUserControls\cmp_painting.ascx" />
<Content Include="WebUserControls\cmp_paint_bins.ascx" />
<Content Include="WebUserControls\cmp_scrapList.ascx" />
<Content Include="WebUserControls\cmp_searchItems.ascx" />
<Content Include="WebUserControls\cmp_slider.ascx" />
<Content Include="WebUserControls\cmp_stackBuilding.ascx" />
<Content Include="WebUserControls\cmp_stackList.ascx" />
@@ -1019,6 +1020,13 @@
<Compile Include="WebUserControls\cmp_scrapList.ascx.designer.cs">
<DependentUpon>cmp_scrapList.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_searchItems.ascx.cs">
<DependentUpon>cmp_searchItems.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_searchItems.ascx.designer.cs">
<DependentUpon>cmp_searchItems.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_slider.ascx.cs">
<DependentUpon>cmp_slider.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+1 -1
View File
@@ -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 <b>{item.ItemExtCode}</b> | {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);
}