| | |
| | | using Model.ModelVm.PdaVm; |
| | | using System; |
| | | using System.Security.Claims; |
| | | using Utility; |
| | | using WMS.Entity.BllAsnEntity; |
| | | using WMS.IBLL.IPdaServer; |
| | | |
| | |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [UnitOfWork] |
| | | public IActionResult BindPallet(PdaPalletBindVm model) |
| | | { |
| | | try |
| | | { |
| | | var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | |
| | | { |
| | | throw new Exception("未获取到用户信息"); |
| | | } |
| | | _PdaAsnSvc.BindPalletStock(model, int.Parse(UserId), model.Origin); |
| | | if (model.TableType == 0) |
| | | { |
| | | _PdaAsnSvc.BindPalletPasteCode(model, int.Parse(UserId)); |
| | | } |
| | | else if (model.TableType == 1) |
| | | { |
| | | _PdaAsnSvc.BindPalletNoPasteCode(model, int.Parse(UserId)); |
| | | } |
| | | |
| | | return Ok(new { code = 0, msg = "绑定成功!" }); |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { code = 1, msg = e.Message }); |
| | | } |
| | | } |
| | | #endregion |
| | | |