Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }