| | |
| | | using WIDESEA_DTO.Stock; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_IOrderRepository; |
| | | using WIDESEA_IOrderServices; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.Order; |
| | | using WIDESEA_OrderRepository; |
| | |
| | | { |
| | | private readonly ILocationStatusChangeRecordRepository _locationStatusChangeRecordRepository; |
| | | private readonly IDt_InboundOrderRepository _inboundOrderRepository; |
| | | private readonly IDt_InboundOrderService _inboundOrderService; |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly IStockInfoDetailRepository _stockInfoDetailRepository; |
| | | private readonly IDt_TaskService _taskService; |
| | |
| | | ILocationInfoRepository locationRepository, |
| | | IDt_TaskRepository taskRepository, |
| | | IDt_OrderOutDetailsRepository outDetailsRepository, |
| | | IDt_Task_HtyRepository task_HtyRepository) : base(BaseDal) |
| | | IDt_Task_HtyRepository task_HtyRepository, |
| | | IDt_InboundOrderService inboundOrderService) : base(BaseDal) |
| | | { |
| | | _locationStatusChangeRecordRepository = locationStatusChangeRecordRepository; |
| | | _inboundOrderRepository = inboundOrderRepository; |
| | |
| | | _taskRepository = taskRepository; |
| | | _outDetailsRepository = outDetailsRepository; |
| | | _task_HtyRepository = task_HtyRepository; |
| | | _inboundOrderService = inboundOrderService; |
| | | } |
| | | #region æ¹æ³éå |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æå°åºååä¸ªç©æäºç»´ç |
| | | public async Task<WebResponseContent> PrintOrder(object[] key) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | List<Dt_InboundOrder> inboundOrders = new List<Dt_InboundOrder>(); |
| | | foreach (var item in key) |
| | | { |
| | | var order = _inboundOrderRepository.QueryFirst(x => x.OrderNo == item.ToString()); |
| | | if (order != null) |
| | | { |
| | | inboundOrders.Add(order); |
| | | } |
| | | } |
| | | return _inboundOrderService.PrintInbound(inboundOrders); ; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error("æªç¥é误ï¼è¯·è系管çå"); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |