示例#1
0
        public ActionResult GetActiveSubscribersWindow(int userId)
        {
            var token = new SalesDetailsWindowToken
            {
                Title    = "Active Subscribers Report"
                , Filter = new FiltersToken {
                    UserId = userId, DateRange = new DateRangeToken()
                }
                , Type         = DashboardEnums.eSaleBoxType.ACTIVE_SUBSCRIBERS
                , IsCompareBox = false
            };

            return(PartialView("Dashboard/_SalesDetailWindow", token));
        }
示例#2
0
        public ActionResult GetSalesDetailsWindow(FiltersToken filter, DashboardEnums.eSaleBoxType type, bool compareBox)
        {
            var periodKind = filter.PeriodTypeId.ToPeriodSelectionKind();

            filter.DateRange = _dashboardServices.PeriodKindToDateRange(periodKind, compareBox);

            var token = new SalesDetailsWindowToken
            {
                Title          = String.Format("{0} for {1}-{2}", Utils.GetEnumDescription(type), filter.DateRange.from.ToString("MMMM dd, yyyy"), filter.DateRange.to.ToString("MMMM dd, yyyy"))
                , Filter       = filter
                , Type         = type
                , IsCompareBox = compareBox
            };

            return(PartialView("Dashboard/_SalesDetailWindow", token));
        }