From a9fd2380acb45dce8b4f6b3f1b94395d1a10058b Mon Sep 17 00:00:00 2001 From: Zheng Date: Mon, 13 Nov 2023 23:04:31 +0800 Subject: [PATCH] 1 --- .../StoreScrapRequestDetailAppService.cs | 50 +++++++++++ .../StoreSupplierAsnAppService.cs | 56 ++++++++++++ .../StoreSupplierAsnDetailAppService.cs | 60 +++++++++++++ .../StoreTransferNoteAppService.cs | 45 ++++++++++ .../StoreTransferNoteCopyAppService.cs | 43 +++++++++ .../StoreTransferNoteDetailAppService.cs | 68 +++++++++++++++ .../StoreTransferNoteDetailCopyAppService.cs | 68 +++++++++++++++ .../StoreTransferRequestAppService.cs | 46 ++++++++++ .../StoreTransferRequestDetailAppService.cs | 67 ++++++++++++++ .../StoreUnplannedIssueNoteAppService.cs | 43 +++++++++ ...StoreUnplannedIssueNoteDetailAppService.cs | 87 +++++++++++++++++++ .../StoreUnplannedIssueRequestAppService.cs | 47 ++++++++++ ...reUnplannedIssueRequestDetailAppService.cs | 61 +++++++++++++ .../StoreUnplannedReceiptNoteAppService.cs | 43 +++++++++ ...oreUnplannedReceiptNoteDetailAppService.cs | 87 +++++++++++++++++++ .../StoreUnplannedReceiptRequestAppService.cs | 47 ++++++++++ ...UnplannedReceiptRequestDetailAppService.cs | 61 +++++++++++++ 17 files changed, 979 insertions(+) create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreScrapRequestDetail/StoreScrapRequestDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsn/StoreSupplierAsnAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsnDetail/StoreSupplierAsnDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNote/StoreTransferNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteCopy/StoreTransferNoteCopyAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetail/StoreTransferNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetailCopy/StoreTransferNoteDetailCopyAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequest/StoreTransferRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequestDetail/StoreTransferRequestDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNote/StoreUnplannedIssueNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNoteDetail/StoreUnplannedIssueNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequest/StoreUnplannedIssueRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequestDetail/StoreUnplannedIssueRequestDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNote/StoreUnplannedReceiptNoteAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNoteDetail/StoreUnplannedReceiptNoteDetailAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequest/StoreUnplannedReceiptRequestAppService.cs create mode 100644 WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequestDetail/StoreUnplannedReceiptRequestDetailAppService.cs diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreScrapRequestDetail/StoreScrapRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreScrapRequestDetail/StoreScrapRequestDetailAppService.cs new file mode 100644 index 000000000..6af64dd20 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreScrapRequestDetail/StoreScrapRequestDetailAppService.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.StoreScrapRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreScrapRequestDetail; + + +public class StoreScrapRequestDetailAppService : CrudAppService, + IStoreScrapRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreScrapRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreScrapRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreScrapRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreScrapRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreScrapRequestDetail.Delete; + + private readonly IStoreScrapRequestDetailRepository _repository; + + public StoreScrapRequestDetailAppService(IStoreScrapRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreScrapRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .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.ReasonCode != null, x => x.ReasonCode == input.ReasonCode) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.StdPackQty != null, x => x.StdPackQty == input.StdPackQty) + .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/StoreSupplierAsn/StoreSupplierAsnAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsn/StoreSupplierAsnAppService.cs new file mode 100644 index 000000000..a7b2eb9b4 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsn/StoreSupplierAsnAppService.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.StoreSupplierAsn.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreSupplierAsn; + + +public class StoreSupplierAsnAppService : CrudAppService, + IStoreSupplierAsnAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreSupplierAsn.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreSupplierAsn.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreSupplierAsn.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreSupplierAsn.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreSupplierAsn.Delete; + + private readonly IStoreSupplierAsnRepository _repository; + + public StoreSupplierAsnAppService(IStoreSupplierAsnRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreSupplierAsnGetListInput 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.CreateType.IsNullOrWhiteSpace(), x => x.CreateType.Contains(input.CreateType)) + .WhereIf(input.Ctype != null, x => x.Ctype == input.Ctype) + .WhereIf(!input.DockCode.IsNullOrWhiteSpace(), x => x.DockCode.Contains(input.DockCode)) + .WhereIf(input.DueDate != null, x => x.DueDate == input.DueDate) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.PlanArriveDate != null, x => x.PlanArriveDate == input.PlanArriveDate) + .WhereIf(input.PlanUserCode != null, x => x.PlanUserCode == input.PlanUserCode) + .WhereIf(input.PoNumber != null, x => x.PoNumber == input.PoNumber) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(!input.RpNumber.IsNullOrWhiteSpace(), x => x.RpNumber.Contains(input.RpNumber)) + .WhereIf(input.ShipDate != null, x => x.ShipDate == input.ShipDate) + .WhereIf(!input.Status.IsNullOrWhiteSpace(), x => x.Status.Contains(input.Status)) + .WhereIf(input.StoreSupplierAsnDetails != null, x => x.StoreSupplierAsnDetails == input.StoreSupplierAsnDetails) + .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 != null, x => x.TimeWindow == 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/StoreSupplierAsnDetail/StoreSupplierAsnDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsnDetail/StoreSupplierAsnDetailAppService.cs new file mode 100644 index 000000000..598959c59 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreSupplierAsnDetail/StoreSupplierAsnDetailAppService.cs @@ -0,0 +1,60 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreSupplierAsnDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreSupplierAsnDetail; + + +public class StoreSupplierAsnDetailAppService : CrudAppService, + IStoreSupplierAsnDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreSupplierAsnDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreSupplierAsnDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreSupplierAsnDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreSupplierAsnDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreSupplierAsnDetail.Delete; + + private readonly IStoreSupplierAsnDetailRepository _repository; + + public StoreSupplierAsnDetailAppService(IStoreSupplierAsnDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreSupplierAsnDetailGetListInput 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.Ctype != null, x => x.Ctype == input.Ctype) + .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.PlanUserCode != null, x => x.PlanUserCode == input.PlanUserCode) + .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.ProjectCode != null, x => x.ProjectCode == input.ProjectCode) + .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)) + ; + } +} diff --git a/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNote/StoreTransferNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNote/StoreTransferNoteAppService.cs new file mode 100644 index 000000000..2fbfc8165 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNote/StoreTransferNoteAppService.cs @@ -0,0 +1,45 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreTransferNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferNote; + + +public class StoreTransferNoteAppService : CrudAppService, + IStoreTransferNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferNote.Delete; + + private readonly IStoreTransferNoteRepository _repository; + + public StoreTransferNoteAppService(IStoreTransferNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.Confirmed != null, x => x.Confirmed == input.Confirmed) + .WhereIf(input.ConfirmTime != null, x => x.ConfirmTime == input.ConfirmTime) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.RequestNumber != null, x => x.RequestNumber == input.RequestNumber) + .WhereIf(input.StoreTransferNoteDetailCopies != null, x => x.StoreTransferNoteDetailCopies == input.StoreTransferNoteDetailCopies) + .WhereIf(input.StoreTransferNoteDetails != null, x => x.StoreTransferNoteDetails == input.StoreTransferNoteDetails) + .WhereIf(input.Type != null, x => x.Type == input.Type) + .WhereIf(input.UseOnTheWayLocation != null, x => x.UseOnTheWayLocation == input.UseOnTheWayLocation) + .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/StoreTransferNoteCopy/StoreTransferNoteCopyAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteCopy/StoreTransferNoteCopyAppService.cs new file mode 100644 index 000000000..8a50edf11 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteCopy/StoreTransferNoteCopyAppService.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.StoreTransferNoteCopy.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferNoteCopy; + + +public class StoreTransferNoteCopyAppService : CrudAppService, + IStoreTransferNoteCopyAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferNoteCopy.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferNoteCopy.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteCopy.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteCopy.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferNoteCopy.Delete; + + private readonly IStoreTransferNoteCopyRepository _repository; + + public StoreTransferNoteCopyAppService(IStoreTransferNoteCopyRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferNoteCopyGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.Confirmed != null, x => x.Confirmed == input.Confirmed) + .WhereIf(input.ConfirmTime != null, x => x.ConfirmTime == input.ConfirmTime) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.RequestNumber != null, x => x.RequestNumber == input.RequestNumber) + .WhereIf(input.Type != null, x => x.Type == input.Type) + .WhereIf(input.UseOnTheWayLocation != null, x => x.UseOnTheWayLocation == input.UseOnTheWayLocation) + .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/StoreTransferNoteDetail/StoreTransferNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetail/StoreTransferNoteDetailAppService.cs new file mode 100644 index 000000000..9c70b6b77 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetail/StoreTransferNoteDetailAppService.cs @@ -0,0 +1,68 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreTransferNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferNoteDetail; + + +public class StoreTransferNoteDetailAppService : CrudAppService, + IStoreTransferNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetail.Delete; + + private readonly IStoreTransferNoteDetailRepository _repository; + + public StoreTransferNoteDetailAppService(IStoreTransferNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.FromContainerCode != null, x => x.FromContainerCode == input.FromContainerCode) + .WhereIf(input.FromLocationArea != null, x => x.FromLocationArea == input.FromLocationArea) + .WhereIf(!input.FromLocationCode.IsNullOrWhiteSpace(), x => x.FromLocationCode.Contains(input.FromLocationCode)) + .WhereIf(!input.FromLocationErpCode.IsNullOrWhiteSpace(), x => x.FromLocationErpCode.Contains(input.FromLocationErpCode)) + .WhereIf(input.FromLocationGroup != null, x => x.FromLocationGroup == input.FromLocationGroup) + .WhereIf(input.FromLot != null, x => x.FromLot == input.FromLot) + .WhereIf(input.FromPackingCode != null, x => x.FromPackingCode == input.FromPackingCode) + .WhereIf(!input.FromStatus.IsNullOrWhiteSpace(), x => x.FromStatus.Contains(input.FromStatus)) + .WhereIf(!input.FromWarehouseCode.IsNullOrWhiteSpace(), x => x.FromWarehouseCode.Contains(input.FromWarehouseCode)) + .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.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.OnTheWayLocationCode != null, x => x.OnTheWayLocationCode == input.OnTheWayLocationCode) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.Reason != null, x => x.Reason == input.Reason) + .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.ToContainerCode != null, x => x.ToContainerCode == input.ToContainerCode) + .WhereIf(input.ToLocationArea != null, x => x.ToLocationArea == input.ToLocationArea) + .WhereIf(!input.ToLocationCode.IsNullOrWhiteSpace(), x => x.ToLocationCode.Contains(input.ToLocationCode)) + .WhereIf(!input.ToLocationErpCode.IsNullOrWhiteSpace(), x => x.ToLocationErpCode.Contains(input.ToLocationErpCode)) + .WhereIf(input.ToLocationGroup != null, x => x.ToLocationGroup == input.ToLocationGroup) + .WhereIf(input.ToLot != null, x => x.ToLot == input.ToLot) + .WhereIf(input.ToPackingCode != null, x => x.ToPackingCode == input.ToPackingCode) + .WhereIf(!input.ToStatus.IsNullOrWhiteSpace(), x => x.ToStatus.Contains(input.ToStatus)) + .WhereIf(!input.ToWarehouseCode.IsNullOrWhiteSpace(), x => x.ToWarehouseCode.Contains(input.ToWarehouseCode)) + .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/StoreTransferNoteDetailCopy/StoreTransferNoteDetailCopyAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetailCopy/StoreTransferNoteDetailCopyAppService.cs new file mode 100644 index 000000000..be2da48fa --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferNoteDetailCopy/StoreTransferNoteDetailCopyAppService.cs @@ -0,0 +1,68 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreTransferNoteDetailCopy.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferNoteDetailCopy; + + +public class StoreTransferNoteDetailCopyAppService : CrudAppService, + IStoreTransferNoteDetailCopyAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetailCopy.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetailCopy.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetailCopy.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetailCopy.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferNoteDetailCopy.Delete; + + private readonly IStoreTransferNoteDetailCopyRepository _repository; + + public StoreTransferNoteDetailCopyAppService(IStoreTransferNoteDetailCopyRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferNoteDetailCopyGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.FromContainerCode != null, x => x.FromContainerCode == input.FromContainerCode) + .WhereIf(input.FromLocationArea != null, x => x.FromLocationArea == input.FromLocationArea) + .WhereIf(!input.FromLocationCode.IsNullOrWhiteSpace(), x => x.FromLocationCode.Contains(input.FromLocationCode)) + .WhereIf(!input.FromLocationErpCode.IsNullOrWhiteSpace(), x => x.FromLocationErpCode.Contains(input.FromLocationErpCode)) + .WhereIf(input.FromLocationGroup != null, x => x.FromLocationGroup == input.FromLocationGroup) + .WhereIf(input.FromLot != null, x => x.FromLot == input.FromLot) + .WhereIf(input.FromPackingCode != null, x => x.FromPackingCode == input.FromPackingCode) + .WhereIf(!input.FromStatus.IsNullOrWhiteSpace(), x => x.FromStatus.Contains(input.FromStatus)) + .WhereIf(!input.FromWarehouseCode.IsNullOrWhiteSpace(), x => x.FromWarehouseCode.Contains(input.FromWarehouseCode)) + .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.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.OnTheWayLocationCode != null, x => x.OnTheWayLocationCode == input.OnTheWayLocationCode) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.Reason != null, x => x.Reason == input.Reason) + .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.ToContainerCode != null, x => x.ToContainerCode == input.ToContainerCode) + .WhereIf(input.ToLocationArea != null, x => x.ToLocationArea == input.ToLocationArea) + .WhereIf(!input.ToLocationCode.IsNullOrWhiteSpace(), x => x.ToLocationCode.Contains(input.ToLocationCode)) + .WhereIf(!input.ToLocationErpCode.IsNullOrWhiteSpace(), x => x.ToLocationErpCode.Contains(input.ToLocationErpCode)) + .WhereIf(input.ToLocationGroup != null, x => x.ToLocationGroup == input.ToLocationGroup) + .WhereIf(input.ToLot != null, x => x.ToLot == input.ToLot) + .WhereIf(input.ToPackingCode != null, x => x.ToPackingCode == input.ToPackingCode) + .WhereIf(!input.ToStatus.IsNullOrWhiteSpace(), x => x.ToStatus.Contains(input.ToStatus)) + .WhereIf(!input.ToWarehouseCode.IsNullOrWhiteSpace(), x => x.ToWarehouseCode.Contains(input.ToWarehouseCode)) + .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/StoreTransferRequest/StoreTransferRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequest/StoreTransferRequestAppService.cs new file mode 100644 index 000000000..39a747374 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequest/StoreTransferRequestAppService.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.StoreTransferRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferRequest; + + +public class StoreTransferRequestAppService : CrudAppService, + IStoreTransferRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferRequest.Delete; + + private readonly IStoreTransferRequestRepository _repository; + + public StoreTransferRequestAppService(IStoreTransferRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferRequestGetListInput 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.StoreTransferRequestDetails != null, x => x.StoreTransferRequestDetails == input.StoreTransferRequestDetails) + .WhereIf(input.Type != null, x => x.Type == input.Type) + .WhereIf(input.UseOnTheWayLocation != null, x => x.UseOnTheWayLocation == input.UseOnTheWayLocation) + .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/StoreTransferRequestDetail/StoreTransferRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequestDetail/StoreTransferRequestDetailAppService.cs new file mode 100644 index 000000000..0e88c17ec --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreTransferRequestDetail/StoreTransferRequestDetailAppService.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreTransferRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreTransferRequestDetail; + + +public class StoreTransferRequestDetailAppService : CrudAppService, + IStoreTransferRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreTransferRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreTransferRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreTransferRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreTransferRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreTransferRequestDetail.Delete; + + private readonly IStoreTransferRequestDetailRepository _repository; + + public StoreTransferRequestDetailAppService(IStoreTransferRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreTransferRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.ExpireDate != null, x => x.ExpireDate == input.ExpireDate) + .WhereIf(input.FromContainerCode != null, x => x.FromContainerCode == input.FromContainerCode) + .WhereIf(input.FromLocationArea != null, x => x.FromLocationArea == input.FromLocationArea) + .WhereIf(!input.FromLocationCode.IsNullOrWhiteSpace(), x => x.FromLocationCode.Contains(input.FromLocationCode)) + .WhereIf(!input.FromLocationErpCode.IsNullOrWhiteSpace(), x => x.FromLocationErpCode.Contains(input.FromLocationErpCode)) + .WhereIf(input.FromLocationGroup != null, x => x.FromLocationGroup == input.FromLocationGroup) + .WhereIf(input.FromLot != null, x => x.FromLot == input.FromLot) + .WhereIf(input.FromPackingCode != null, x => x.FromPackingCode == input.FromPackingCode) + .WhereIf(!input.FromStatus.IsNullOrWhiteSpace(), x => x.FromStatus.Contains(input.FromStatus)) + .WhereIf(!input.FromWarehouseCode.IsNullOrWhiteSpace(), x => x.FromWarehouseCode.Contains(input.FromWarehouseCode)) + .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.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.Reason != null, x => x.Reason == input.Reason) + .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.ToContainerCode != null, x => x.ToContainerCode == input.ToContainerCode) + .WhereIf(input.ToLocationArea != null, x => x.ToLocationArea == input.ToLocationArea) + .WhereIf(!input.ToLocationCode.IsNullOrWhiteSpace(), x => x.ToLocationCode.Contains(input.ToLocationCode)) + .WhereIf(!input.ToLocationErpCode.IsNullOrWhiteSpace(), x => x.ToLocationErpCode.Contains(input.ToLocationErpCode)) + .WhereIf(input.ToLocationGroup != null, x => x.ToLocationGroup == input.ToLocationGroup) + .WhereIf(input.ToLot != null, x => x.ToLot == input.ToLot) + .WhereIf(input.ToPackingCode != null, x => x.ToPackingCode == input.ToPackingCode) + .WhereIf(!input.ToStatus.IsNullOrWhiteSpace(), x => x.ToStatus.Contains(input.ToStatus)) + .WhereIf(!input.ToWarehouseCode.IsNullOrWhiteSpace(), x => x.ToWarehouseCode.Contains(input.ToWarehouseCode)) + .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/StoreUnplannedIssueNote/StoreUnplannedIssueNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNote/StoreUnplannedIssueNoteAppService.cs new file mode 100644 index 000000000..8b22315c8 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNote/StoreUnplannedIssueNoteAppService.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.StoreUnplannedIssueNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueNote; + + +public class StoreUnplannedIssueNoteAppService : CrudAppService, + IStoreUnplannedIssueNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNote.Delete; + + private readonly IStoreUnplannedIssueNoteRepository _repository; + + public StoreUnplannedIssueNoteAppService(IStoreUnplannedIssueNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedIssueNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.BuildDate != null, x => x.BuildDate == input.BuildDate) + .WhereIf(input.DeptCode != null, x => x.DeptCode == input.DeptCode) + .WhereIf(input.DeptName != null, x => x.DeptName == input.DeptName) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.StoreUnplannedIssueNoteDetails != null, x => x.StoreUnplannedIssueNoteDetails == input.StoreUnplannedIssueNoteDetails) + .WhereIf(input.UnplannedIssueRequestNumber != null, x => x.UnplannedIssueRequestNumber == input.UnplannedIssueRequestNumber) + .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/StoreUnplannedIssueNoteDetail/StoreUnplannedIssueNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNoteDetail/StoreUnplannedIssueNoteDetailAppService.cs new file mode 100644 index 000000000..5c9b566da --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueNoteDetail/StoreUnplannedIssueNoteDetailAppService.cs @@ -0,0 +1,87 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueNoteDetail; + + +public class StoreUnplannedIssueNoteDetailAppService : CrudAppService, + IStoreUnplannedIssueNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueNoteDetail.Delete; + + private readonly IStoreUnplannedIssueNoteDetailRepository _repository; + + public StoreUnplannedIssueNoteDetailAppService(IStoreUnplannedIssueNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedIssueNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.CaseCode != null, x => x.CaseCode == input.CaseCode) + .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.HandledFromLocationArea != null, x => x.HandledFromLocationArea == input.HandledFromLocationArea) + .WhereIf(input.HandledFromLocationCode != null, x => x.HandledFromLocationCode == input.HandledFromLocationCode) + .WhereIf(input.HandledFromLocationErpCode != null, x => x.HandledFromLocationErpCode == input.HandledFromLocationErpCode) + .WhereIf(input.HandledFromLocationGroup != null, x => x.HandledFromLocationGroup == input.HandledFromLocationGroup) + .WhereIf(input.HandledFromWarehouseCode != null, x => x.HandledFromWarehouseCode == input.HandledFromWarehouseCode) + .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.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.OnceBusiCode != null, x => x.OnceBusiCode == input.OnceBusiCode) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProjCapacityCode != null, x => x.ProjCapacityCode == input.ProjCapacityCode) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.ReasonCode != null, x => x.ReasonCode == input.ReasonCode) + .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.RecommendFromLocationArea != null, x => x.RecommendFromLocationArea == input.RecommendFromLocationArea) + .WhereIf(input.RecommendFromLocationCode != null, x => x.RecommendFromLocationCode == input.RecommendFromLocationCode) + .WhereIf(input.RecommendFromLocationErpCode != null, x => x.RecommendFromLocationErpCode == input.RecommendFromLocationErpCode) + .WhereIf(input.RecommendFromLocationGroup != null, x => x.RecommendFromLocationGroup == input.RecommendFromLocationGroup) + .WhereIf(input.RecommendFromWarehouseCode != null, x => x.RecommendFromWarehouseCode == input.RecommendFromWarehouseCode) + .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.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/StoreUnplannedIssueRequest/StoreUnplannedIssueRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequest/StoreUnplannedIssueRequestAppService.cs new file mode 100644 index 000000000..469c10384 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequest/StoreUnplannedIssueRequestAppService.cs @@ -0,0 +1,47 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueRequest; + + +public class StoreUnplannedIssueRequestAppService : CrudAppService, + IStoreUnplannedIssueRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequest.Delete; + + private readonly IStoreUnplannedIssueRequestRepository _repository; + + public StoreUnplannedIssueRequestAppService(IStoreUnplannedIssueRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedIssueRequestGetListInput 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.BuildDate != null, x => x.BuildDate == input.BuildDate) + .WhereIf(input.DeptCode != null, x => x.DeptCode == input.DeptCode) + .WhereIf(input.DeptName != null, x => x.DeptName == input.DeptName) + .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.StoreUnplannedIssueRequestDetails != null, x => x.StoreUnplannedIssueRequestDetails == input.StoreUnplannedIssueRequestDetails) + .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/StoreUnplannedIssueRequestDetail/StoreUnplannedIssueRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequestDetail/StoreUnplannedIssueRequestDetailAppService.cs new file mode 100644 index 000000000..28d434733 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedIssueRequestDetail/StoreUnplannedIssueRequestDetailAppService.cs @@ -0,0 +1,61 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedIssueRequestDetail; + + +public class StoreUnplannedIssueRequestDetailAppService : CrudAppService, + IStoreUnplannedIssueRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedIssueRequestDetail.Delete; + + private readonly IStoreUnplannedIssueRequestDetailRepository _repository; + + public StoreUnplannedIssueRequestDetailAppService(IStoreUnplannedIssueRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedIssueRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.CaseCode != null, x => x.CaseCode == input.CaseCode) + .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.OnceBusiCode != null, x => x.OnceBusiCode == input.OnceBusiCode) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProjCapacityCode != null, x => x.ProjCapacityCode == input.ProjCapacityCode) + .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/StoreUnplannedReceiptNote/StoreUnplannedReceiptNoteAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNote/StoreUnplannedReceiptNoteAppService.cs new file mode 100644 index 000000000..434a41219 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNote/StoreUnplannedReceiptNoteAppService.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.StoreUnplannedReceiptNote.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptNote; + + +public class StoreUnplannedReceiptNoteAppService : CrudAppService, + IStoreUnplannedReceiptNoteAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNote.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNote.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNote.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNote.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNote.Delete; + + private readonly IStoreUnplannedReceiptNoteRepository _repository; + + public StoreUnplannedReceiptNoteAppService(IStoreUnplannedReceiptNoteRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedReceiptNoteGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ActiveDate != null, x => x.ActiveDate == input.ActiveDate) + .WhereIf(input.BuildDate != null, x => x.BuildDate == input.BuildDate) + .WhereIf(input.DeptCode != null, x => x.DeptCode == input.DeptCode) + .WhereIf(input.DeptName != null, x => x.DeptName == input.DeptName) + .WhereIf(input.JobNumber != null, x => x.JobNumber == input.JobNumber) + .WhereIf(!input.Number.IsNullOrWhiteSpace(), x => x.Number.Contains(input.Number)) + .WhereIf(input.Remark != null, x => x.Remark == input.Remark) + .WhereIf(input.StoreUnplannedReceiptNoteDetails != null, x => x.StoreUnplannedReceiptNoteDetails == input.StoreUnplannedReceiptNoteDetails) + .WhereIf(input.UnplannedReceiptRequestNumber != null, x => x.UnplannedReceiptRequestNumber == input.UnplannedReceiptRequestNumber) + .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/StoreUnplannedReceiptNoteDetail/StoreUnplannedReceiptNoteDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNoteDetail/StoreUnplannedReceiptNoteDetailAppService.cs new file mode 100644 index 000000000..7abd287c5 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptNoteDetail/StoreUnplannedReceiptNoteDetailAppService.cs @@ -0,0 +1,87 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptNoteDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptNoteDetail; + + +public class StoreUnplannedReceiptNoteDetailAppService : CrudAppService, + IStoreUnplannedReceiptNoteDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNoteDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNoteDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNoteDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNoteDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptNoteDetail.Delete; + + private readonly IStoreUnplannedReceiptNoteDetailRepository _repository; + + public StoreUnplannedReceiptNoteDetailAppService(IStoreUnplannedReceiptNoteDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedReceiptNoteDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.CaseCode != null, x => x.CaseCode == input.CaseCode) + .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.OnceBusiCode != null, x => x.OnceBusiCode == input.OnceBusiCode) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProjCapacityCode != null, x => x.ProjCapacityCode == input.ProjCapacityCode) + .WhereIf(input.Qty != null, x => x.Qty == input.Qty) + .WhereIf(input.ReasonCode != null, x => x.ReasonCode == input.ReasonCode) + .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.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/StoreUnplannedReceiptRequest/StoreUnplannedReceiptRequestAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequest/StoreUnplannedReceiptRequestAppService.cs new file mode 100644 index 000000000..1261feb82 --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequest/StoreUnplannedReceiptRequestAppService.cs @@ -0,0 +1,47 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptRequest.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptRequest; + + +public class StoreUnplannedReceiptRequestAppService : CrudAppService, + IStoreUnplannedReceiptRequestAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequest.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequest.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequest.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequest.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequest.Delete; + + private readonly IStoreUnplannedReceiptRequestRepository _repository; + + public StoreUnplannedReceiptRequestAppService(IStoreUnplannedReceiptRequestRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedReceiptRequestGetListInput 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.BuildDate != null, x => x.BuildDate == input.BuildDate) + .WhereIf(input.DeptCode != null, x => x.DeptCode == input.DeptCode) + .WhereIf(input.DeptName != null, x => x.DeptName == input.DeptName) + .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.StoreUnplannedReceiptRequestDetails != null, x => x.StoreUnplannedReceiptRequestDetails == input.StoreUnplannedReceiptRequestDetails) + .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/StoreUnplannedReceiptRequestDetail/StoreUnplannedReceiptRequestDetailAppService.cs b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequestDetail/StoreUnplannedReceiptRequestDetailAppService.cs new file mode 100644 index 000000000..c4078c49c --- /dev/null +++ b/WinIn.FasterZ.Wms.Be/WinIn.FasterZ.Wms/WinIn.FasterZ.Wms/src/WinIn.FasterZ.Wms.Application/Z_Business/StoreUnplannedReceiptRequestDetail/StoreUnplannedReceiptRequestDetailAppService.cs @@ -0,0 +1,61 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using WinIn.FasterZ.Wms.Permissions; +using WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptRequestDetail.Dtos; +using Volo.Abp.Application.Services; + +namespace WinIn.FasterZ.Wms.Z_Business.StoreUnplannedReceiptRequestDetail; + + +public class StoreUnplannedReceiptRequestDetailAppService : CrudAppService, + IStoreUnplannedReceiptRequestDetailAppService +{ + protected override string GetPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequestDetail.Default; + protected override string GetListPolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequestDetail.Default; + protected override string CreatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequestDetail.Create; + protected override string UpdatePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequestDetail.Update; + protected override string DeletePolicyName { get; set; } = WmsPermissions.StoreUnplannedReceiptRequestDetail.Delete; + + private readonly IStoreUnplannedReceiptRequestDetailRepository _repository; + + public StoreUnplannedReceiptRequestDetailAppService(IStoreUnplannedReceiptRequestDetailRepository repository) : base(repository) + { + _repository = repository; + } + + protected override async Task> CreateFilteredQueryAsync(StoreUnplannedReceiptRequestDetailGetListInput input) + { + // TODO: AbpHelper generated + return (await base.CreateFilteredQueryAsync(input)) + .WhereIf(input.ArriveDate != null, x => x.ArriveDate == input.ArriveDate) + .WhereIf(input.CaseCode != null, x => x.CaseCode == input.CaseCode) + .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.OnceBusiCode != null, x => x.OnceBusiCode == input.OnceBusiCode) + .WhereIf(!input.PackingCode.IsNullOrWhiteSpace(), x => x.PackingCode.Contains(input.PackingCode)) + .WhereIf(input.ProduceDate != null, x => x.ProduceDate == input.ProduceDate) + .WhereIf(input.ProjCapacityCode != null, x => x.ProjCapacityCode == input.ProjCapacityCode) + .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)) + ; + } +}