| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Identity; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Options; |
| | | using Model.InterFaceModel; |
| | | using Model.ModelDto.BllAsnDto; |
| | | using Model.ModelDto.DataDto; |
| | |
| | | using System.Security.Claims; |
| | | using Utility; |
| | | using Utility.Tools; |
| | | using Wms.Tools; |
| | | using WMS.BLL.LogServer; |
| | | using WMS.Entity.BllAsnEntity; |
| | | using WMS.Entity.DataEntity; |
| | |
| | | [Authorize] |
| | | public class PdaAsnController : ControllerBase |
| | | { |
| | | private readonly ApiUrlConfig _config; //接口交互路径 |
| | | private readonly IPdaAsnServer _PdaAsnSvc; |
| | | private readonly UserManager _userManager; |
| | | |
| | | public PdaAsnController(IPdaAsnServer pdaAsnSvc,UserManager userManager) |
| | | public PdaAsnController(IOptions<ApiUrlConfig> setting, IPdaAsnServer pdaAsnSvc,UserManager userManager) |
| | | { |
| | | _config = setting.Value; |
| | | _PdaAsnSvc = pdaAsnSvc; |
| | | _userManager = userManager; |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | var models = _PdaAsnSvc.GetBindBoxInfos(model); |
| | | var models = _PdaAsnSvc.GetBindBoxInfos(model, _config.BoxHost + _config.GetBoxUrl); |
| | | |
| | | return Ok(new { code = 0, msg = "标签箱码信息", data = models }); |
| | | } |
| | |
| | | { |
| | | _PdaAsnSvc.SaveAppointLocate(model.PalletNo, model.LocatNo, _userManager.UserId); |
| | | |
| | | return Ok(new HttpReturnModel{ Success = "0", Message = "根据单据获取标签数量" }); |
| | | return Ok(new HttpReturnModel{ Success = "0", Message = "成功指定储位" }); |
| | | |
| | | } |
| | | catch (Exception e) |