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 整排解绑
|
/// <summary>
|
/// 整排解绑
|
/// </summary>
|
/// <param name="rowCode">排号</param>
|
/// <returns></returns>
|
[HttpGet]
|
public OperateResult RowUnBind(string rowCode)
|
{
|
return ValidateToken(t =>
|
{
|
OperateResult result = BLLCreator.Create<YmBLL>(t).RowUnBind(rowCode, t);
|
return result;
|
});
|
}
|
|
#endregion
|
|
|
#region 成品空筐绑定
|
/// <summary>
|
/// 成品空筐绑定
|
/// </summary>
|
/// <param name="locationCode">货位编码</param>
|
/// <returns></returns>
|
[HttpGet]
|
public OperateResult EndproductkkBind(string locationCode)
|
{
|
return ValidateToken(t =>
|
{
|
OperateResult result = BLLCreator.Create<YmBLL>(t).EndproductkkBind(locationCode, t);
|
return result;
|
});
|
}
|
|
#endregion
|
|
#region 成品解绑
|
/// <summary>
|
/// 成品解绑
|
/// </summary>
|
/// <param name="locationCode">货位编码</param>
|
/// <returns></returns>
|
[HttpGet]
|
public OperateResult EndProductUnbind(string locationCode)
|
{
|
return ValidateToken(t =>
|
{
|
OperateResult result = BLLCreator.Create<YmBLL>(t).EndProductUnbind(locationCode, t);
|
return result;
|
});
|
}
|
|
#endregion
|
|
#region 原料扫码反馈入库
|
/// <summary>
|
/// 原料扫码反馈入库-根据货位找到对应物料
|
/// </summary>
|
/// <param name="locationCode">货位编码</param>
|
/// <returns></returns>
|
[HttpGet]
|
public OperateResult GetLocationWithItem(string locationCode)
|
{
|
return ValidateToken(t =>
|
{
|
OperateResult result = BLLCreator.Create<YmBLL>(t).GetLocationWithItem(locationCode, t);
|
return result;
|
});
|
}
|
|
/// <summary>
|
/// 原料扫码反馈入库-保存
|
/// </summary>
|
/// <param name="locationCode">货位编码</param>
|
/// <param name="itemCode">物料编码</param>
|
/// <returns></returns>
|
[HttpGet]
|
public OperateResult MaterialScanStockIn(string locationCode, string itemCode)
|
{
|
return ValidateToken(t =>
|
{
|
OperateResult result = BLLCreator.Create<YmBLL>(t).MaterialScanStockIn(locationCode, itemCode, t);
|
return result;
|
});
|
}
|
|
#endregion
|
}
|
}
|