using HH.Redis.ReisModel; using HH.WMS.BLL; using HH.WMS.BLL.Pda; using HH.WMS.BLL.SysMgr; using HH.WMS.Common; using HH.WMS.Entitys; using HH.WMS.WebApi.Areas.Common.Controllers; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace HH.WMS.WebApi.Areas.OpenApi.Controllers { public class YMApiPDAController : BaseController { #region 整排解绑 /// /// 整排解绑 /// /// 排号 /// [HttpGet] public OperateResult RowUnBind(string rowCode) { return ValidateToken(t => { OperateResult result = BLLCreator.Create(t).RowUnBind(rowCode, t); return result; }); } #endregion #region 成品空筐绑定 /// /// 成品空筐绑定 /// /// 货位编码 /// [HttpGet] public OperateResult EndproductkkBind(string locationCode) { return ValidateToken(t => { OperateResult result = BLLCreator.Create(t).EndproductkkBind(locationCode, t); return result; }); } #endregion #region 成品解绑 /// /// 成品解绑 /// /// 货位编码 /// [HttpGet] public OperateResult EndProductUnbind(string locationCode) { return ValidateToken(t => { OperateResult result = BLLCreator.Create(t).EndProductUnbind(locationCode, t); return result; }); } #endregion #region 原料扫码反馈入库 /// /// 原料扫码反馈入库-根据货位找到对应物料 /// /// 货位编码 /// [HttpGet] public OperateResult GetLocationWithItem(string locationCode) { return ValidateToken(t => { OperateResult result = BLLCreator.Create(t).GetLocationWithItem(locationCode, t); return result; }); } /// /// 原料扫码反馈入库-保存 /// /// 货位编码 /// 物料编码 /// [HttpGet] public OperateResult MaterialScanStockIn(string locationCode, string itemCode) { return ValidateToken(t => { OperateResult result = BLLCreator.Create(t).MaterialScanStockIn(locationCode, itemCode, t); return result; }); } #endregion } }