| | |
| | | var area = task.agv_Traytype == "SmallTray" ? "11" : "10"; |
| | | //æ¾1åºåºç空æä½ |
| | | var EmptyStation = stationinfoRepository.Find(x => x.area == area && x.quantity > 0 && x.stationCode.Contains("A") && x.location_state == "Stroge"/*LocationStateEnum.Stroge.ToString()*/ && x.enable) |
| | | .OrderBy(x => x.line).OrderByDescending(x => x.column).FirstOrDefault(); |
| | | .OrderBy(x => x.column).OrderBy(x => x.line).FirstOrDefault(); |
| | | |
| | | #region ä¸ä¸ªåºååªè½æä¸ä¸ªç©ºæä»»å¡ |
| | | //bool ok = false; |
| | |
| | | #endregion |
| | | if (EmptyStation == null) |
| | | EmptyStation = stationinfoRepository.Find(x => x.area == area && x.quantity > 0 && x.stationCode.Contains(area == "10" ? "D" : "C") && x.enable).OrderByDescending(x => x.column).FirstOrDefault(); |
| | | if (EmptyStation == null) continue; |
| | | #region åºå
åå¨ä»»å¡å ç¨ |
| | | if (EmptyStation.location_state == LocationStateEnum.Busy.ToString()) |
| | | continue; |