1
dengjunjie
2025-02-18 b2ad000e07e1c87d3561b5aa94fdc88c779872f0
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_ConveyorLine.cs
@@ -26,15 +26,22 @@
            {
                string ConveyorLineID = AppSettings.Configuration[nameof(ConveyorLineID)];
                if (!ConveyorLineID.Split(",").Contains(lineDTO.stationCode)) throw new Exception($"未找到输送线编号[{lineDTO.stationCode}]的信息");
                switch (lineDTO.stationCode)
                {
                    case "102":
                        content = TransmissionlineRequest(lineDTO);
                        break;
                    case "1001":
                        content = ProductionlineRequest(lineDTO);
                        break;
                }
                content = TransmissionlineRequest(lineDTO);
                //switch (lineDTO.stationCode)
                //{
                //    case "102":
                //        content = TransmissionlineRequest(lineDTO);
                //        break;
                //    case "Z1":
                //    case "Z2":
                //    case "Z3":
                //    case "X1":
                //    case "X2":
                //    case "X3":
                //        content = ProductionlineRequest(lineDTO);
                //        break;
                //    default: throw new Exception("未定义站台:" + lineDTO.stationCode);
                //}
            }
            catch (Exception ex)
            {
@@ -115,18 +122,19 @@
                Dt_StockInfoDetail stockInfoDetail = stockInfo.Details.FirstOrDefault();
                if (lineDTO.Spec != 1 || lineDTO.Weight != 500)//检测条件需更改!!!!!!!!!!
                if (/*lineDTO.Spec != 1 ||*/ lineDTO.Weight > 1500)//检测条件需更改!!!!!!!!!!
                {
                    task.NextAddress = "101";
                    //task.NextAddress = "101";
                    task.TaskState = (int)InTaskStatusEnum.InException;
                    task.Remark = $"托盘[{lineDTO.Barcode}]信息不合格";
                    task.Remark = $"托盘[{lineDTO.Barcode}]超重";
                    //task.Remark = $"托盘[{lineDTO.Barcode}]信息不合格";
                    //stockInfo.StockStatus = StockStatusEmun.入库撤销.ObjToInt();
                }
                else
                {
                    task.NextAddress = "104";
                    task.NextAddress = "1004";
                    task.CurrentAddress = lineDTO.stationCode;
                    task.Remark=string.Empty;
                    task.Remark = string.Empty;
                    task.TaskState = (int)InTaskStatusEnum.Line_InExecuting;
                    stockInfo.StockStatus = StockStatusEmun.入库确认.ObjToInt();
                    stockInfoDetail.Status = StockStatusEmun.入库确认.ObjToInt();