예제 #1
0
        public ActionResult GetChartByChannel(string type)
        {
            ViewBag.ChartTitle = "Spain - Total Business by Channel - J&J Value Performance";
            db = new Models.ChartsClassesDataContext();
            db.CommandTimeout = 50000;
            List <Models.ChartByChannelModels> lst = GetChartsPc(GetChartByChannelData(type));

            db.Dispose();
            return(PartialView(BYCHANNEL, lst));
        }
예제 #2
0
        public ActionResult GetChartByType(string type)
        {
            ViewBag.ChartTitle = getChartTitle(type);
            db = new Models.ChartsClassesDataContext();
            db.CommandTimeout = 50000;
            Models.ChartModel chart = GetChartByFranchiseData(type);
            List <Models.ChartByChannelModels> lst = chart.chart_ytd;

            db.Dispose();
            ViewBag.ChartModel = lst;
            return(PartialView(GENERIC, chart));
        }