using HH.WMS.BLL;
|
using HH.WMS.BLL.Basic;
|
using HH.WMS.Entitys;
|
using HH.WMS.Entitys.Common;
|
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.Basic
|
{
|
public class VendorController : BaseController
|
{
|
#region 获取供应商信息
|
/// <summary>
|
/// 分页获取供应商信息
|
/// </summary>
|
/// <param name="pageIndex">页码</param>
|
/// <param name="pageSize">页显示条数</param>
|
/// <returns></returns>
|
/// <History>[HANHE(XDL)] CREATED BY 2018-11-20</History>
|
[HttpPost]
|
public OperateResult GetVendorList(SearchModel searchModel)
|
{
|
try
|
{
|
return ValidateToken(searchModel.TokenId, x =>
|
{
|
int total;
|
var list = BLLCreator.Create<TN_AB_SUPPLIERBLL>().GetVendorList(searchModel, out total);
|
return OperateResult.Succeed(null, new
|
{
|
rows = list,
|
total = total
|
});
|
});
|
}
|
catch (Exception ex)
|
{
|
return OperateResult.Error(ex.Message);
|
}
|
}
|
#endregion
|
}
|
}
|