using HH.AutoBom.Core;
|
using HH.WMS.Entitys.Common;
|
using HH.WMS.WebUI.Controllers;
|
using Newtonsoft.Json;
|
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 ReportController : BaseController
|
{
|
public ActionResult kpi()
|
{
|
return View();
|
}
|
public string GetKpiList(int pageIndex, int pageSize, string stockCode, string userName, string startMonth, string endMonth)
|
{
|
var loginer = FormsAuth.GetUserData<LoginerBase>();
|
SearchModel searchModel = new SearchModel()
|
{
|
TokenId = loginer.Extend1,
|
PageIndex = pageIndex,
|
PageSize = pageSize,
|
SearchCondition = new
|
{
|
CN_S_STOCK_CODE = stockCode,
|
CN_S_USER_NAME = userName,
|
CN_T_START = !string.IsNullOrEmpty(startMonth) ? startMonth : "",
|
CN_T_END = !string.IsNullOrEmpty(endMonth) ? endMonth : ""
|
}
|
};
|
return HttpWMS_Post("api/Report/GetKpiList", JsonConvert.SerializeObject(searchModel));
|
}
|
|
public ActionResult Logistics()
|
{
|
return View();
|
}
|
|
public string GetLogisticsReport(int pageIndex, int pageSize, string logisticsFlag, string startTime, string endTime)
|
{
|
SearchModel searchModel = new SearchModel()
|
{
|
TokenId = ViewConstants.TokenId,
|
PageIndex = pageIndex,
|
PageSize = pageSize,
|
SearchCondition = new
|
{
|
LogisticsFlag = logisticsFlag,
|
StartTime = startTime,
|
EndTime = endTime,
|
}
|
};
|
return HttpWMS_Post("api/Report/GetLogisticsReport", JsonConvert.SerializeObject(searchModel));
|
}
|
|
public string GetLogisticsDetail(string logisticsFlag, string startTime, string endTime)
|
{
|
SearchModel searchModel = new SearchModel()
|
{
|
TokenId = ViewConstants.TokenId,
|
SearchCondition = new
|
{
|
LogisticsFlag = logisticsFlag,
|
StartTime = startTime,
|
EndTime = endTime,
|
}
|
};
|
return HttpWMS_Post("api/Report/GetLogisticsDetail", JsonConvert.SerializeObject(searchModel));
|
}
|
}
|
}
|