Exemple #1
0
        public JsonResult ReloadRTCMgmtLineChart(string startDate, string endDate)
        {
            DateTime         currentStartDate = DateTime.ParseExact(startDate.TrimEnd('/'), DateStringFormats.MMddyyyySlash, CultureInfo.InvariantCulture);
            DateTime         currentEndDate   = DateTime.ParseExact(endDate.TrimEnd('/'), DateStringFormats.MMddyyyySlash, CultureInfo.InvariantCulture);
            int              userId           = 1; // to-do, maybe get it from login session.
            RTCMgmtViewChart chartSummary     = new RTCMgmtManager().GetRTCMgmtViewChartSummary(currentStartDate, currentEndDate, userId);

            return(Json(chartSummary, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult RTCMgmt()
        {
            DateTime defaultStartDate      = DateTime.Now.AddDays(-30);
            DateTime defaultEndDate        = DateTime.Now;
            int      userId                = 1; // to-do, maybe get it from login session.
            RTCMgmtWorkItemSummary summary = new RTCMgmtManager().GetRTCMgmtWorkItemSummary(defaultStartDate, defaultEndDate, userId);

            return(View(summary));
        }
Exemple #3
0
        public PartialViewResult ReloadRTCMgmtPartial(string startDate, string endDate)
        {
            DateTime currentStartDate      = DateTime.ParseExact(startDate.TrimEnd('/'), DateStringFormats.MMddyyyySlash, CultureInfo.InvariantCulture);
            DateTime currentEndDate        = DateTime.ParseExact(endDate.TrimEnd('/'), DateStringFormats.MMddyyyySlash, CultureInfo.InvariantCulture);
            int      userId                = 1; // to-do, maybe get it from login session.
            RTCMgmtWorkItemSummary summary = new RTCMgmtManager().GetRTCMgmtWorkItemSummary(currentStartDate, currentEndDate, userId);

            return(PartialView("_RTCMgmtPartial", summary));
        }
Exemple #4
0
        // GET: RTCMgmt
        public ActionResult Index()
        {
            RTCWorkItemSummary summary = new RTCMgmtManager().GetRTCWorkItemSummary();

            return(View(summary));
        }