Merge remote-tracking branch 'gitlab.seriate/DataLayer' into feature/NewOpenWindow

This commit is contained in:
Emmanuele Sassi
2023-10-02 09:49:39 +02:00
@@ -427,9 +427,9 @@ namespace EgtBEAMWALL.DataLayer.Controllers
// condizione join sui PROJ
.Join(localDbCtx.ProjList.Where(x =>
(x.IsActive || !OnlyActive)
&& (string.IsNullOrEmpty(Machine) || x.Machine == Machine)
&& (string.IsNullOrEmpty(BtlFileName) || x.BTLFileName == BtlFileName)
&& (string.IsNullOrEmpty(ListName) || x.ListName == ListName)
&& (string.IsNullOrEmpty(Machine) || x.Machine.ToLower().Contains(Machine.ToLower()))
&& (string.IsNullOrEmpty(BtlFileName) || x.BTLFileName.ToLower().Contains( BtlFileName.ToLower()))
&& (string.IsNullOrEmpty(ListName) || x.ListName.ToLower().Contains(ListName.ToLower()))
&& ((DtIsCreation && (x.DtCreated >= DtStart && x.DtCreated <= DtEnd)) || (!DtIsCreation && (x.DtExported >= DtStart && x.DtExported <= DtEnd)))
),
p => p.ProdDbId,
@@ -447,9 +447,9 @@ namespace EgtBEAMWALL.DataLayer.Controllers
.Where(x =>
(x.IsActive || !OnlyActive)
&& x.Prod == null
&& (string.IsNullOrEmpty(Machine) || x.Machine == Machine)
&& (string.IsNullOrEmpty(BtlFileName) || x.BTLFileName == BtlFileName)
&& (string.IsNullOrEmpty(ListName) || x.ListName == ListName)
&& (string.IsNullOrEmpty(Machine) || x.Machine.ToLower().Contains(Machine.ToLower()))
&& (string.IsNullOrEmpty(BtlFileName) || x.BTLFileName.ToLower().Contains(BtlFileName.ToLower()))
&& (string.IsNullOrEmpty(ListName) || x.ListName.ToLower().Contains(ListName.ToLower()))
&& ((DtIsCreation && (x.DtCreated >= DtStart && x.DtCreated <= DtEnd)) || (!DtIsCreation && (x.DtExported >= DtStart && x.DtExported <= DtEnd))))
.OrderByDescending(x => x.ProjId)
.Take(NumRecord)