using HH.WMS.BLL.Check;
|
using HH.WMS.Entitys;
|
using HH.WMS.WebApi.Areas.Common.Controllers;
|
using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Net;
|
using System.Net.Http;
|
using System.Web.Http;
|
|
namespace HH.WMS.WebApi.Areas.AllQuery.Controllers
|
{
|
public class ColligateQueryController : BaseController
|
{
|
#region 综合查询
|
/// <summary>
|
/// 根据货位获取托盘中物料
|
/// </summary>
|
/// <param name="sqlwhere">查询条件</param>
|
/// <returns></returns>
|
/// <history>[HanHe(lt)] CREATED 2019/1/2</history>
|
[HttpGet]
|
public string GetComPreInfo(string queryCode, string queryType)
|
{
|
return ValidateToken(t =>
|
{
|
DataTable dt = new DataTable();
|
//货位查询
|
if (queryType == "2")
|
{
|
dt = BLL.BLLCreator.Create<TN_WM_CHECK_LISTBLL>().GetTrayitemBylocation(queryCode);
|
}
|
OperateResult result = OperateResult.Succeed("", dt);
|
return JsonConvert.SerializeObject(result);
|
});
|
}
|
#endregion
|
}
|
}
|