| | |
| | | } |
| | | } |
| | | |
| | | //RCS叫桶 |
| | | #region 二楼业务 |
| | | /// <summary> |
| | | /// RCS叫桶 |
| | | /// </summary> |
| | | /// <param name="pallmsg"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult GetPalletNo(Pallnetmsg pallmsg) |
| | | { |
| | | var result = new ErpModel { Success = -1, Message = "",}; |
| | | var result = new ErpModel { Success = -1, Message = "", }; |
| | | try |
| | | { |
| | | if (string.IsNullOrWhiteSpace(pallmsg.Location)) |
| | |
| | | return Ok(result); |
| | | } |
| | | _rcsserver.GetPalletNo(pallmsg); |
| | | |
| | | |
| | | |
| | | |
| | | result.Success = 0; |
| | | result.Message = "叫桶成功!"; |
| | | return Ok(result); |
| | |
| | | } |
| | | } |
| | | |
| | | //RCS申请储位 |
| | | /// <summary> |
| | | /// RCS申请储位 |
| | | /// </summary> |
| | | /// <param name="pallmsg"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult ApplyLocatNo(Pallnetmsg pallmsg) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 入库单据下发 |
| | | /// </summary> |
| | | /// <param name="model">入库单信息</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [HttpPost] |
| | | public IActionResult CreateAsnWork(AsnInfo model) |
| | | { |
| | | var result = new ErpModel { Success = -1, Message = "" }; |
| | | try |
| | | { |
| | | /*var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | string UserId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value; |
| | | if (string.IsNullOrWhiteSpace(UserId)) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | }*/ |
| | | |
| | | result = _noticeSvc.CreateAsnWork(model); |
| | | |
| | | return Ok(result); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | result.Message = e.Message; |
| | | return Ok(result); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 任务完成反馈 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult RCSFinishTask(TaskModel model) |
| | | { |
| | | var result = new ErpModel { Success = -1, Message = "" }; |
| | | try |
| | | { |
| | | /*var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | string UserId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value; |
| | | if (string.IsNullOrWhiteSpace(UserId)) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | }*/ |
| | | |
| | | result = _noticeSvc.RCSFinishTask(model.TaskNo, model.Status); |
| | | |
| | | return Ok(result); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | result.Message = e.Message; |
| | | return Ok(result); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 出库单据下发 |
| | | /// </summary> |
| | | /// <param name="model">出库单信息</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [HttpPost] |
| | | public IActionResult CreateSoWork(SoInfo model) |
| | | { |
| | | try |
| | | { |
| | | /*var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | string UserId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value; |
| | | if (string.IsNullOrWhiteSpace(UserId)) |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | }*/ |
| | | |
| | | SoResInfo result = _exNoticeSvc.ErpAddExportNotice(model); |
| | | return Ok(result); |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new ErpModel { Success = -1, Message = e.Message }); |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | //箱码信息 手持组托用 (赋码或追溯下发到wms) |
| | | |
| | | //质检结果下发接口 |