| | |
| | | |
| | | namespace WIDESEA_SquareCabinServices |
| | | { |
| | | public class DeliveryOrderServices : ServiceBase<Dt_DeliveryOrder, IRepository<Dt_DeliveryOrder>>, IDeliveryOrderServices |
| | | public partial class DeliveryOrderServices : ServiceBase<Dt_DeliveryOrder, IRepository<Dt_DeliveryOrder>>, IDeliveryOrderServices |
| | | { |
| | | static string SearchDate = ""; |
| | | private readonly IBasicService _basicService; |
| | |
| | | private readonly IInventoryInfoService _inventoryInfoService; |
| | | private readonly IDeliveryOrderDetailServices _deliveryOrderDetailServices; |
| | | private readonly ISupplyTaskService _supplyTaskService; |
| | | private readonly ICabinOrderServices _cabinOrderServices; |
| | | public IRepository<Dt_DeliveryOrder> Repository => BaseDal; |
| | | public DeliveryOrderServices(IRepository<Dt_DeliveryOrder> BaseDal, IBasicService basicService, IUnitOfWorkManage unitOfWorkManage, IInventory_BatchServices inventory_BatchServices, IInventoryInfoService inventoryInfoService, IDeliveryOrderDetailServices deliveryOrderDetailServices, ISupplyTaskService supplyTaskService) : base(BaseDal) |
| | | public DeliveryOrderServices(IRepository<Dt_DeliveryOrder> BaseDal, IBasicService basicService, IUnitOfWorkManage unitOfWorkManage, IInventory_BatchServices inventory_BatchServices, IInventoryInfoService inventoryInfoService, IDeliveryOrderDetailServices deliveryOrderDetailServices, ISupplyTaskService supplyTaskService, ICabinOrderServices cabinOrderServices) : base(BaseDal) |
| | | { |
| | | _basicService = basicService; |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | |
| | | _supplyTaskService = supplyTaskService; |
| | | _inventory_BatchServices = inventory_BatchServices; |
| | | _inventoryInfoService = inventoryInfoService; |
| | | _cabinOrderServices = cabinOrderServices; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | }; |
| | | entityOrder.Details.Add(detail); |
| | | |
| | | inv.OutboundQuantity += (float)use; |
| | | inv.OutboundQuantity += use; |
| | | BaseDal.Db.Updateable(inv).ExecuteCommand(); |
| | | |
| | | remainingPartial -= use; |
| | |
| | | }; |
| | | entityOrder.Details.Add(detail); |
| | | |
| | | inv.OutboundQuantity += (float)use; |
| | | inv.OutboundQuantity += use; |
| | | BaseDal.Db.Updateable(inv).ExecuteCommand(); |
| | | |
| | | remainingPartial -= use; |
| | |
| | | }; |
| | | entityOrder.Details.Add(detail); |
| | | |
| | | inv.OutboundQuantity += (float)useQty; |
| | | inv.OutboundQuantity += useQty; |
| | | BaseDal.Db.Updateable(inv).ExecuteCommand(); |
| | | |
| | | remainingFullBoxes -= useBoxes; |
| | |
| | | }; |
| | | entityOrder.Details.Add(detail); |
| | | |
| | | inv.OutboundQuantity += (float)useQty; |
| | | inv.OutboundQuantity += useQty; |
| | | BaseDal.Db.Updateable(inv).ExecuteCommand(); |
| | | |
| | | remainingFullBoxes -= useBoxes; |
| | |
| | | MaterielCode = inventoryInfo.MaterielCode, |
| | | MaterielSpec = inventoryInfo.MaterielSpec, |
| | | TaskType = TaskTypeEnum.OutInventory.ObjToInt(), |
| | | TaskStatus = SupplyStatusEnum.CheckFinish.ObjToInt(), |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName, |
| | | LocationCode = LocationCode, |
| | |
| | | MaterielName = inventoryInfo.MaterielName, |
| | | MaterielCode = inventoryInfo.MaterielCode, |
| | | MaterielSpec = inventoryInfo.MaterielSpec, |
| | | TaskStatus = SupplyStatusEnum.OutFinish.ObjToInt(), |
| | | TaskType = TaskTypeEnum.OutPick.ObjToInt(), |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName, |