| | |
| | | var emptyStationList = edm.V_EmptyStation.ToList(); |
| | | |
| | | //不随机排序 |
| | | emptyStationList = emptyStationList.OrderByDescending(x => x.LaneNo).ThenByDescending(x => x.ColumnNo).ThenBy(x => x.LayerNo).ToList(); |
| | | emptyStationList = emptyStationList.OrderBy(x => x.LaneNo).ThenBy(x => x.LayerNo).ThenBy(x => x.ColumnNo).ToList(); |
| | | |
| | | |
| | | //增加该库位是否被任务占用的筛选 [EditBy shaocx,2022-06-02] |
| | |
| | | var my_emptyStationList = emptyStationList.Where(x => usePlaceTypeList.Contains( x.PlaceType)).OrderBy(x=>x.PlaceType).ToList(); |
| | | if (my_emptyStationList?.Count() > 0) |
| | | { |
| | | wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(emptyStationList.First().Id, edm); |
| | | wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(my_emptyStationList.First().Id, edm); |
| | | return toPlace; |
| | | } |
| | | else |