| | |
| | | using WMS.IBLL.IPdaServer; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using Wms.Tools; |
| | | using Microsoft.Extensions.Options; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | public class PdaCrController : ControllerBase |
| | | { |
| | | private readonly IPdaCrServer _pdaCrSvc; |
| | | |
| | | public PdaCrController(IPdaCrServer pdaCrSvc) |
| | | private readonly ApiUrlConfig _config; //接口交互路径 |
| | | public PdaCrController(IPdaCrServer pdaCrSvc, IOptions<ApiUrlConfig> setting) |
| | | { |
| | | _pdaCrSvc = pdaCrSvc; |
| | | _config = setting.Value; |
| | | } |
| | | |
| | | #region 盘点 |
| | |
| | | } |
| | | |
| | | var uId = int.Parse(userId); |
| | | _pdaCrSvc.AgvTransport(model.PalletNo, model.AreaNo, model.Ruku, uId); |
| | | _pdaCrSvc.AgvTransport(model.PalletNo, model.AreaNo, model.Ruku, uId, _config.WcsHost + _config.GenAgvSchedulingTask); |
| | | |
| | | return Ok(new { data = "", code = 0, msg = "成功" }); |
| | | } |
| | |
| | | } |
| | | |
| | | var uId = int.Parse(userId); |
| | | _pdaCrSvc.AgvTransport2(model.SoNo,model.PalletNo, model.AreaNo, uId); |
| | | _pdaCrSvc.AgvTransport2(model.SoNo,model.PalletNo, model.AreaNo, uId, _config.WcsHost + _config.GenAgvSchedulingTask); |
| | | |
| | | return Ok(new { data = "", code = 0, msg = "成功" }); |
| | | } |