17 changed files with 979 additions and 0 deletions
@ -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<StoreScrapRequestDetail, StoreScrapRequestDetailDto, Guid, StoreScrapRequestDetailGetListInput, CreateUpdateStoreScrapRequestDetailDto, CreateUpdateStoreScrapRequestDetailDto>, |
|||
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<IQueryable<StoreScrapRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreSupplierAsn, StoreSupplierAsnDto, Guid, StoreSupplierAsnGetListInput, CreateUpdateStoreSupplierAsnDto, CreateUpdateStoreSupplierAsnDto>, |
|||
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<IQueryable<StoreSupplierAsn>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreSupplierAsnDetail, StoreSupplierAsnDetailDto, Guid, StoreSupplierAsnDetailGetListInput, CreateUpdateStoreSupplierAsnDetailDto, CreateUpdateStoreSupplierAsnDetailDto>, |
|||
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<IQueryable<StoreSupplierAsnDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferNote, StoreTransferNoteDto, Guid, StoreTransferNoteGetListInput, CreateUpdateStoreTransferNoteDto, CreateUpdateStoreTransferNoteDto>, |
|||
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<IQueryable<StoreTransferNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferNoteCopy, StoreTransferNoteCopyDto, Guid, StoreTransferNoteCopyGetListInput, CreateUpdateStoreTransferNoteCopyDto, CreateUpdateStoreTransferNoteCopyDto>, |
|||
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<IQueryable<StoreTransferNoteCopy>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferNoteDetail, StoreTransferNoteDetailDto, Guid, StoreTransferNoteDetailGetListInput, CreateUpdateStoreTransferNoteDetailDto, CreateUpdateStoreTransferNoteDetailDto>, |
|||
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<IQueryable<StoreTransferNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferNoteDetailCopy, StoreTransferNoteDetailCopyDto, Guid, StoreTransferNoteDetailCopyGetListInput, CreateUpdateStoreTransferNoteDetailCopyDto, CreateUpdateStoreTransferNoteDetailCopyDto>, |
|||
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<IQueryable<StoreTransferNoteDetailCopy>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferRequest, StoreTransferRequestDto, Guid, StoreTransferRequestGetListInput, CreateUpdateStoreTransferRequestDto, CreateUpdateStoreTransferRequestDto>, |
|||
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<IQueryable<StoreTransferRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreTransferRequestDetail, StoreTransferRequestDetailDto, Guid, StoreTransferRequestDetailGetListInput, CreateUpdateStoreTransferRequestDetailDto, CreateUpdateStoreTransferRequestDetailDto>, |
|||
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<IQueryable<StoreTransferRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedIssueNote, StoreUnplannedIssueNoteDto, Guid, StoreUnplannedIssueNoteGetListInput, CreateUpdateStoreUnplannedIssueNoteDto, CreateUpdateStoreUnplannedIssueNoteDto>, |
|||
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<IQueryable<StoreUnplannedIssueNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedIssueNoteDetail, StoreUnplannedIssueNoteDetailDto, Guid, StoreUnplannedIssueNoteDetailGetListInput, CreateUpdateStoreUnplannedIssueNoteDetailDto, CreateUpdateStoreUnplannedIssueNoteDetailDto>, |
|||
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<IQueryable<StoreUnplannedIssueNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedIssueRequest, StoreUnplannedIssueRequestDto, Guid, StoreUnplannedIssueRequestGetListInput, CreateUpdateStoreUnplannedIssueRequestDto, CreateUpdateStoreUnplannedIssueRequestDto>, |
|||
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<IQueryable<StoreUnplannedIssueRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedIssueRequestDetail, StoreUnplannedIssueRequestDetailDto, Guid, StoreUnplannedIssueRequestDetailGetListInput, CreateUpdateStoreUnplannedIssueRequestDetailDto, CreateUpdateStoreUnplannedIssueRequestDetailDto>, |
|||
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<IQueryable<StoreUnplannedIssueRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedReceiptNote, StoreUnplannedReceiptNoteDto, Guid, StoreUnplannedReceiptNoteGetListInput, CreateUpdateStoreUnplannedReceiptNoteDto, CreateUpdateStoreUnplannedReceiptNoteDto>, |
|||
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<IQueryable<StoreUnplannedReceiptNote>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedReceiptNoteDetail, StoreUnplannedReceiptNoteDetailDto, Guid, StoreUnplannedReceiptNoteDetailGetListInput, CreateUpdateStoreUnplannedReceiptNoteDetailDto, CreateUpdateStoreUnplannedReceiptNoteDetailDto>, |
|||
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<IQueryable<StoreUnplannedReceiptNoteDetail>> 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)) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedReceiptRequest, StoreUnplannedReceiptRequestDto, Guid, StoreUnplannedReceiptRequestGetListInput, CreateUpdateStoreUnplannedReceiptRequestDto, CreateUpdateStoreUnplannedReceiptRequestDto>, |
|||
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<IQueryable<StoreUnplannedReceiptRequest>> 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) |
|||
; |
|||
} |
|||
} |
@ -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<StoreUnplannedReceiptRequestDetail, StoreUnplannedReceiptRequestDetailDto, Guid, StoreUnplannedReceiptRequestDetailGetListInput, CreateUpdateStoreUnplannedReceiptRequestDetailDto, CreateUpdateStoreUnplannedReceiptRequestDetailDto>, |
|||
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<IQueryable<StoreUnplannedReceiptRequestDetail>> 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)) |
|||
; |
|||
} |
|||
} |
Loading…
Reference in new issue