| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Identity; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Model.InterFaceModel; |
| | | using Model.ModelDto.BllAsnDto; |
| | |
| | | public class PdaAsnController : ControllerBase |
| | | { |
| | | private readonly IPdaAsnServer _PdaAsnSvc; |
| | | private readonly UserManager _userManager; |
| | | |
| | | public PdaAsnController(IPdaAsnServer pdaAsnSvc) |
| | | public PdaAsnController(IPdaAsnServer pdaAsnSvc,UserManager userManager) |
| | | { |
| | | _PdaAsnSvc = pdaAsnSvc; |
| | | _PdaAsnSvc = pdaAsnSvc; |
| | | _userManager = userManager; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据单据获取标签数量 |
| | | /// </summary> |
| | | /// <param name="model">ASNNo:入库单、ASNDetailNo:入库单明细号</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult GetBoxCountByAsn(PalletBindVm model) |
| | | { |
| | | try |
| | | { |
| | | var list = _PdaAsnSvc.GetBoxCountByAsn(model.ASNNo,model.ASNDetailNo); |
| | | |
| | | |
| | | return Ok(new { code = 0, msg = "根据单据获取标签数量", data= list}); |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new { code = 1, msg = e.Message }); |
| | | } |
| | | } |
| | | |
| | | |
| | | //---------------------------------------------申请入库页面---------------------------------------------------------------------- |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存指定的储位 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public IActionResult SaveAppointLocate(PalletBindVm model) |
| | | { |
| | | try |
| | | { |
| | | _PdaAsnSvc.SaveAppointLocate(model.PalletNo, model.LocatNo, _userManager.UserId); |
| | | |
| | | return Ok(new HttpReturnModel{ Success = "0", Message = "根据单据获取标签数量" }); |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return Ok(new HttpReturnModel { Success = "1", Message = e.Message }); |
| | | } |
| | | } |
| | | |
| | | |
| | | #endregion |