| | |
| | | { |
| | | 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) |
| | | { |
| | |
| | | |
| | | 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(); |