コード例 #1
0
        public ActionResult ReportState()
        {
            ReportsManagement rm = new ReportsManagement();

            rm.GetCurrFiles();
            ViewBag.TotalSize       = rm.GetTotalFilesSize();
            ViewBag.TotalFiles      = rm.GetTotalFilesCount();
            ViewBag.TotalImages     = rm.GetTotalImagesCount();
            ViewBag.TotalSounds     = rm.GetTotalSoundsCount();
            ViewBag.TotalVideos     = rm.GetTotalVideosCount();
            ViewBag.TotalImagesSize = rm.GetTotalImagesSize();
            ViewBag.TotalSoundsSize = rm.GetTotalSoundsSize();
            ViewBag.TotalVideosSize = rm.GetTotalVideosSize();
            ViewBag.TopSizeFiles    = rm.GetTopSizedFiles().ToList();
            ViewBag.NewFiles        = rm.GetNewFiles().ToList();
            ViewBag.DeletedFiles    = rm.GetDeletedFiles().ToList();
            return(View());
        }
コード例 #2
0
        public ActionResult ReportUsage()
        {
            ReportsManagement rm = new ReportsManagement();

            rm.GetCurrFiles();
            ViewBag.TotalFiles            = rm.GetFilesDBTotalCount();
            ViewBag.TotalImages           = rm.GetImagesDBTotalCount();
            ViewBag.TotalSounds           = rm.GetSoundsDBTotalCount();
            ViewBag.TotalVideos           = rm.GetVideosDBTotalCount();
            ViewBag.TotalImageViews       = rm.GetTotalImagesViews();
            ViewBag.TotalSoundViews       = rm.GetTotalSoundsViews();
            ViewBag.TotalVideoViews       = rm.GetTotalVideosViews();
            ViewBag.TopImageViews         = rm.GetTopViewedImages().ToList();
            ViewBag.TopSoundViews         = rm.GetTopViewedSounds().ToList();
            ViewBag.TopVideoViews         = rm.GetTopViewedVideos().ToList();
            ViewBag.ProcessingSoundsCount = rm.GetSoundInProcessCount();
            ViewBag.ProcessingVideosCount = rm.GetVideoInProcessCount();
            ViewBag.TimeSound             = rm.GetTotalSoundProcessed();
            ViewBag.TimeVideo             = rm.GetTotalVideoProcessed();
            return(View());
        }