| | |
| | | _stockRepository.UpdateData(stockInfo); |
| | | _unitOfWorkManage.CommitTran(); |
| | | } |
| | | TaskModel esstask = new TaskModel() |
| | | { |
| | | taskType = "putaway", |
| | | taskGroupCode = "", |
| | | groupPriority = 0, |
| | | tasks = new List<TasksType> |
| | | { |
| | | new() |
| | | { |
| | | taskCode=newTask.TaskNum.ToString(), |
| | | taskPriority=0, |
| | | taskDescribe=new TaskDescribeType{ |
| | | containerCode=palletCode, |
| | | containerType= "CT_KUBOT_STANDARD", |
| | | fromLocationCode=stations.GetValueOrDefault(stationCode)??"", |
| | | toStationCode="", |
| | | toLocationCode=locationInfo.LocationCode, |
| | | deadline=0,storageTag="" |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | //TaskModel esstask = new TaskModel() |
| | | //{ |
| | | // taskType = "putaway", |
| | | // taskGroupCode = "", |
| | | // groupPriority = 0, |
| | | // tasks = new List<TasksType> |
| | | // { |
| | | // new() |
| | | // { |
| | | // taskCode=newTask.TaskNum.ToString(), |
| | | // taskPriority=0, |
| | | // taskDescribe=new TaskDescribeType{ |
| | | // containerCode=palletCode, |
| | | // containerType= "CT_KUBOT_STANDARD", |
| | | // fromLocationCode=stations.GetValueOrDefault(stationCode)??"", |
| | | // toStationCode="", |
| | | // toLocationCode=locationInfo.LocationCode, |
| | | // deadline=0,storageTag="" |
| | | // } |
| | | // } |
| | | // } |
| | | //}; |
| | | |
| | | var result = await _eSSApiService.CreateTaskAsync(esstask); |
| | | //var result = await _eSSApiService.CreateTaskAsync(esstask); |
| | | |
| | | _logger.LogInformation("鍒涘缓浠诲姟杩斿洖: " + result); |
| | | if (result) |
| | | //_logger.LogInformation("鍒涘缓浠诲姟杩斿洖: " + result); |
| | | //if (result) |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error("涓嬪彂鏈哄櫒浜轰换鍔″け璐ワ紒"); |
| | | } |
| | | //else |
| | | //{ |
| | | // return WebResponseContent.Instance.Error("涓嬪彂鏈哄櫒浜轰换鍔″け璐ワ紒"); |
| | | //} |
| | | } |
| | | catch (Exception ex) |
| | | { |