Ejemplo n.º 1
0
        public JsonResult GetChartDataPro(string name)
        {
            string           s         = new BaseAll_BLL().GetNumberByName(name);
            string           tablename = "pumproom" + s;
            List <ChartData> list      = (List <ChartData>) new ChartData_BLL().GetToday(tablename);
            string           json      = JsonConvert.SerializeObject(list);

            return(Json(new { IsSuccess = true, json }));
        }
Ejemplo n.º 2
0
        public JsonResult GetDataByTime(string tablename, string time)
        {
            DateTime timep           = Convert.ToDateTime(time);
            IEnumerable <BaseAll> ls = new BaseAll_BLL().GetAllByTime(tablename, timep);
            string json = JsonConvert.SerializeObject(ls);

            //string json = tablename + time;
            return(Json(new{ IsSuccess = true, json }));
        }
Ejemplo n.º 3
0
        public JsonResult GetData(string data)
        {
            BaseAll p = new BaseAll_BLL().GetByName(data);
            //IEnumerable<BaseAll1> list = new BaseAll_BLL().GetDiffer();
            string json = JsonConvert.SerializeObject(p);

            //string json = "hello"+data;
            return(Json(new { IsSuccess = true, json }));
        }
Ejemplo n.º 4
0
        public JsonResult GetChartData(string name, string fieldname, int day)
        {
            string        s         = new BaseAll_BLL().GetNumberByName(name);
            string        tablename = "pumproom" + s;
            List <string> list      = (List <string>) new BaseAll_BLL().GetDataByDay(tablename, fieldname, day);
            string        json      = JsonConvert.SerializeObject(list);

            //string json = name+fieldname+day.ToString();
            return(Json(new { IsSuccess = true, json }));
        }
Ejemplo n.º 5
0
        public IActionResult Index()
        {
            List <string> list = (List <string>) new ReadPumpRoom_BLL().ReadPumpRoom();

            ViewData["PumpList"] = list;
            //IEnumerable<CeShi1> ls = new CeShi_BLL().GetDiffer();
            IEnumerable <BaseAll1> ls = new BaseAll_BLL().GetDiffer();



            return(View(ls));
        }