feat: add empty filters to ERP inventory search
This commit is contained in:
1 parent
eda824cea7
commit
66a1f60428
5 files changed
+138
No files matched your search
@@ -51,6 +51,10 @@ namespace HHWMS.Web
|
||||
.CheckContain(Searcher.NextBatch, x=>x.Lot)
|
||||
.CheckContain(Searcher.SuFigureNo, x=>x.SupplierCode)
|
||||
.WhereIf(Searcher.UploadFlag != null,x => x.UploadErpFlag == Searcher.UploadFlag)
|
||||
.WhereIf(Searcher.CompanyIsEmpty == true, x => x.CompanyCode == null || x.CompanyCode == "")
|
||||
.WhereIf(Searcher.CompanyIsEmpty == false, x => x.CompanyCode != null && x.CompanyCode != "")
|
||||
.WhereIf(Searcher.OrderIsEmpty == true, x => x.SourceCode == null || x.SourceCode == "")
|
||||
.WhereIf(Searcher.OrderIsEmpty == false, x => x.SourceCode != null && x.SourceCode != "")
|
||||
.Select(x => new InventoryApi_View
|
||||
{
|
||||
ID = x.ID,
|
||||
|
||||
@@ -29,6 +29,17 @@ namespace HHWMS.Web
|
||||
public int? UploadFlag { get; set; }
|
||||
|
||||
public string NextBatch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司是否为空:不传不筛选,true为空,false非空
|
||||
/// </summary>
|
||||
public bool? CompanyIsEmpty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号(SourceCode)是否为空:不传不筛选,true为空,false非空
|
||||
/// </summary>
|
||||
public bool? OrderIsEmpty { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user