using HH.WMS.BLL; using HH.WMS.BLL.Algorithm; using HH.WMS.Common.Algorithm; using HH.WMS.Entitys; using HH.WMS.WebApi.Areas.Common.Controllers; using Newtonsoft.Json; 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.Sys.Controllers { public class AlgorithmController : BaseController { #region 补料算法(PDA 物料上架) /// /// 补料算法 /// /// token验证值 /// 托盘编号 /// 库区编码 /// 物料编码 /// /// [HANHE(XDL)] CREATED BY 2018-11-22 [HttpGet] public string GetFeedAlgor(string tokenId, string trayCode, string areaCode, string itemCode) { try { //根据tokenId 获取当前登陆信息 OperateResult resultInfo = GetTokenInfo(tokenId); if (!resultInfo.Success) return JsonConvert.SerializeObject(resultInfo); FeedAlgorEntity algorEntity = new FeedAlgorEntity(); algorEntity.trayCode = trayCode; algorEntity.stockAreaCode = areaCode; algorEntity.itemCode = itemCode; FeedResultEntity resultEntity = BLLCreator.Create().FeedEmptyLocation(algorEntity); return JsonConvert.SerializeObject(OperateResult.Succeed("", resultEntity)); } catch (Exception ex) { return JsonConvert.SerializeObject( OperateResult.Error(ex.Message.ToString())); } } #endregion } }