Exemplo n.º 1
0
        public ActionResult ByStationeryCategoryOrdered(FormCollection formCollection, string sessionId)
        {
            List <PurchaseOrderDetails> pos = AnalyticsService.GetOrderDetailsByStationeryCategory();

            //To get list of pair of category and quantity for a particular month
            Dictionary <string, double> dataForDisplay = AnalyticsService.GetCategoriesAmountsForMonth(pos, currentMonth, currentYear);

            ViewData["dataForDisplay"] = dataForDisplay;

            ViewData["month"]           = currentMonth;
            ViewData["year"]            = currentYear;
            ViewData["monthsInInt"]     = monthsInInt;
            ViewData["monthsToDisplay"] = monthsToDisplay;
            ViewData["chartTitle"]      = "Total Amount Ordered By Stationery Category For " + months[currentMonth] + " " + currentYear;
            ViewData["sessionId"]       = sessionId;

            return(View());
        }