| | |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_DTO.Basic; |
| | | using WIDESEA_DTO.ERP; |
| | | using WIDESEA_DTO.Location; |
| | | using WIDESEA_DTO.Stock; |
| | |
| | | |
| | | var allocateOrderdetail = orderDetails.Where(x => true).ToList(); |
| | | |
| | | await ERPAllocateOut(stock); |
| | | //await ERPAllocateOut(stock); |
| | | |
| | | //è°æ¨åºåº |
| | | if (task.TaskType == (int)TaskOutboundTypeEnum.OutAllocate) |
| | |
| | | return content.Error("该æçåºåå·²å¨åºåºç¼ååº"); |
| | | } |
| | | |
| | | Dt_Task taskNew = await RequestOutboundTaskAsync(new RequestTaskDto { PalletCode = stock.PalletCode, AreaId = 2, Position = stock.LocationCode, TaskType = (int)TaskOutboundTypeEnum.OutOther }); |
| | | Dt_Task taskNew = await RequestOutboundTaskAsync(new RequestTaskDto { PalletCode = stock.PalletCode, AreaId = 2, Position = stock.LocationCode, TaskType = (int)TaskOutboundTypeEnum.OutAllocate }); |
| | | |
| | | List<Dt_OrderOutDetails> outDetails = new List<Dt_OrderOutDetails>(); |
| | | details.Where(x => x.OutboundQuantity > 0).ForEach(x => |
| | | { |
| | | var areaName = _areaInfoRepository.QueryFirst(y => y.AreaName == x.Remark); |
| | | var areaName = _areaInfoRepository.QueryFirst(y => y.AreaID == Convert.ToInt32(x.Remark)); |
| | | if (areaName == null) |
| | | { |
| | | throw new Exception($"æªæ¾å°è°æ¨ä»åº{x.Remark}æ°æ®"); |
| | |
| | | ERPOrderId = "", |
| | | MaterielCode = x.MaterielCode, |
| | | MaterielName = x.MaterielName, |
| | | AllocateWarehouse = x.Remark, |
| | | AllocateWarehouse = areaName.AreaName, |
| | | Warehouse = "æºè½ç«åº", |
| | | WareHouseId = "107", |
| | | AllocateWarehouseId = areaName.AreaName, |
| | | AllocateWarehouseId = areaName.AreaCode , |
| | | OutboundQuantity = x.OutboundQuantity, |
| | | }); |
| | | }); |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var task = BaseDal.QueryData(x => true); |
| | | Dictionary<string,object> obj=new Dictionary<string, object>() |
| | | var task = await BaseDal.QueryDataAsync(x => true); |
| | | var taskData = new List<TaskData> |
| | | { |
| | | {"name","已宿"}, |
| | | new TaskData { Status = "已忶", Count = task.Count+50 }, |
| | | new TaskData { Status = "已宿", Count = 735 } |
| | | }; |
| | | |
| | | |
| | | return content.OK(data:obj); |
| | | // æå»ºç¬¦åè¦æ±çæ ¼å¼ |
| | | var result = taskData.Select(item => new |
| | | { |
| | | value = item.Count, |
| | | name = item.Status, |
| | | itemStyle = new { color = item.Status == "已忶" ? "#FF0000" : "#00FF00" } |
| | | }).ToList(); |
| | | |
| | | return content.OK(data: result); |
| | | } |
| | | catch (Exception ex) |
| | | { |