| | |
| | | using Masuit.Tools; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.Extensions.Logging; |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_IServices; |
| | |
| | | var area = _areaInfoRepository.QueryFirst(x => x.AreaCode == "5"); |
| | | if (area.AreaStatus != 1l) { return Task.CompletedTask; } |
| | | |
| | | var lockInfo = _palletStockInfoRepository.Db.Queryable<Dt_MESLockInfo>() |
| | | var lockInfo = _MESLockInfoRepository.Db.Queryable<Dt_MESLockInfo>() |
| | | //.Where(x => x.LockStatue == 0) |
| | | .Includes(x => x.CarBodyInfo) |
| | | .OrderBy(x => x.sequenceNo) // æåº |
| | |
| | | { |
| | | stationLists = _stationManagerRepository.QueryData(x => x.RoadwayNo == lockCar.TCLine && x.stationType == 2 && x.stationStatus == "1" && x.stationArea == "4"); |
| | | } |
| | | //else if (item.CarBodyInfo.CarType == 3) |
| | | //{ |
| | | // stationLists = _stationManagerRepository.QueryData(x => x.RoadwayNo == item.TCLine && x.stationType == 7 && x.stationStatus == "1" && x.stationArea == "3"); |
| | | //} |
| | | |
| | | var stock = _VVStockInfoRepository.QueryFirst(x => x.carBodyID == lockCar.carBodyID); |
| | | var lockStock = _palletStockInfoRepository.QueryFirst(x => x.carBodyID == lockCar.carBodyID); |
| | |
| | | // å建并添å ä»»å¡å°æ°æ®åº |
| | | hasTask = new Dt_Task |
| | | { |
| | | Grade = 1, |
| | | Grade = 3, |
| | | Roadway = Outstation.Roadway, |
| | | TargetAddress = "RB043", |
| | | Dispatchertime = DateTime.Now, |
| | |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | CarType = stock.CarType, |
| | | RoadwayNo = stock.RoadwayNo, |
| | | }; |
| | | |
| | | // å建任å¡ä¼ è¾ç¨çDTO对象 |