| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | if (input.RequestType == "999") |
| | | { |
| | | int CZInfotli = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3").Count(); |
| | | if (CZInfotli == 0) |
| | | { |
| | | return content.Error($"没æèªå¨åè½´ä»»å¡ï¼æ èªå¨ä»»å¡"); |
| | | } |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(input.Position)) { return content.Error($"agvä»»å¡ä¸åç³è¯·ç®æ å°å为空ï¼ï¼ï¼è¯·æ£æ¥"); } |
| | | |
| | | //æ¥æ¾å½åå¨è½¦è½´çº¿æ«ç«¯éè¦agvæ¬è¿ç车轴 |
| | | |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" || x.CurrentStatue == "4" || x.CurrentStatue == "5" || x.CurrentStatue == "13"); |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" /*|| x.CurrentStatue == "4" || x.CurrentStatue == "5"*/ || x.CurrentStatue == "13"); |
| | | |
| | | if (CZInfotlist.Count >= 2) { return content.Error($"å·²æagv任塿£å¨è¿è¡ä¸ï¼ä¸å失败ï¼ï¼ï¼"); } |
| | | |
| | |
| | | //agvåæ°è°å |
| | | genAgvSchedulingTask schedulingTask = new genAgvSchedulingTask |
| | | { |
| | | reqCode = Guid.NewGuid().ToString().Replace("-", ""), |
| | | reqCode = $"{DateTime.Now:yyyyMMddHHmmss}", |
| | | clientCode = "WMS", |
| | | taskTyp = "BY", |
| | | ctnrTyp = "1", |
| | |
| | | catch (Exception ex) |
| | | { |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Error(true, ex.Message); |
| | | return content.Error($"请æ±å¼å¸¸ï¼{ex.Message}"); |
| | | return content.Error($"ä¸å任塿¥å£å¼å¸¸ï¼{ex.Message}"); |
| | | } |
| | | } |
| | | } |