Ejemplo n.º 1
0
        public JsonResult GetRegionFlow3GSeries(string city, string region, AllCdmaDailyStatList statList)
        {
            IEnumerable <double> stats = statList.Stats[city].GetRegionStats(
                x => x.Flow / 1024, x => x.Region, region);

            return(Json(stats, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult GetRegionErlang2GSeries(string city, string region, AllCdmaDailyStatList statList)
        {
            IEnumerable <double> stats = statList.Stats[city].GetRegionStats(
                x => x.ErlangExcludingSwitch, x => x.Region, region);

            return(Json(stats, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public object BindModel(ControllerContext controllerContext,
            ModelBindingContext bindingContext)
        {
            AllCdmaDailyStatList list
                = (AllCdmaDailyStatList)controllerContext.HttpContext.Session[sessionKey];

            if (list == null)
            {
                IRegionRepository regionRepository = new EFRegionRepository();
                list = new AllCdmaDailyStatList(regionRepository.GetAllList());
                controllerContext.HttpContext.Session[sessionKey] = list;
            }
            // return the cart
            return list;
        }
Ejemplo n.º 4
0
        public object BindModel(ControllerContext controllerContext,
                                ModelBindingContext bindingContext)
        {
            AllCdmaDailyStatList list
                = (AllCdmaDailyStatList)controllerContext.HttpContext.Session[sessionKey];

            if (list == null)
            {
                IRegionRepository regionRepository = new EFRegionRepository();
                list = new AllCdmaDailyStatList(regionRepository.GetAllList());
                controllerContext.HttpContext.Session[sessionKey] = list;
            }
            // return the cart
            return(list);
        }
Ejemplo n.º 5
0
        public JsonResult GetCityCi3GSeries(string city, AllCdmaDailyStatList statList)
        {
            IEnumerable <double> stats = statList.Stats[city].GetSummaryStats(x => x.Ci * 100);

            return(Json(stats, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 6
0
 public JsonResult GetDateCategories(string city, AllCdmaDailyStatList statList)
 {
     return(Json(statList.DateCategories(city), JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 7
0
        public JsonResult GetCityErlang2GSeries(string city, AllCdmaDailyStatList statList)
        {
            IEnumerable <double> stats = statList.Stats[city].GetSummaryStats(x => x.ErlangExcludingSwitch);

            return(Json(stats, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 8
0
        public JsonResult GetRegionList(string city, AllCdmaDailyStatList statList)
        {
            IEnumerable <string> regions = statList.Stats[city].Regions;

            return(Json(regions, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 9
0
 public JsonResult Query(DateTime begin, DateTime end, AllCdmaDailyStatList statList)
 {
     statList.Import(cdmaStatRepository, begin, end);
     return(Json(statList.Stats.Count, JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 10
0
 public JsonResult GetRegionDrop2GRateSeries(string city, string region, AllCdmaDailyStatList statList)
 {
     IEnumerable<double> stats = statList.Stats[city].GetRegionStats(
         x => x.Drop2GRate * 100, x => x.Region, region);
     return Json(stats, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 11
0
 public JsonResult GetRegionErlang2GSeries(string city, string region, AllCdmaDailyStatList statList)
 {
     IEnumerable<double> stats = statList.Stats[city].GetRegionStats(
         x => x.ErlangExcludingSwitch, x => x.Region, region);
     return Json(stats, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 12
0
 public JsonResult GetDateCategories(string city, AllCdmaDailyStatList statList)
 {
     return Json(statList.DateCategories(city), JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 13
0
 public JsonResult GetCityFlow3GSeries(string city, AllCdmaDailyStatList statList)
 {
     IEnumerable<double> stats = statList.Stats[city].GetSummaryStats(x => x.Flow / 1024);
     return Json(stats, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 14
0
 public JsonResult GetCityErlang2GSeries(string city, AllCdmaDailyStatList statList)
 {
     IEnumerable<double> stats = statList.Stats[city].GetSummaryStats(x => x.ErlangExcludingSwitch);
     return Json(stats, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 15
0
 public JsonResult Query(DateTime begin, DateTime end, AllCdmaDailyStatList statList)
 {
     statList.Import(cdmaStatRepository, begin, end);
     return Json(statList.Stats.Count, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 16
0
 public JsonResult GetRegionList(string city, AllCdmaDailyStatList statList)
 {
     IEnumerable<string> regions = statList.Stats[city].Regions;
     return Json(regions, JsonRequestBehavior.AllowGet);
 }