public HttpResponseMessage GetById(String badgeId, String personId, String companyId, String divisionId, String empId, String categoryId, String badgeStatus, String wcType, String wcData)
        {
            List<ReportRow> listReport;
              Report_Audit reportObj = Report_Audit.getAccessReportObj();
              listReport = reportObj.getData(badgeId, personId, companyId, divisionId, empId, categoryId, badgeStatus,wcType, wcData);

              ReportDataTable tableObj = new ReportDataTable();
              tableObj.Page = "1";
              tableObj.Records = listReport.Count().ToString();
              tableObj.Total = "2";
              tableObj.repdata = listReport;
              var jsonNew = new
              {
              report = tableObj
              };
              return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get()
        {
            List<ReportRow> listReport;
            Report_Audit reportObj = Report_Audit.getAccessReportObj();
            listReport = reportObj.getData("null", "null", "null", "null", "null", "null", "null", "null", "null");

            ReportDataTable tableObj = new ReportDataTable();
            tableObj.Page = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };
            return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get(String areaId,String categoryId,String doorId)
        {
            List<ReportRow> listReport;
            Report_DoorCategory reportObj = Report_DoorCategory.getAccessReportObj();
            listReport = reportObj.getData(areaId,categoryId,doorId);

            ReportDataTable tableObj = new ReportDataTable();
            tableObj.Page = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };
            return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get(String criteria, String top, String stDate, String stTime, String endDate, String endTime)
        {
            List<ReportRow> listReport;
            Report_TopSoundingAlarm reportObj = Report_TopSoundingAlarm.getTopSoundingAlarmReportObj();
            listReport = reportObj.getData(criteria,top,stDate,stTime,endDate,endTime);

            ReportDataTable tableObj = new ReportDataTable();
            tableObj.Page = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };
            return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get(String badgeId, String personId, String companyId, String divisionId, String empId, String status, String areaString, String stDate, String stTime,String endDate, String endTime,String days, String months,String wcType,String wcData)
        {
            List<ReportRow> listReport;
            Report_Activity reportObj = Report_Activity.getAccessReportObj();

            listReport = reportObj.getDataByFilter(badgeId, personId, companyId, divisionId, empId, status, areaString, stDate, stTime, endDate, endTime, days, months, wcType, wcData);

            ReportDataTable tableObj = new ReportDataTable();
            tableObj.Page = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };
            return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get(String facilityId, String alarmDesc, String inputDesc, String stDate, String endDate, String stTime, String endTime, String days, String months)
        {
            List<ReportRow> listReport;
            Report_AlarmDoor reportObj = Report_AlarmDoor.getAlarmDoorReportObj();

            listReport = reportObj.getData(facilityId,alarmDesc,inputDesc,stDate,endDate,stTime,endTime,days,months);

            ReportDataTable tableObj = new ReportDataTable();
            tableObj.Page = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };
            return Request.CreateResponse(HttpStatusCode.OK, jsonNew);
        }
        public HttpResponseMessage Get()
        {
            List <ReportRow> listReport;
            Report_Activity  reportObj = Report_Activity.getAccessReportObj();

            listReport = reportObj.getDataByFilter("null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null");

            ReportDataTable tableObj = new ReportDataTable();

            tableObj.Page    = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total   = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };

            return(Request.CreateResponse(HttpStatusCode.OK, jsonNew));
        }
        public HttpResponseMessage Get(String badgeId, String personId, String companyId, String divisionId, String empId, String status, String areaString, String stDate, String stTime, String endDate, String endTime, String days, String months, String wcType, String wcData)
        {
            List <ReportRow> listReport;
            Report_Activity  reportObj = Report_Activity.getAccessReportObj();

            listReport = reportObj.getDataByFilter(badgeId, personId, companyId, divisionId, empId, status, areaString, stDate, stTime, endDate, endTime, days, months, wcType, wcData);


            ReportDataTable tableObj = new ReportDataTable();

            tableObj.Page    = "1";
            tableObj.Records = listReport.Count().ToString();
            tableObj.Total   = "2";
            tableObj.repdata = listReport;
            var jsonNew = new
            {
                report = tableObj
            };

            return(Request.CreateResponse(HttpStatusCode.OK, jsonNew));
        }