| | |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/TransferIn/Approve"; // ApiConfig.IsTestServer ? Cache.SysParam["TransferInApproveUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["TransferInApproveUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/TransferIn/Approve |
| | | |
| | | /// <summary> |
| | | /// 创建生产退料单-按行退料接口 |
| | | /// 创建调入单接口 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> CreateTransferIn(CreateTransferInInput input) { |
| | | Logger.Interface.Info($"/**\r\n *进入创建生产退料单-按行退料接口....\r\n */\r\n"); //固定写法 |
| | | Logger.Interface.Info($"/**\r\n *进入创建调入单接口....\r\n */\r\n"); //固定写法 |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | | { |
| | |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"创建生产退料单-按行退料接口提交Json: {JsonConvert.SerializeObject(input.CreateTransferInParam)},返回Json: {response.Message}"); |
| | | Logger.Interface.Info($"创建调入单接口提交Json: {JsonConvert.SerializeObject(input.CreateTransferInParam)},返回Json: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"创建生产退料单-按行退料接口失败:{result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"创建调入单接口失败:{result.Data[0].m_errorMsg}"); |
| | | } |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, "创建生产退料单-按行退料异常"); |
| | | action.CatchExceptionWithLog(ex, "创建调入单异常"); |
| | | } |
| | | Logger.Interface.Info($"/* 创建生产退料单-按行退料接口结束 */\r\n"); //固定写法 |
| | | Logger.Interface.Info($"/* 创建调入单接口结束 */\r\n"); //固定写法 |
| | | return action; |
| | | } |
| | | |
| | |
| | | var action = new ApiAction<List<U9CReturnData2>>(); |
| | | try |
| | | { |
| | | action = await Submit(input); |
| | | if (action.IsSuccessed) |
| | | { |
| | | input.IsLogin = false; |
| | | action = await Approve(input); |
| | | } |
| | | //action = await Submit(input); |
| | | //if (action.IsSuccessed) |
| | | //{ |
| | | // input.IsLogin = false; |
| | | // action = await Approve(input); |
| | | //} |
| | | |
| | | action = await Approve(input); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |