예제 #1
0
        //
        // GET: /Reports/

        public ActionResult ProjectSummary()
        {
            //Check Authorization
            if (!cls_Authorization.isAllowedURL("Report_ProjectSummary"))
            {
                return(RedirectToAction("login", "account"));
            }
            List <ProjectStatics>       objProjectStatisticslst = new List <ProjectStatics>();
            LiveMonitoringAPIController oAPI = new LiveMonitoringAPIController();

            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                objProjectStatisticslst = oAPI._ProjectSummary(dFrom, dTo, customerId);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(View(objProjectStatisticslst));
        }
예제 #2
0
        public JsonResult JsonProjectSummary()
        {
            //Check Authorization

            List <ProjectStatics>       objProjectStatisticslst = new List <ProjectStatics>();
            LiveMonitoringAPIController oAPI = new LiveMonitoringAPIController();

            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                objProjectStatisticslst = oAPI._ProjectSummary(dFrom, dTo, customerId);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(Json(objProjectStatisticslst, JsonRequestBehavior.AllowGet));
        }