From a1e1f285e8d0dc6e01ccbca2a971c6be2502e10b Mon Sep 17 00:00:00 2001 From: Zheng Date: Mon, 13 Nov 2023 23:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=9F=E6=88=90=20StorePro?= =?UTF-8?q?ductL7partsNote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StoreProductL7partsNoteAppService.cs | 49 ++++++++++ ...StoreProductL7partsNoteDetailAppService.cs | 56 ++++++++++++ .../StoreProductReceiptNoteAppService.cs | 48 ++++++++++ ...StoreProductReceiptNoteDetailAppService.cs | 88 ++++++++++++++++++ .../StoreProductReceiptRequestAppService.cs | 51 +++++++++++ ...reProductReceiptRequestDetailAppService.cs | 57 ++++++++++++ ...eProductRecycleMaterialDetailAppService.cs | 64 +++++++++++++ .../StoreProductRecycleNoteAppService.cs | 43 +++++++++ ...StoreProductRecycleNoteDetailAppService.cs | 58 ++++++++++++ .../StoreProductRecycleRequestAppService.cs | 46 ++++++++++ ...reProductRecycleRequestDetailAppService.cs | 55 +++++++++++ .../StorePurchaseOrderAppService.cs | 51 +++++++++++ .../StorePurchaseOrderDetailAppService.cs | 63 +++++++++++++ .../StorePurchaseReceiptNoteAppService.cs | 50 ++++++++++ ...torePurchaseReceiptNoteDetailAppService.cs | 91 +++++++++++++++++++ .../StorePurchaseReceiptRequestAppService.cs | 54 +++++++++++ ...ePurchaseReceiptRequestDetailAppService.cs | 57 ++++++++++++ 17 files changed, 981 insertions(+) create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNote/StoreProductL7partsNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNote/StoreProductReceiptNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNote/StoreProductRecycleNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequestDetail/StoreProductRecycleRequestDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrder/StorePurchaseOrderAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrderDetail/StorePurchaseOrderDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNote/StorePurchaseReceiptNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNoteDetail/StorePurchaseReceiptNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequest/StorePurchaseReceiptRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequestDetail/StorePurchaseReceiptRequestDetailAppService.cs diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNote/StoreProductL7partsNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNote/StoreProductL7partsNoteAppService.cs new file mode 100644 index 000000000..997024d05 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNote/StoreProductL7partsNoteAppService.cs @@ -0,0 +1,49 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNote; + + +public class StoreProductL7partsNoteAppService : CrudAppService, + IStoreProductL7partsNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductL7partsNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductL7partsNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNote.Delete; + + private readonly IStoreProductL7partsNoteRepository _repository; + + public StoreProductL7partsNoteAppService(IStoreProductL7partsNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductL7partsNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.Configuration != null, x => x.Configuration == input.Configuration) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.CreateDate != null, x => x.CreateDate == input.CreateDate) + .WhereIf(input.Fata != null, x => x.Fata == input.Fata) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Position != null, x => x.Position == input.Position) + .WhereIf(input.ProductNo != null, x => x.ProductNo == input.ProductNo) + .WhereIf(input.Program != null, x => x.Program == input.Program) + .WhereIf(input.ReceiptNumber != null, x => x.ReceiptNumber == input.ReceiptNumber) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.State != null, x => x.State == input.State) + .WhereIf(input.Status != null, x => x.Status == input.Status) + .WhereIf(input.StoreProductL7partsNoteDetails != null, x => x.StoreProductL7partsNoteDetails == input.StoreProductL7partsNoteDetails) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + .WhereIf(input.Year != null, x => x.Year == input.Year) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetailAppService.cs new file mode 100644 index 000000000..268e21a91 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductL7partsNoteDetail/StoreProductL7partsNoteDetailAppService.cs @@ -0,0 +1,56 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductL7partsNoteDetail; + + +public class StoreProductL7partsNoteDetailAppService : CrudAppService, + IStoreProductL7partsNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductL7partsNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductL7partsNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductL7partsNoteDetail.Delete; + + private readonly IStoreProductL7partsNoteDetailRepository _repository; + + public StoreProductL7partsNoteDetailAppService(IStoreProductL7partsNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductL7partsNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.CanBuy != null, x => x.CanBuy == input.CanBuy) + .WhereIf(input.CanMake != null, x => x.CanMake == input.CanMake) + .WhereIf(input.Configuration != null, x => x.Configuration == input.Configuration) + .WhereIf(input.CreateDate != null, x => x.CreateDate == input.CreateDate) + .WhereIf(input.Fata != null, x => x.Fata == input.Fata) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.L7part != null, x => x.L7part == input.L7part) + .WhereIf(input.LocationCode != null, x => x.LocationCode == input.LocationCode) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Position != null, x => x.Position == input.Position) + .WhereIf(input.ProdLine != null, x => x.ProdLine == input.ProdLine) + .WhereIf(input.ProductNo != null, x => x.ProductNo == input.ProductNo) + .WhereIf(input.Program != null, x => x.Program == input.Program) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RawLocationCode != null, x => x.RawLocationCode == input.RawLocationCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.RowId != null, x => x.RowId == input.RowId) + .WhereIf(input.State != null, x => x.State == input.State) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNote/StoreProductReceiptNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNote/StoreProductReceiptNoteAppService.cs new file mode 100644 index 000000000..ee6d10a52 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNote/StoreProductReceiptNoteAppService.cs @@ -0,0 +1,48 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNote; + + +public class StoreProductReceiptNoteAppService : CrudAppService, + IStoreProductReceiptNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductReceiptNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductReceiptNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNote.Delete; + + private readonly IStoreProductReceiptNoteRepository _repository; + + public StoreProductReceiptNoteAppService(IStoreProductReceiptNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductReceiptNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.CompleteTime != null, x => x.CompleteTime == input.CompleteTime) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.ProductionPlanNumber != null, x => x.ProductionPlanNumber == input.ProductionPlanNumber) + .WhereIf(input.ProductReceiptRequestNumber != null, x => x.ProductReceiptRequestNumber == input.ProductReceiptRequestNumber) + .WhereIf(!input.ReceiptType.IsNullOrWhiteSpace(), x => x.ReceiptType.Contains(input.ReceiptType)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.Shift != null, x => x.Shift == input.Shift) + .WhereIf(input.SourceNumber != null, x => x.SourceNumber == input.SourceNumber) + .WhereIf(input.StoreProductReceiptNoteDetails != null, x => x.StoreProductReceiptNoteDetails == input.StoreProductReceiptNoteDetails) + .WhereIf(input.Type != null, x => x.Type == input.Type) + .WhereIf(input.WarehouseCode != null, x => x.WarehouseCode == input.WarehouseCode) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + .WhereIf(input.WorkShop != null, x => x.WorkShop == input.WorkShop) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetailAppService.cs new file mode 100644 index 000000000..5dc56525b --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptNoteDetail/StoreProductReceiptNoteDetailAppService.cs @@ -0,0 +1,88 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptNoteDetail; + + +public class StoreProductReceiptNoteDetailAppService : CrudAppService, + IStoreProductReceiptNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductReceiptNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductReceiptNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductReceiptNoteDetail.Delete; + + private readonly IStoreProductReceiptNoteDetailRepository _repository; + + public StoreProductReceiptNoteDetailAppService(IStoreProductReceiptNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductReceiptNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.BomVersion != null, x => x.BomVersion == input.BomVersion) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.HandledArriveDate != null, x => x.HandledArriveDate == input.HandledArriveDate) + .WhereIf(input.HandledContainerCode != null, x => x.HandledContainerCode == input.HandledContainerCode) + .WhereIf(input.HandledExpireDate != null, x => x.HandledExpireDate == input.HandledExpireDate) + .WhereIf(input.HandledLot != null, x => x.HandledLot == input.HandledLot) + .WhereIf(input.HandledPackingCode != null, x => x.HandledPackingCode == input.HandledPackingCode) + .WhereIf(input.HandledProduceDate != null, x => x.HandledProduceDate == input.HandledProduceDate) + .WhereIf(input.HandledQty != null, x => x.HandledQty == input.HandledQty) + .WhereIf(input.HandledSupplierBatch != null, x => x.HandledSupplierBatch == input.HandledSupplierBatch) + .WhereIf(input.HandledToLocationArea != null, x => x.HandledToLocationArea == input.HandledToLocationArea) + .WhereIf(input.HandledToLocationCode != null, x => x.HandledToLocationCode == input.HandledToLocationCode) + .WhereIf(input.HandledToLocationErpCode != null, x => x.HandledToLocationErpCode == input.HandledToLocationErpCode) + .WhereIf(input.HandledToLocationGroup != null, x => x.HandledToLocationGroup == input.HandledToLocationGroup) + .WhereIf(input.HandledToWarehouseCode != null, x => x.HandledToWarehouseCode == input.HandledToWarehouseCode) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProdLine != null, x => x.ProdLine == input.ProdLine) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RawArea != null, x => x.RawArea == input.RawArea) + .WhereIf(input.RawLocationCode != null, x => x.RawLocationCode == input.RawLocationCode) + .WhereIf(input.RecommendArriveDate != null, x => x.RecommendArriveDate == input.RecommendArriveDate) + .WhereIf(input.RecommendContainerCode != null, x => x.RecommendContainerCode == input.RecommendContainerCode) + .WhereIf(input.RecommendExpireDate != null, x => x.RecommendExpireDate == input.RecommendExpireDate) + .WhereIf(input.RecommendLot != null, x => x.RecommendLot == input.RecommendLot) + .WhereIf(input.RecommendPackingCode != null, x => x.RecommendPackingCode == input.RecommendPackingCode) + .WhereIf(input.RecommendProduceDate != null, x => x.RecommendProduceDate == input.RecommendProduceDate) + .WhereIf(input.RecommendQty != null, x => x.RecommendQty == input.RecommendQty) + .WhereIf(input.RecommendSupplierBatch != null, x => x.RecommendSupplierBatch == input.RecommendSupplierBatch) + .WhereIf(input.RecommendToLocationArea != null, x => x.RecommendToLocationArea == input.RecommendToLocationArea) + .WhereIf(input.RecommendToLocationCode != null, x => x.RecommendToLocationCode == input.RecommendToLocationCode) + .WhereIf(input.RecommendToLocationErpCode != null, x => x.RecommendToLocationErpCode == input.RecommendToLocationErpCode) + .WhereIf(input.RecommendToLocationGroup != null, x => x.RecommendToLocationGroup == input.RecommendToLocationGroup) + .WhereIf(input.RecommendToWarehouseCode != null, x => x.RecommendToWarehouseCode == input.RecommendToWarehouseCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.ReturnQty != null, x => x.ReturnQty == input.ReturnQty) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequestAppService.cs new file mode 100644 index 000000000..9f62c9ebc --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequest/StoreProductReceiptRequestAppService.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequest; + + +public class StoreProductReceiptRequestAppService : CrudAppService, + IStoreProductReceiptRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequest.Delete; + + private readonly IStoreProductReceiptRequestRepository _repository; + + public StoreProductReceiptRequestAppService(IStoreProductReceiptRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductReceiptRequestGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.AutoAgree != null, x => x.AutoAgree == input.AutoAgree) + .WhereIf(input.AutoCompleteJob != null, x => x.AutoCompleteJob == input.AutoCompleteJob) + .WhereIf(input.AutoHandle != null, x => x.AutoHandle == input.AutoHandle) + .WhereIf(input.AutoSubmit != null, x => x.AutoSubmit == input.AutoSubmit) + .WhereIf(input.DirectCreateNote != null, x => x.DirectCreateNote == input.DirectCreateNote) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.PlanDate != null, x => x.PlanDate == input.PlanDate) + .WhereIf(input.ProdLine != null, x => x.ProdLine == input.ProdLine) + .WhereIf(input.ProductionPlanNumber != null, x => x.ProductionPlanNumber == input.ProductionPlanNumber) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.RequestStatus.IsNullOrWhiteSpace(), x => x.RequestStatus.Contains(input.RequestStatus)) + .WhereIf(input.Shift != null, x => x.Shift == input.Shift) + .WhereIf(input.StoreProductReceiptRequestDetails != null, x => x.StoreProductReceiptRequestDetails == input.StoreProductReceiptRequestDetails) + .WhereIf(input.Team != null, x => x.Team == input.Team) + .WhereIf(input.Type != null, x => x.Type == input.Type) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + .WhereIf(input.Workshop != null, x => x.Workshop == input.Workshop) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetailAppService.cs new file mode 100644 index 000000000..03edad593 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductReceiptRequestDetail/StoreProductReceiptRequestDetailAppService.cs @@ -0,0 +1,57 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductReceiptRequestDetail; + + +public class StoreProductReceiptRequestDetailAppService : CrudAppService, + IStoreProductReceiptRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductReceiptRequestDetail.Delete; + + private readonly IStoreProductReceiptRequestDetailRepository _repository; + + public StoreProductReceiptRequestDetailAppService(IStoreProductReceiptRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductReceiptRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.BomVersion != null, x => x.BomVersion == input.BomVersion) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RawArea != null, x => x.RawArea == input.RawArea) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.ReturnQty != null, x => x.ReturnQty == input.ReturnQty) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetailAppService.cs new file mode 100644 index 000000000..88aa3255e --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleMaterialDetail/StoreProductRecycleMaterialDetailAppService.cs @@ -0,0 +1,64 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleMaterialDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleMaterialDetail; + + +public class StoreProductRecycleMaterialDetailAppService : CrudAppService, + IStoreProductRecycleMaterialDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductRecycleMaterialDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductRecycleMaterialDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleMaterialDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleMaterialDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductRecycleMaterialDetail.Delete; + + private readonly IStoreProductRecycleMaterialDetailRepository _repository; + + public StoreProductRecycleMaterialDetailAppService(IStoreProductRecycleMaterialDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductRecycleMaterialDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.BomVersion != null, x => x.BomVersion == input.BomVersion) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProductItemCode != null, x => x.ProductItemCode == input.ProductItemCode) + .WhereIf(input.ProductItemDesc1 != null, x => x.ProductItemDesc1 == input.ProductItemDesc1) + .WhereIf(input.ProductItemDesc2 != null, x => x.ProductItemDesc2 == input.ProductItemDesc2) + .WhereIf(input.ProductItemName != null, x => x.ProductItemName == input.ProductItemName) + .WhereIf(input.ProductLot != null, x => x.ProductLot == input.ProductLot) + .WhereIf(input.ProductPackingCode != null, x => x.ProductPackingCode == input.ProductPackingCode) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNote/StoreProductRecycleNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNote/StoreProductRecycleNoteAppService.cs new file mode 100644 index 000000000..9d4b8c78d --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNote/StoreProductRecycleNoteAppService.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNote; + + +public class StoreProductRecycleNoteAppService : CrudAppService, + IStoreProductRecycleNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductRecycleNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductRecycleNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNote.Delete; + + private readonly IStoreProductRecycleNoteRepository _repository; + + public StoreProductRecycleNoteAppService(IStoreProductRecycleNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductRecycleNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.RecycleTime != null, x => x.RecycleTime == input.RecycleTime) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.RequestNumber != null, x => x.RequestNumber == input.RequestNumber) + .WhereIf(input.Shift != null, x => x.Shift == input.Shift) + .WhereIf(input.StoreProductRecycleMaterialDetails != null, x => x.StoreProductRecycleMaterialDetails == input.StoreProductRecycleMaterialDetails) + .WhereIf(input.StoreProductRecycleNoteDetails != null, x => x.StoreProductRecycleNoteDetails == input.StoreProductRecycleNoteDetails) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + .WhereIf(input.Workshop != null, x => x.Workshop == input.Workshop) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetailAppService.cs new file mode 100644 index 000000000..2d1fcc158 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleNoteDetail/StoreProductRecycleNoteDetailAppService.cs @@ -0,0 +1,58 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleNoteDetail; + + +public class StoreProductRecycleNoteDetailAppService : CrudAppService, + IStoreProductRecycleNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductRecycleNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductRecycleNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductRecycleNoteDetail.Delete; + + private readonly IStoreProductRecycleNoteDetailRepository _repository; + + public StoreProductRecycleNoteDetailAppService(IStoreProductRecycleNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductRecycleNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.ReasonCode != null, x => x.ReasonCode == input.ReasonCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequestAppService.cs new file mode 100644 index 000000000..c8e25e89d --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequest/StoreProductRecycleRequestAppService.cs @@ -0,0 +1,46 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequest; + + +public class StoreProductRecycleRequestAppService : CrudAppService, + IStoreProductRecycleRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequest.Delete; + + private readonly IStoreProductRecycleRequestRepository _repository; + + public StoreProductRecycleRequestAppService(IStoreProductRecycleRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductRecycleRequestGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.AutoAgree != null, x => x.AutoAgree == input.AutoAgree) + .WhereIf(input.AutoCompleteJob != null, x => x.AutoCompleteJob == input.AutoCompleteJob) + .WhereIf(input.AutoHandle != null, x => x.AutoHandle == input.AutoHandle) + .WhereIf(input.AutoSubmit != null, x => x.AutoSubmit == input.AutoSubmit) + .WhereIf(input.DirectCreateNote != null, x => x.DirectCreateNote == input.DirectCreateNote) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.RequestStatus.IsNullOrWhiteSpace(), x => x.RequestStatus.Contains(input.RequestStatus)) + .WhereIf(input.Shift != null, x => x.Shift == input.Shift) + .WhereIf(input.StoreProductRecycleRequestDetails != null, x => x.StoreProductRecycleRequestDetails == input.StoreProductRecycleRequestDetails) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + .WhereIf(input.Workshop != null, x => x.Workshop == input.Workshop) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequestDetail/StoreProductRecycleRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequestDetail/StoreProductRecycleRequestDetailAppService.cs new file mode 100644 index 000000000..c8fd1750e --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreProductRecycleRequestDetail/StoreProductRecycleRequestDetailAppService.cs @@ -0,0 +1,55 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreProductRecycleRequestDetail; + + +public class StoreProductRecycleRequestDetailAppService : CrudAppService, + IStoreProductRecycleRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreProductRecycleRequestDetail.Delete; + + private readonly IStoreProductRecycleRequestDetailRepository _repository; + + public StoreProductRecycleRequestDetailAppService(IStoreProductRecycleRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreProductRecycleRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.BomVersion != null, x => x.BomVersion == input.BomVersion) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RawLocationArea != null, x => x.RawLocationArea == input.RawLocationArea) + .WhereIf(input.RawLocationCode != null, x => x.RawLocationCode == input.RawLocationCode) + .WhereIf(input.RawLocationErpCode != null, x => x.RawLocationErpCode == input.RawLocationErpCode) + .WhereIf(input.RawLocationGroup != null, x => x.RawLocationGroup == input.RawLocationGroup) + .WhereIf(input.RawWarehouseCode != null, x => x.RawWarehouseCode == input.RawWarehouseCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrder/StorePurchaseOrderAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrder/StorePurchaseOrderAppService.cs new file mode 100644 index 000000000..1cd861128 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrder/StorePurchaseOrderAppService.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrder.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrder; + + +public class StorePurchaseOrderAppService : CrudAppService, + IStorePurchaseOrderAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseOrder.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseOrder.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseOrder.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseOrder.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseOrder.Delete; + + private readonly IStorePurchaseOrderRepository _repository; + + public StorePurchaseOrderAppService(IStorePurchaseOrderRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseOrderGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.ContactEmail != null, x => x.ContactEmail == input.ContactEmail) + .WhereIf(input.ContactName != null, x => x.ContactName == input.ContactName) + .WhereIf(input.ContactPhone != null, x => x.ContactPhone == input.ContactPhone) + .WhereIf(input.DueDate != null, x => x.DueDate == input.DueDate) + .WhereIf(input.IsConsignment != null, x => x.IsConsignment == input.IsConsignment) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.OrderDate != null, x => x.OrderDate == input.OrderDate) + .WhereIf(!input.OrderStatus.IsNullOrWhiteSpace(), x => x.OrderStatus.Contains(input.OrderStatus)) + .WhereIf(input.PoType != null, x => x.PoType == input.PoType) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.StorePurchaseOrderDetails != null, x => x.StorePurchaseOrderDetails == input.StorePurchaseOrderDetails) + .WhereIf(input.SupplierAddress != null, x => x.SupplierAddress == input.SupplierAddress) + .WhereIf(input.SupplierCode != null, x => x.SupplierCode == input.SupplierCode) + .WhereIf(input.SupplierName != null, x => x.SupplierName == input.SupplierName) + .WhereIf(input.TaxRate != null, x => x.TaxRate == input.TaxRate) + .WhereIf(input.Version != null, x => x.Version == input.Version) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrderDetail/StorePurchaseOrderDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrderDetail/StorePurchaseOrderDetailAppService.cs new file mode 100644 index 000000000..2f8a87b05 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseOrderDetail/StorePurchaseOrderDetailAppService.cs @@ -0,0 +1,63 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrderDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseOrderDetail; + + +public class StorePurchaseOrderDetailAppService : CrudAppService, + IStorePurchaseOrderDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseOrderDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseOrderDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseOrderDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseOrderDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseOrderDetail.Delete; + + private readonly IStorePurchaseOrderDetailRepository _repository; + + public StorePurchaseOrderDetailAppService(IStorePurchaseOrderDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseOrderDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ConvertRate != null, x => x.ConvertRate == input.ConvertRate) + .WhereIf(input.Ctype != null, x => x.Ctype == input.Ctype) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.IsConsignment != null, x => x.IsConsignment == input.IsConsignment) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(!input.LineStatus.IsNullOrWhiteSpace(), x => x.LineStatus.Contains(input.LineStatus)) + .WhereIf(input.LocationErpCode != null, x => x.LocationErpCode == input.LocationErpCode) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.OrderRemark != null, x => x.OrderRemark == input.OrderRemark) + .WhereIf(input.PlanArriveDate != null, x => x.PlanArriveDate == input.PlanArriveDate) + .WhereIf(input.PlanUserCode != null, x => x.PlanUserCode == input.PlanUserCode) + .WhereIf(input.PoLine != null, x => x.PoLine == input.PoLine) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProjectCode != null, x => x.ProjectCode == input.ProjectCode) + .WhereIf(input.PutAwayQty != null, x => x.PutAwayQty == input.PutAwayQty) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.ReceivedQty != null, x => x.ReceivedQty == input.ReceivedQty) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.ReturnedQty != null, x => x.ReturnedQty == input.ReturnedQty) + .WhereIf(input.ShippedQty != null, x => x.ShippedQty == input.ShippedQty) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierPackQty != null, x => x.SupplierPackQty == input.SupplierPackQty) + .WhereIf(input.SupplierPackUom != null, x => x.SupplierPackUom == input.SupplierPackUom) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNote/StorePurchaseReceiptNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNote/StorePurchaseReceiptNoteAppService.cs new file mode 100644 index 000000000..93d57dfe4 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNote/StorePurchaseReceiptNoteAppService.cs @@ -0,0 +1,50 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptNote; + + +public class StorePurchaseReceiptNoteAppService : CrudAppService, + IStorePurchaseReceiptNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNote.Delete; + + private readonly IStorePurchaseReceiptNoteRepository _repository; + + public StorePurchaseReceiptNoteAppService(IStorePurchaseReceiptNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseReceiptNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.AsnNumber != null, x => x.AsnNumber == input.AsnNumber) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.PoNumber != null, x => x.PoNumber == input.PoNumber) + .WhereIf(input.PurchaseReceiptRequestNumber != null, x => x.PurchaseReceiptRequestNumber == input.PurchaseReceiptRequestNumber) + .WhereIf(input.ReceiveTime != null, x => x.ReceiveTime == input.ReceiveTime) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.RpNumber != null, x => x.RpNumber == input.RpNumber) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StorePurchaseReceiptNoteDetails != null, x => x.StorePurchaseReceiptNoteDetails == input.StorePurchaseReceiptNoteDetails) + .WhereIf(input.SupplierAddress != null, x => x.SupplierAddress == input.SupplierAddress) + .WhereIf(!input.SupplierCode.IsNullOrWhiteSpace(), x => x.SupplierCode.Contains(input.SupplierCode)) + .WhereIf(input.SupplierName != null, x => x.SupplierName == input.SupplierName) + .WhereIf(!input.Type.IsNullOrWhiteSpace(), x => x.Type.Contains(input.Type)) + .WhereIf(input.WarehouseCode != null, x => x.WarehouseCode == input.WarehouseCode) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNoteDetail/StorePurchaseReceiptNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNoteDetail/StorePurchaseReceiptNoteDetailAppService.cs new file mode 100644 index 000000000..f8ff7a047 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptNoteDetail/StorePurchaseReceiptNoteDetailAppService.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptNoteDetail; + + +public class StorePurchaseReceiptNoteDetailAppService : CrudAppService, + IStorePurchaseReceiptNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptNoteDetail.Delete; + + private readonly IStorePurchaseReceiptNoteDetailRepository _repository; + + public StorePurchaseReceiptNoteDetailAppService(IStorePurchaseReceiptNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseReceiptNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.FailedReason != null, x => x.FailedReason == input.FailedReason) + .WhereIf(input.HandledArriveDate != null, x => x.HandledArriveDate == input.HandledArriveDate) + .WhereIf(input.HandledContainerCode != null, x => x.HandledContainerCode == input.HandledContainerCode) + .WhereIf(input.HandledExpireDate != null, x => x.HandledExpireDate == input.HandledExpireDate) + .WhereIf(input.HandledLot != null, x => x.HandledLot == input.HandledLot) + .WhereIf(input.HandledPackingCode != null, x => x.HandledPackingCode == input.HandledPackingCode) + .WhereIf(input.HandledProduceDate != null, x => x.HandledProduceDate == input.HandledProduceDate) + .WhereIf(input.HandledQty != null, x => x.HandledQty == input.HandledQty) + .WhereIf(input.HandledSupplierBatch != null, x => x.HandledSupplierBatch == input.HandledSupplierBatch) + .WhereIf(input.HandledToLocationArea != null, x => x.HandledToLocationArea == input.HandledToLocationArea) + .WhereIf(input.HandledToLocationCode != null, x => x.HandledToLocationCode == input.HandledToLocationCode) + .WhereIf(input.HandledToLocationErpCode != null, x => x.HandledToLocationErpCode == input.HandledToLocationErpCode) + .WhereIf(input.HandledToLocationGroup != null, x => x.HandledToLocationGroup == input.HandledToLocationGroup) + .WhereIf(input.HandledToWarehouseCode != null, x => x.HandledToWarehouseCode == input.HandledToWarehouseCode) + .WhereIf(input.InspectPhotoJson != null, x => x.InspectPhotoJson == input.InspectPhotoJson) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.LocationArea != null, x => x.LocationArea == input.LocationArea) + .WhereIf(!input.LocationCode.IsNullOrWhiteSpace(), x => x.LocationCode.Contains(input.LocationCode)) + .WhereIf(!input.LocationErpCode.IsNullOrWhiteSpace(), x => x.LocationErpCode.Contains(input.LocationErpCode)) + .WhereIf(input.LocationGroup != null, x => x.LocationGroup == input.LocationGroup) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.MassDefect != null, x => x.MassDefect == input.MassDefect) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.PoLine != null, x => x.PoLine == input.PoLine) + .WhereIf(input.PoNumber != null, x => x.PoNumber == input.PoNumber) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(!input.PurchaseReceiptInspectStatus.IsNullOrWhiteSpace(), x => x.PurchaseReceiptInspectStatus.Contains(input.PurchaseReceiptInspectStatus)) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RecommendArriveDate != null, x => x.RecommendArriveDate == input.RecommendArriveDate) + .WhereIf(input.RecommendContainerCode != null, x => x.RecommendContainerCode == input.RecommendContainerCode) + .WhereIf(input.RecommendExpireDate != null, x => x.RecommendExpireDate == input.RecommendExpireDate) + .WhereIf(input.RecommendLot != null, x => x.RecommendLot == input.RecommendLot) + .WhereIf(input.RecommendPackingCode != null, x => x.RecommendPackingCode == input.RecommendPackingCode) + .WhereIf(input.RecommendProduceDate != null, x => x.RecommendProduceDate == input.RecommendProduceDate) + .WhereIf(input.RecommendQty != null, x => x.RecommendQty == input.RecommendQty) + .WhereIf(input.RecommendSupplierBatch != null, x => x.RecommendSupplierBatch == input.RecommendSupplierBatch) + .WhereIf(input.RecommendToLocationArea != null, x => x.RecommendToLocationArea == input.RecommendToLocationArea) + .WhereIf(input.RecommendToLocationCode != null, x => x.RecommendToLocationCode == input.RecommendToLocationCode) + .WhereIf(input.RecommendToLocationErpCode != null, x => x.RecommendToLocationErpCode == input.RecommendToLocationErpCode) + .WhereIf(input.RecommendToLocationGroup != null, x => x.RecommendToLocationGroup == input.RecommendToLocationGroup) + .WhereIf(input.RecommendToWarehouseCode != null, x => x.RecommendToWarehouseCode == input.RecommendToWarehouseCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(input.SupplierPackQty != null, x => x.SupplierPackQty == input.SupplierPackQty) + .WhereIf(input.SupplierPackUom != null, x => x.SupplierPackUom == input.SupplierPackUom) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + .WhereIf(!input.WarehouseCode.IsNullOrWhiteSpace(), x => x.WarehouseCode.Contains(input.WarehouseCode)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequest/StorePurchaseReceiptRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequest/StorePurchaseReceiptRequestAppService.cs new file mode 100644 index 000000000..2c7bc1dc8 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequest/StorePurchaseReceiptRequestAppService.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptRequest; + + +public class StorePurchaseReceiptRequestAppService : CrudAppService, + IStorePurchaseReceiptRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequest.Delete; + + private readonly IStorePurchaseReceiptRequestRepository _repository; + + public StorePurchaseReceiptRequestAppService(IStorePurchaseReceiptRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseReceiptRequestGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.AsnNumber != null, x => x.AsnNumber == input.AsnNumber) + .WhereIf(input.AutoAgree != null, x => x.AutoAgree == input.AutoAgree) + .WhereIf(input.AutoCompleteJob != null, x => x.AutoCompleteJob == input.AutoCompleteJob) + .WhereIf(input.AutoHandle != null, x => x.AutoHandle == input.AutoHandle) + .WhereIf(input.AutoSubmit != null, x => x.AutoSubmit == input.AutoSubmit) + .WhereIf(input.DirectCreateNote != null, x => x.DirectCreateNote == input.DirectCreateNote) + .WhereIf(!input.DockCode.IsNullOrWhiteSpace(), x => x.DockCode.Contains(input.DockCode)) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.PlanArriveDate != null, x => x.PlanArriveDate == input.PlanArriveDate) + .WhereIf(input.PoNumber != null, x => x.PoNumber == input.PoNumber) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.RequestStatus.IsNullOrWhiteSpace(), x => x.RequestStatus.Contains(input.RequestStatus)) + .WhereIf(input.RpNumber != null, x => x.RpNumber == input.RpNumber) + .WhereIf(input.StorePurchaseReceiptRequestDetails != null, x => x.StorePurchaseReceiptRequestDetails == input.StorePurchaseReceiptRequestDetails) + .WhereIf(input.SupplierAddress != null, x => x.SupplierAddress == input.SupplierAddress) + .WhereIf(!input.SupplierCode.IsNullOrWhiteSpace(), x => x.SupplierCode.Contains(input.SupplierCode)) + .WhereIf(input.SupplierName != null, x => x.SupplierName == input.SupplierName) + .WhereIf(!input.TimeWindow.IsNullOrWhiteSpace(), x => x.TimeWindow.Contains(input.TimeWindow)) + .WhereIf(input.TruckNumber != null, x => x.TruckNumber == input.TruckNumber) + .WhereIf(input.Worker != null, x => x.Worker == input.Worker) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequestDetail/StorePurchaseReceiptRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequestDetail/StorePurchaseReceiptRequestDetailAppService.cs new file mode 100644 index 000000000..5bc00eb29 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StorePurchaseReceiptRequestDetail/StorePurchaseReceiptRequestDetailAppService.cs @@ -0,0 +1,57 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StorePurchaseReceiptRequestDetail; + + +public class StorePurchaseReceiptRequestDetailAppService : CrudAppService, + IStorePurchaseReceiptRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StorePurchaseReceiptRequestDetail.Delete; + + private readonly IStorePurchaseReceiptRequestDetailRepository _repository; + + public StorePurchaseReceiptRequestDetailAppService(IStorePurchaseReceiptRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StorePurchaseReceiptRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ContainerCode != null, x => x.ContainerCode == input.ContainerCode) + .WhereIf(input.ConvertRate != null, x => x.ConvertRate == input.ConvertRate) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(!input.ItemCode.IsNullOrWhiteSpace(), x => x.ItemCode.Contains(input.ItemCode)) + .WhereIf(input.ItemDesc1 != null, x => x.ItemDesc1 == input.ItemDesc1) + .WhereIf(input.ItemDesc2 != null, x => x.ItemDesc2 == input.ItemDesc2) + .WhereIf(input.ItemName != null, x => x.ItemName == input.ItemName) + .WhereIf(input.Lot != null, x => x.Lot == input.Lot) + .WhereIf(input.Master != null, x => x.Master == input.Master) + .WhereIf(input.MasterId != null, x => x.MasterId == input.MasterId) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.PoLine != null, x => x.PoLine == input.PoLine) + .WhereIf(input.PoNumber != null, x => x.PoNumber == input.PoNumber) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.RecommendErpCode != null, x => x.RecommendErpCode == input.RecommendErpCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .WhereIf(input.SupplierBatch != null, x => x.SupplierBatch == input.SupplierBatch) + .WhereIf(input.SupplierPackQty != null, x => x.SupplierPackQty == input.SupplierPackQty) + .WhereIf(input.SupplierPackUom != null, x => x.SupplierPackUom == input.SupplierPackUom) + .WhereIf(!input.Uom.IsNullOrWhiteSpace(), x => x.Uom.Contains(input.Uom)) + ; + } +}