Continuo implementazione Repo/Serv spostati

This commit is contained in:
Samuele Locatelli
2026-03-19 14:36:24 +01:00
parent 40193db94f
commit a205f4f77e
7 changed files with 221 additions and 37 deletions
@@ -515,6 +515,7 @@ namespace EgwCoreLib.Lux.Data.Controllers
return answ;
}
#if true
/// <summary>
/// Assegnazione in blocco degli item agli ODL corrispondenti
/// </summary>
@@ -708,35 +709,7 @@ namespace EgwCoreLib.Lux.Data.Controllers
}
return answ;
}
/// <summary>
/// Elenco PODL non assegnati
/// </summary>
/// <returns></returns>
internal async Task<List<ProductionODLModel>?> ProductionOdlUnassignAsync()
{
List<ProductionODLModel>? dbRestults = null;
//using (DataLayerContext dbCtx = new DataLayerContext(_config))
using (DataLayerContext dbCtx = new DataLayerContext())
{
try
{
dbRestults = await dbCtx
.DbSetProdODL
.Where(x => !x.DateAssign.HasValue)
.Include(x => x.Item2OdlNav)
//.ThenInclude(i => i.ProductionItemNav)
//.ThenInclude(o => o.OrderRowNav)
//.ThenInclude(o => o.OrderNav)
.ToListAsync();
}
catch (Exception exc)
{
Log.Error($"Eccezione durante ProductionOdlUnassignAsync{Environment.NewLine}{exc}");
}
}
return dbRestults;
}
#endif
/// <summary>
/// Esegue merge dei dati nella tab profili del DB con le info accessorie...