bklLiudl
2024-07-23 277bbae216debe7e6c04e8cc6ee6e1ba9763e14b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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);
            }
        }
    }
}