| | |
| | | return content.Error($"æ æ¤è½¦è½®{sn}SNå·,è¯·æ ¸æ¥åºåè®°å½!"); |
| | | } |
| | | var station = stationinfoRepository.Find(x => x.stationCode == inventory.stationCode).FirstOrDefault(); |
| | | if (!station.enable) return content.Error($"åºä½{station.stationCode}æªå¯ç¨ï¼è¯·æ ¸å®ï¼"); |
| | | if (agvtaskRepository.Find(x => x.agv_fromaddress == station.stationCode).Any()) |
| | | //if (!station.enable) return content.Error($"åºä½{station.stationCode}æªå¯ç¨ï¼è¯·æ ¸å®ï¼"); |
| | | if (agvtaskRepository.Find(x => x.agv_fromaddress == station.stationCode || x.agv_toaddress == station.stationCode).Any()) |
| | | return content.Error($"åºä½{station.stationCode}åå¨AGVä»»å¡ï¼è¯·æ ¸å®ï¼"); |
| | | List<detail> list = new List<detail>(); //è½¦è½®ä¿¡æ¯ |
| | | foreach (var item in station.bindSN.Split(",")) |