| | |
| | | try |
| | | { |
| | | _unitOfWorkManage.BeginTran(); |
| | | if (task.Count > 0) |
| | | { |
| | | |
| | | for (int i = 0; i < task.Count; i++) |
| | | { |
| | | Dt_LocationInfo location = _basicService.LocationInfoService.Repository.QueryFirst(x => x.LocationCode == task[i].SourceAddress && x.RoadwayNo == task[i].Roadway); |
| | |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.OK("浠诲姟寮傚父"); |
| | | return content = WebResponseContent.Instance.Error("浠诲姟寮傚父"); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.Error("娌℃湁搴撳瓨鐢熸垚浠诲姟"); |
| | | } |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content; |
| | |
| | | if (result.Item1 != null && result.Item2 != null) |
| | | { |
| | | _basicService.LocationInfoService.RelocationLock(Result.Item1, result.Item2, result.Item1.TaskNum); |
| | | locationInfo.LocationStatus = LocationStatusEnum.Lock.ObjToInt(); |
| | | locationInfo.LocationStatus = LocationStatusEnum.PalletLock.ObjToInt(); |
| | | _basicService.LocationInfoService.UpdateData(locationInfo); |
| | | _recordService.LocationStatusChangeRecordSetvice.AddLocationStatusChangeRecord(locationInfo, beforeStatus, StockChangeType.Relocation.ObjToInt(), "", task.TaskNum); |
| | | return content = WebResponseContent.Instance.OK(); |