using HH.WMS.Entitys;
|
using HH.WMS.Entitys.Common;
|
using HH.WMS.WebUI.Controllers;
|
using Newtonsoft.Json;
|
using Newtonsoft.Json.Converters;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.Mvc;
|
|
namespace HH.WMS.WebUI.Areas.AllQuery.Controllers
|
{
|
public class StockComController : BaseController
|
{
|
//
|
// GET: /AllQuery/StockCom/
|
|
public ActionResult Index()
|
{
|
return View();
|
}
|
|
public string GetStockCompareReport(int pageIndex, int pageSize, string valueDate)
|
{
|
|
string[] date = new string[2];
|
if (!string.IsNullOrEmpty(valueDate))
|
date = JsonConvert.DeserializeObject<string[]>(valueDate);
|
|
SearchModel searchModel = new SearchModel()
|
{
|
TokenId = ViewConstants.TokenId,
|
PageIndex = pageIndex,
|
PageSize = pageSize,
|
SearchCondition = new
|
{
|
CN_T_START = !string.IsNullOrEmpty(valueDate) ? date[0] : "",
|
CN_T_END = !string.IsNullOrEmpty(valueDate) ? date[1] : ""
|
}
|
};
|
return HttpWMS_Post("api/Report/GetStockCompareReport", JsonConvert.SerializeObject(searchModel));
|
|
}
|
}
|
}
|