Exemplo n.º 1
0
        /// <summary>
        /// Gets the Jobs completed with exception for given media server and returns JobHistory View
        /// </summary>
        /// <param name="mediaServer"></param>
        /// <returns></returns>
        public ActionResult CompletedWithExceptionJob(string mediaServer)
        {
            Trace.WriteLine("Entering CompleteWithExceptionJob method");
            ViewBag.DateSortParm = "date_desc";

            var jobHistories = DocumentDBDataController.GetJobHistoryByJobStatus("SucceededWithExceptions", mediaServer);

            ViewBag.Mediaserver = mediaServer;
            return(View("JobHistory", jobHistories));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the Missed jobs for given media server and returns JobHistory View
        /// </summary>
        /// <param name="mediaServer"></param>
        /// <returns></returns>
        public ActionResult MissedJob(string mediaServer)
        {
            Trace.WriteLine("Entering MissedJob method");
            ViewBag.DateSortParm = "date_desc";

            var jobHistories = DocumentDBDataController.GetJobHistoryByJobStatus("Missed", mediaServer);

            ViewBag.Mediaserver = mediaServer;
            return(View("JobHistory", jobHistories));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Gets Job Histories by Status for given media server and returns JobHistory partial view.
        /// </summary>
        /// <param name="JobStatus"></param>
        /// <param name="media"></param>
        /// <returns></returns>
        public ActionResult GetJobHistoryStatus(string JobStatus, string media)
        {
            Trace.WriteLine("Entering GetJobHistoryStatus method");
            ModelState.Clear();
            ViewBag.Name   = "Name";
            ViewBag.Status = JobStatus;
            ViewBag.Type   = "Type";
            if (JobStatus.Equals("All"))
            {
                var jobHistories2 = DocumentDBDataController.GetJobHistories(media);
                ViewBag.Mediaserver = media;
                return(PartialView("JobHistory", jobHistories2));
            }
            var jobsHistories1 = DocumentDBDataController.GetJobHistoryByJobStatus(JobStatus, media);

            ViewBag.Mediaserver = media;
            return(PartialView("JobHistory", jobsHistories1));
        }