Continuo implementazione Repo/Serv spostati
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user