17 changed files with 981 additions and 0 deletions
@ -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<StoreProductL7partsNote, StoreProductL7partsNoteDto, Guid, StoreProductL7partsNoteGetListInput, CreateUpdateStoreProductL7partsNoteDto, CreateUpdateStoreProductL7partsNoteDto>, |
|||
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<IQueryable<StoreProductL7partsNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductL7partsNoteDetail, StoreProductL7partsNoteDetailDto, Guid, StoreProductL7partsNoteDetailGetListInput, CreateUpdateStoreProductL7partsNoteDetailDto, CreateUpdateStoreProductL7partsNoteDetailDto>, |
|||
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<IQueryable<StoreProductL7partsNoteDetail>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductReceiptNote, StoreProductReceiptNoteDto, Guid, StoreProductReceiptNoteGetListInput, CreateUpdateStoreProductReceiptNoteDto, CreateUpdateStoreProductReceiptNoteDto>, |
|||
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<IQueryable<StoreProductReceiptNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductReceiptNoteDetail, StoreProductReceiptNoteDetailDto, Guid, StoreProductReceiptNoteDetailGetListInput, CreateUpdateStoreProductReceiptNoteDetailDto, CreateUpdateStoreProductReceiptNoteDetailDto>, |
|||
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<IQueryable<StoreProductReceiptNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductReceiptRequest, StoreProductReceiptRequestDto, Guid, StoreProductReceiptRequestGetListInput, CreateUpdateStoreProductReceiptRequestDto, CreateUpdateStoreProductReceiptRequestDto>, |
|||
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<IQueryable<StoreProductReceiptRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductReceiptRequestDetail, StoreProductReceiptRequestDetailDto, Guid, StoreProductReceiptRequestDetailGetListInput, CreateUpdateStoreProductReceiptRequestDetailDto, CreateUpdateStoreProductReceiptRequestDetailDto>, |
|||
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<IQueryable<StoreProductReceiptRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductRecycleMaterialDetail, StoreProductRecycleMaterialDetailDto, Guid, StoreProductRecycleMaterialDetailGetListInput, CreateUpdateStoreProductRecycleMaterialDetailDto, CreateUpdateStoreProductRecycleMaterialDetailDto>, |
|||
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<IQueryable<StoreProductRecycleMaterialDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductRecycleNote, StoreProductRecycleNoteDto, Guid, StoreProductRecycleNoteGetListInput, CreateUpdateStoreProductRecycleNoteDto, CreateUpdateStoreProductRecycleNoteDto>, |
|||
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<IQueryable<StoreProductRecycleNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductRecycleNoteDetail, StoreProductRecycleNoteDetailDto, Guid, StoreProductRecycleNoteDetailGetListInput, CreateUpdateStoreProductRecycleNoteDetailDto, CreateUpdateStoreProductRecycleNoteDetailDto>, |
|||
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<IQueryable<StoreProductRecycleNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductRecycleRequest, StoreProductRecycleRequestDto, Guid, StoreProductRecycleRequestGetListInput, CreateUpdateStoreProductRecycleRequestDto, CreateUpdateStoreProductRecycleRequestDto>, |
|||
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<IQueryable<StoreProductRecycleRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreProductRecycleRequestDetail, StoreProductRecycleRequestDetailDto, Guid, StoreProductRecycleRequestDetailGetListInput, CreateUpdateStoreProductRecycleRequestDetailDto, CreateUpdateStoreProductRecycleRequestDetailDto>, |
|||
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<IQueryable<StoreProductRecycleRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseOrder, StorePurchaseOrderDto, Guid, StorePurchaseOrderGetListInput, CreateUpdateStorePurchaseOrderDto, CreateUpdateStorePurchaseOrderDto>, |
|||
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<IQueryable<StorePurchaseOrder>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseOrderDetail, StorePurchaseOrderDetailDto, Guid, StorePurchaseOrderDetailGetListInput, CreateUpdateStorePurchaseOrderDetailDto, CreateUpdateStorePurchaseOrderDetailDto>, |
|||
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<IQueryable<StorePurchaseOrderDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseReceiptNote, StorePurchaseReceiptNoteDto, Guid, StorePurchaseReceiptNoteGetListInput, CreateUpdateStorePurchaseReceiptNoteDto, CreateUpdateStorePurchaseReceiptNoteDto>, |
|||
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<IQueryable<StorePurchaseReceiptNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseReceiptNoteDetail, StorePurchaseReceiptNoteDetailDto, Guid, StorePurchaseReceiptNoteDetailGetListInput, CreateUpdateStorePurchaseReceiptNoteDetailDto, CreateUpdateStorePurchaseReceiptNoteDetailDto>, |
|||
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<IQueryable<StorePurchaseReceiptNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseReceiptRequest, StorePurchaseReceiptRequestDto, Guid, StorePurchaseReceiptRequestGetListInput, CreateUpdateStorePurchaseReceiptRequestDto, CreateUpdateStorePurchaseReceiptRequestDto>, |
|||
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<IQueryable<StorePurchaseReceiptRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StorePurchaseReceiptRequestDetail, StorePurchaseReceiptRequestDetailDto, Guid, StorePurchaseReceiptRequestDetailGetListInput, CreateUpdateStorePurchaseReceiptRequestDetailDto, CreateUpdateStorePurchaseReceiptRequestDetailDto>, |
|||
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<IQueryable<StorePurchaseReceiptRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
Loading…
Reference in new issue