Exemplo n.º 1
0
        public ActionResult TracerComplianceDetails([DataSourceRequest] DataSourceRequest request, SearchER search)
        {
            var tcService = new ERComplianceByTracer();

            DataSourceResult result = tcService.TracerComplianceDetails(request, search);

            if (result.Errors != null && result.Errors.ToString() != "")
            {
                ModelState.AddModelError("Error", result.Errors.ToString());
            }

            var val = Json(result, JsonRequestBehavior.AllowGet);

            val.MaxJsonLength = int.MaxValue;

            return(val);
        }
Exemplo n.º 2
0
        public ActionResult TracerComplianceHeatMap([DataSourceRequest] DataSourceRequest request, SearchER search)
        {
            /*
             * ERSearchInputService reportservice = new ERSearchInputService();
             * var tcList = reportservice.GetUHSTracersList(search.SelectedSiteIDs, search.ProgramIDs).TracersLists.ToList();
             * tcList.RemoveAt(0);
             * ViewBag.Header = tcList.Where(x=>x.TracerCategoryID == tracerCategoryID).Select(x => x.TracerCustomName).Distinct().ToList();
             */
            var tcService           = new ERComplianceByTracer();
            DataSourceResult result = tcService.TracerComplianceHeatMap(request, search);

            if (result.Errors != null && result.Errors.ToString() != "")
            {
                ModelState.AddModelError("Error", result.Errors.ToString());
            }
            var val = Json(result, JsonRequestBehavior.AllowGet);

            val.MaxJsonLength = int.MaxValue;

            return(val);
        }