using HH.WMS.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.External.Controllers
{
[AllowAnonymous]
[MvcMenuFilter(false)]
public class NTSDController : BaseController
{
//
// GET: /External/NTSD/
public ActionResult PoundManage()
{
return View();
}
///
/// 车辆预约历史记录
///
///
public ActionResult CarAppointHistory()
{
return View();
}
///
/// 南通看板
///
///
public ActionResult Screen()
{
return View();
}
#region 南通车辆预约历史记录
public string GetCarAppointHistory(int pageIndex, int pageSize, string valueDate, string carNo, string businessType)
{
string[] dates = new string[2];
if (!string.IsNullOrEmpty(valueDate))
dates = JsonConvert.DeserializeObject(valueDate);
var searchModel = new
{
TokenId = ViewConstants.TokenId,
pageIndex = pageIndex,
pageSize = pageSize,
carNo,
businessType,
CN_T_START = !string.IsNullOrEmpty(valueDate) ? dates[0] : "",
CN_T_END = !string.IsNullOrEmpty(valueDate) ? dates[1] : "",
};
var result = WebApiManager.HttpTms_Post("api/CarInfo/GetHistory", JsonConvert.SerializeObject(searchModel));
return result;
}
#endregion
#region 南通看板
public string StockList()
{
return HttpWMS_Get("api/NtApi/StockList");
}
public string AreaList(string stockCode)
{
return HttpWMS_Get("api/NtApi/GetArea?stockCode=" + stockCode + "&include=" + 4);
}
public string GetRowsList(string stockCode, string areaCode)
{
string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetRowsList?stockCode=" + stockCode + "&areaCode=" + areaCode);
return returnValue;
}
public string GetTunnelLocations(string stockCode, string areaCode)
{
var returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetTunnelLocations?stockCode=" + stockCode + "&areaCode=" + areaCode);
return returnValue;
}
public string GetAllAgvStatus()
{
string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetAllAgvStatus");
return returnValue;
}
public string GetMongoTaskStatus()
{
string returnValue = WebApiManager.HttpWMS_Get("Api/NtApi/GetMongoTaskStatus");
return returnValue;
}
#endregion
}
}