| | |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_IOrderRepository; |
| | | using WIDESEA_IOrderServices; |
| | | using WIDESEA_IStorageBasicRepository; |
| | | using WIDESEA_IStorageTaskRepository; |
| | | using WIDESEA_IStorageTaskServices; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.Order; |
| | | using WIDESEA_StorageBasicRepository; |
| | | |
| | | namespace WIDESEA_OrderServices |
| | | { |
| | | public class Dt_AllocateOutboundOrderDetailService : ServiceBase<Dt_AllocateOutboundOrderDetail, IDt_AllocateOutboundOrderDetailRepository>, IDt_AllocateOutboundOrderDetailService |
| | | { |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly IStockInfoDetailRepository _stockInfoDetailRepository; |
| | | |
| | | public Dt_AllocateOutboundOrderDetailService(IDt_AllocateOutboundOrderDetailRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage) : base(BaseDal) |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | | IStockInfoDetailRepository stockInfoDetailRepository) : base(BaseDal) |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | |
| | | _stockInfoDetailRepository = stockInfoDetailRepository; |
| | | } |
| | | public override PageGridData<Dt_AllocateOutboundOrderDetail> GetPageData(PageDataOptions options) |
| | | { |
| | |
| | | .WhereIF(!wheres.IsNullOrEmpty(), wheres) |
| | | .OrderBy(orderByModels) |
| | | .ToPageList(options.Page, options.Rows, ref totalCount); |
| | | var x=new PageGridData<Dt_AllocateOutboundOrderDetail>(totalCount, data); |
| | | |
| | | foreach (var item in data) |
| | | { |
| | | var detail = _stockInfoDetailRepository.QueryFirst(x => x.MaterielCode == item.MaterielCode); |
| | | if (detail != null) |
| | | { |
| | | item.Remark = "æåºå"; |
| | | } |
| | | else |
| | | { |
| | | item.Remark = "æ åºå"; |
| | | } |
| | | } |
| | | return new PageGridData<Dt_AllocateOutboundOrderDetail>(totalCount, data); |
| | | } |
| | | } |