using BLL.DAL;
|
using Common;
|
using Json;
|
using Lib;
|
using Model;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Web.Mvc;
|
using System.Web.Script.Serialization;
|
|
namespace wms.Areas.Data.Controllers
|
{
|
public class StoreChartController : MasterPage
|
{
|
[LoginFilter]
|
public ActionResult Index()
|
{
|
ViewBag.Pai = LocalHelper.GetPaiHtml();
|
return View();
|
}
|
}
|
|
|
public class SChartAjaxController : AjaxPage
|
{
|
public ActionResult GetList()
|
{
|
string dd = Request["aaa"];
|
if (dd != null)
|
{
|
DALDepotsLocation dALDepots = new DALDepotsLocation();
|
DataTable entity = dALDepots.GetChartItmes(dd);
|
string json = JsonHelper.DataTableToArrayJson(entity);
|
ReturnJson.AddProperty("Result", json);
|
ReturnJson.AddProperty("Code", 1);
|
ReturnJson.AddProperty("Message", "响应成功");
|
|
return Content(this.ReturnJson.ToString());
|
}
|
return Content(null);
|
}
|
|
public ActionResult GetCharts()
|
{
|
try
|
{
|
DALDepotsLocation dALDepots = new DALDepotsLocation();
|
DataTable entity = dALDepots.GetCharts();
|
string json = JsonHelper.DataTableToSchartItems(entity);
|
ReturnJson.AddProperty("Result", json);
|
ReturnJson.AddProperty("Code", 1);
|
ReturnJson.AddProperty("Message", "响应成功");
|
|
return Content(this.ReturnJson.ToString());
|
}
|
catch
|
{
|
return Content(null);
|
}
|
}
|
}
|
}
|