| | |
| | | } |
| | | |
| | | |
| | | ///// <summary> |
| | | ///// 导入出库单-版本1 |
| | | ///// </summary> |
| | | ///// <param name="inputmaterials"></param> |
| | | ///// <returns></returns> |
| | | //[HttpPost] |
| | | //public ActionResult importOutOrder(List<InputMaterialEntity> inputmaterials) |
| | | //{ |
| | | // var responseMessage = new ApiResponse<string>(); |
| | | // try |
| | | // { |
| | | // var msg = ""; |
| | | |
| | | // #region 验证 |
| | | // if (inputmaterials?.Count() == 0) |
| | | // { |
| | | // responseMessage = new ApiResponse<string>() |
| | | // { |
| | | // Code = 500, |
| | | // Success = false, |
| | | // Message = "数据条数为0", |
| | | // Data = null, |
| | | // }; |
| | | // return ApiResponseHelper.ReturnApiResponse(responseMessage, "importOutOrder", ""); |
| | | // } |
| | | // if (inputmaterials.Select(x => x.ListNo).Distinct().Count() != 1) |
| | | // { |
| | | // responseMessage = new ApiResponse<string>() |
| | | // { |
| | | // Code = 500, |
| | | // Success = false, |
| | | // Message = "本次请求单号必须为同一值", |
| | | // Data = null, |
| | | // }; |
| | | // return ApiResponseHelper.ReturnApiResponse(responseMessage, "importOutOrder", ""); |
| | | // } |
| | | // #endregion |
| | | |
| | | // #region 业务处理 |
| | | |
| | | // string typeName = "出库"; |
| | | // handler_importOutOrder(typeName, inputmaterials, out msg); |
| | | |
| | | // #endregion |
| | | |
| | | // if (!string.IsNullOrEmpty(msg)) |
| | | // { |
| | | // responseMessage = new ApiResponse<string>() |
| | | // { |
| | | // Code = 500, |
| | | // Success = false, |
| | | // Message = "生成出库任务异常:" + msg, |
| | | // Data = null, |
| | | // }; |
| | | // } |
| | | // else |
| | | // { |
| | | // responseMessage = new ApiResponse<string>() |
| | | // { |
| | | // Code = 200, |
| | | // Success = true, |
| | | // Message = "成功", |
| | | // Data = null, |
| | | // }; |
| | | // } |
| | | |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // responseMessage = new ApiResponse<string>() |
| | | // { |
| | | // Code = 500, |
| | | // Success = false, |
| | | // Message = "异常:" + ex.Message, |
| | | // Data = null, |
| | | // }; |
| | | // } |
| | | |
| | | // return ApiResponseHelper.ReturnApiResponse(responseMessage, "importOutOrder", ""); |
| | | //} |
| | | |
| | | |
| | | /// <summary> |
| | | /// 导入出库单 |
| | | /// 导入出库单-版本2 |
| | | /// </summary> |
| | | /// <param name="inputmaterials"></param> |
| | | /// <returns></returns> |
| | |
| | | |
| | | return ApiResponseHelper.ReturnApiResponse(responseMessage, "importOutOrder", ""); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 公共导入 入库单或出库单 |