| | |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_IOrderRepository; |
| | | using WIDESEA_IOrderServices; |
| | | using WIDESEA_IStorageBasicRepository; |
| | | using WIDESEA_IStorageTaskRepository; |
| | | using WIDESEA_IStorageTaskServices; |
| | | using WIDESEA_Model.Models; |
| | |
| | | public class Dt_ProductionOutboundOrderDetailService : ServiceBase<Dt_ProductionOutboundOrderDetail, IDt_ProductionOutboundOrderDetailRepository>, IDt_ProductionOutboundOrderDetailService |
| | | { |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | |
| | | private readonly IStockInfoDetailRepository _stockInfoDetailRepository; |
| | | public Dt_ProductionOutboundOrderDetailService(IDt_ProductionOutboundOrderDetailRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage) : base(BaseDal) |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | | IStockInfoDetailRepository stockInfoDetailRepository) : base(BaseDal) |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | |
| | | _stockInfoDetailRepository = stockInfoDetailRepository; |
| | | } |
| | | public override PageGridData<Dt_ProductionOutboundOrderDetail> GetPageData(PageDataOptions options) |
| | | { |
| | |
| | | .WhereIF(!wheres.IsNullOrEmpty(), wheres) |
| | | .OrderBy(orderByModels) |
| | | .ToPageList(options.Page, options.Rows, ref totalCount); |
| | | var x=new PageGridData<Dt_ProductionOutboundOrderDetail>(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_ProductionOutboundOrderDetail>(totalCount, data); |
| | | } |
| | | } |