Beispiel #1
0
        //
        // GET: /BrowserDetails/

        public ActionResult Index(int MachineDetailId = 0, String URL = null)
        {
            //Check Authorization

            if (!cls_Authorization.isAllowedURL("Report_BrowserDetails"))
            {
                return(RedirectToAction("login", "account"));
            }
            List <BrowserDetail>        BrowserDetail = new List <BrowserDetail>();
            LiveMonitoringAPIController oAPI          = new LiveMonitoringAPIController();
            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                BrowserDetail = oAPI._Sites(dFrom, dTo, customerId, MachineDetailId, URL);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(View(BrowserDetail));
        }
        //
        // 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));
        }
Beispiel #3
0
        public JsonResult JsonAppDetail(int MachineDetailId = 0, String AppName = null)
        {
            List <AppDetail>            AppDetail = new List <AppDetail>();
            LiveMonitoringAPIController oAPI      = new LiveMonitoringAPIController();
            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                AppDetail = oAPI._Apps(dFrom, dTo, customerId, MachineDetailId, AppName);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(Json(AppDetail, JsonRequestBehavior.AllowGet));
        }
        public JsonResult JsonKeyLogger(int KeyLoggerId = 0, string Type = null, int MachineDetailId = 0)
        {
            List <KeyLogging>           KeyLogger = new List <KeyLogging>();
            LiveMonitoringAPIController oAPI      = new LiveMonitoringAPIController();
            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                KeyLogger = oAPI._KeyLogger(dFrom, dTo, customerId, MachineDetailId, KeyLoggerId, Type);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(Json(KeyLogger, JsonRequestBehavior.AllowGet));
        }
Beispiel #5
0
        public JsonResult JsonMachineDetail(int MachineId = 0)
        {
            List <MachineDetail>        MachineDetail = new List <MachineDetail>();
            LiveMonitoringAPIController oAPI          = new LiveMonitoringAPIController();

            try
            {
                int      customerId = Utility.GetCustomerId();
                DateTime dFrom      = Utility.GetStartDate();
                DateTime dTo        = Utility.GetEndDate();
                MachineDetail = oAPI._Users(customerId, MachineId);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(Json(MachineDetail, JsonRequestBehavior.AllowGet));
        }
        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));
        }
Beispiel #7
0
        public JsonResult JsonIdleDetail(int MachineDetailId = 0)
        {
            //Check Authorization



            List <MachineIdle>          MachineIdle = new List <MachineIdle>();
            LiveMonitoringAPIController oAPI        = new LiveMonitoringAPIController();
            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                MachineIdle = oAPI._IdleMachines(dFrom, dTo, customerId, MachineDetailId);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(Json(MachineIdle, JsonRequestBehavior.AllowGet));
        }
        //
        // GET: /KeyLogger/

        public ActionResult Index(int KeyLoggerId = 0, string Type = null, int MachineDetailId = 0)
        {
            //Check Authorization
            if (!cls_Authorization.isAllowedURL("Report_KeyLoggerDetails"))
            {
                return(RedirectToAction("login", "account"));
            }
            List <KeyLogging>           KeyLogger = new List <KeyLogging>();
            LiveMonitoringAPIController oAPI      = new LiveMonitoringAPIController();
            int customerId = Utility.GetCustomerId();

            try
            {
                DateTime dFrom = Utility.GetStartDate();
                DateTime dTo   = Utility.GetEndDate();
                KeyLogger = oAPI._KeyLogger(dFrom, dTo, customerId, MachineDetailId, KeyLoggerId, Type);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(View(KeyLogger));
        }
Beispiel #9
0
        //
        // GET: /MachineDetail/

        public ActionResult Index(int MachineId = 0)
        {
            //Check Authorization
            if (!cls_Authorization.isAllowedURL("Report_MachineDetails"))
            {
                return(RedirectToAction("login", "account"));
            }
            List <MachineDetail>        MachineDetail = new List <MachineDetail>();
            LiveMonitoringAPIController oAPI          = new LiveMonitoringAPIController();

            try
            {
                int      customerId = Utility.GetCustomerId();
                DateTime dFrom      = Utility.GetStartDate();
                DateTime dTo        = Utility.GetEndDate();
                MachineDetail = oAPI._Users(customerId, MachineId);
            }
            catch (Exception e)
            {
                ExceptionHandler handler = new ExceptionHandler();
                handler.HandleException(e);
            }
            return(View(MachineDetail));
        }