| | |
| | | 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 |
| | |
| | | { |
| | | 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 = "绑定成功!" }); |
| | | |