| | |
| | | WebResponseContent? responseContent = (WebResponseContent?)methodInfo.Invoke(this, new object[] { task }); |
| | | if (responseContent != null) |
| | | { |
| | | if (App.User.UserId > 0) |
| | | { |
| | | var response = HttpHelper.Post<WebResponseContent>(url + "StackCraneTaskCompleted?taskNum=" + task.TaskNum, "", "浠诲姟瀹屾垚"); |
| | | if (!response.Status) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | return WebResponseContent.Instance.Error(response.Message); |
| | | } |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content = responseContent; |
| | | } |
| | | //if (App.User.UserId > 0) |
| | | //{ |
| | | // var response = HttpHelper.Post<WebResponseContent>(url + "StackCraneTaskCompleted?taskNum=" + task.TaskNum, "", "浠诲姟瀹屾垚"); |
| | | // if (!response.Status) |
| | | // { |
| | | // _unitOfWorkManage.RollbackTran(); |
| | | // return WebResponseContent.Instance.Error(response.Message); |
| | | // } |
| | | // _unitOfWorkManage.CommitTran(); |
| | | // return content = responseContent; |
| | | //} |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content = responseContent; |
| | | } |