| | |
| | | task = _taskService.QueryStackerCraneInTask(commonStackerCrane.DeviceCode); //è·åå
¥åºä»»å¡ |
| | | if (task != null) |
| | | { |
| | | return task; //妿æä»»å¡åç´æ¥ä¸åç»å åæº |
| | | if(task.Roadway=="SC02") return task; //妿æä»»å¡åç´æ¥ä¸åç»å åæº |
| | | if(task.Depth==1) return task; |
| | | //2æ·±ä½è¿è¡å¤ææ¯å¦è¦ç§»åº |
| | | |
| | | Dt_Task dt_Task = _taskService.RequestWMSTaskMovelibrary(task); |
| | | if (dt_Task != null) return dt_Task; |
| | | } |
| | | else |
| | | { |
| | |
| | | WarehouseId = warehouse.WarehouseId, |
| | | //PalletType = GetPalletType(warehouse, palletCode),//GetPalletType(warehouse, palletCode) |
| | | Creater = "WCS", |
| | | CreateDate = DateTime.Now |
| | | CreateDate = DateTime.Now, |
| | | Depth = locationInfo.Depth, |
| | | }; |
| | | |
| | | _unitOfWorkManage.BeginTran(); |
| | |
| | | Dt_StockInfo dt_Stock = _stockRepository.QueryFirst(x => x.LocationCode == ShallowLocation.LocationCode); |
| | | if (dt_Stock == null) return content.Error($"è´§ä½ç¼å·:{Locatask}çæµ
è´§ä½åºåå¼å¸¸ï¼è¯·æ£æ¥ï¼ï¼ï¼"); |
| | | |
| | | Dt_Task _Task = BaseDal.QueryFirst(x => x.SourceAddress == ShallowLocation.LocationCode || x.TargetAddress == ShallowLocation.LocationCode); |
| | | if (_Task != null) return content.Error($"è´§ä½ç¼å·:{Locatask}çæµ
è´§ä½åºå·²æä»»å¡ï¼ä¸å¯è¿è¡ç§»åº"); |
| | | |
| | | //è¿è¡è·åæ°çåºä½ |
| | | Dt_LocationInfo? Nextlocation = _basicService.LocationInfoService.GetLocation(DeepLocation.RoadwayNo);//è·åå°æ°åºä½ |
| | | if (Nextlocation == null) |