using HH.WMS.Utils.NPOI.HSSF.UserModel;
|
using HH.WMS.Utils.NPOI.SS.UserModel;
|
using HH.WMS.WebUI.Controllers;
|
using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Linq;
|
using System.Web;
|
using System.Web.Mvc;
|
|
namespace HH.WMS.WebUI.Areas.AllQuery.Controllers
|
{
|
public class LogController : BaseController
|
{
|
//
|
// GET: /AllQuery/Log/
|
|
public ActionResult Index()
|
{
|
return View();
|
}
|
|
public string GetList(int pageIndex, int pageSize, string logName, string logType, string logFrom, string valueDate, string logContent)
|
{
|
string[] dates = new string[2];
|
if (!string.IsNullOrEmpty(valueDate))
|
dates = JsonConvert.DeserializeObject<string[]>(valueDate);
|
var searchModel = new
|
{
|
TokenId = ViewConstants.TokenId,
|
pageIndex = pageIndex,
|
pageSize = pageSize,
|
SearchCondition = new
|
{
|
CN_S_LOG_TITLE = logName,
|
CN_S_LOG_TYPE = logType,
|
CN_S_LOG_FROM = logFrom,
|
CN_T_START = !string.IsNullOrEmpty(valueDate) ? dates[0] : "",
|
CN_T_END = !string.IsNullOrEmpty(valueDate) ? dates[1] : "",
|
CN_S_LOG_CONTENT = logContent
|
}
|
};
|
|
var result = HttpWMS_Post("api/Log/GetList", JsonConvert.SerializeObject(searchModel));
|
return result;
|
}
|
|
public string GetDtls(string mstGuid)
|
{
|
var result = HttpWMS_Get("api/Log/GetDtls?mstGuid=" + mstGuid);
|
return result;
|
}
|
|
|
public void ExportExcel()
|
{
|
|
}
|
|
}
|
}
|