| | |
| | | public WebResponseContent ShelfOutboundCarry(Dt_Task outTask) |
| | | { |
| | | //鍒ゆ柇鏄惁涓虹數鑺簱锛岃緟鏂欏簱浜哄伐澶勭悊(绔嬪簱鐩爣鍦板潃杞崲鎴怉GV绔欑偣鍦板潃) |
| | | if (!outTask.Roadway.Contains("CP")) return WebResponseContent.Instance.OK(); |
| | | Dt_RoadwayInfo dt_RoadwayInfo = _basicService.RoadwayInfoService.Repository.QueryFirst(x => x.OutSCStationCode == outTask.TargetAddress); |
| | | if (dt_RoadwayInfo == null) return WebResponseContent.Instance.OK(); |
| | | if (dt_RoadwayInfo == null || dt_RoadwayInfo.AreaId == 11) return WebResponseContent.Instance.OK(); |
| | | Dt_CachePoint startcachePoint = new Dt_CachePoint(); |
| | | Dt_CachePoint cachePoint = GetCachePointByStartPoint(dt_RoadwayInfo.OutStationCode, ref startcachePoint); |
| | | |
| | | if (startcachePoint.EnableStatus == EnableStatusEnum.Disable.ObjToInt()) return WebResponseContent.Instance.OK(); |
| | | //if (dt_RoadwayInfo.AreaId == 11)//杈呮枡涓嶇敤AGV鎼繍 |
| | | //{ |
| | | // startcachePoint.PointStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | // _basicService.CachePointService.Repository.UpdateData(startcachePoint); |
| | | // return WebResponseContent.Instance.OK(); |
| | | //} |
| | | Dt_Task task = new() |
| | | { |
| | | CurrentAddress = startcachePoint.PointCode, |
| | |
| | | Creater = App.User.UserId > 0 ? App.User.UserName : "System", |
| | | }; |
| | | cachePoint.PointStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | startcachePoint.PointStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | //startcachePoint.PointStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | |
| | | _basicService.CachePointService.Repository.UpdateData(cachePoint); |
| | | _basicService.CachePointService.Repository.UpdateData(startcachePoint); |
| | | //_basicService.CachePointService.Repository.UpdateData(startcachePoint); |
| | | Repository.AddData(task); |
| | | SendAGVTask(task, cachePoint); |
| | | return WebResponseContent.Instance.OK(); |
| | |
| | | if (qty > 0) startCachePoint.PointStatus = LocationStatusEnum.InStock.ObjToInt(); |
| | | startCachePoint.Remark = qty.ToString(); |
| | | } |
| | | else if (startCachePoint.AreaId == 1) |
| | | { |
| | | startCachePoint.PointStatus = LocationStatusEnum.PalletLock.ObjToInt(); |
| | | } |
| | | //else if (startCachePoint.AreaId == 1) |
| | | //{ |
| | | // startCachePoint.PointStatus = LocationStatusEnum.PalletLock.ObjToInt(); |
| | | //} |
| | | _basicService.CachePointService.Repository.UpdateData(startCachePoint); |
| | | } |
| | | } |