public JsonResult GetExamDetail(string ApplicantID, string AttemptID) { //System.Threading.Thread.Sleep(5000); DataTable dtResult; //DreamJobsBAL DJBAL = new DreamJobsBAL(); ApplicantExamVM _ApplicantExamVM = new DJ_BAL.DreamJobsBAL().GetExamDetail(new ApplicantExamVM { ApplicantAttempt = new ApplicantExamAttempt { AttemptID = Convert.ToInt32(AttemptID), Applicant = new Applicant { ApplicantID = Convert.ToInt32(ApplicantID) } } }, out dtResult); string strPartialView = RenderPartialToStringExtensions.RenderPartialToString(this.ControllerContext, "_PartialExamDetail", _ApplicantExamVM); string strResultSummary = RenderPartialToStringExtensions.RenderPartialToString(this.ControllerContext, "_PartialExamResultSummary", dtResult); if (_ApplicantExamVM.ApplicantAttempt == null) { return(Json(new JsonReurnData { ReturnStatus = 0, ReturnMessage = "Detail could not fetched!", ReturnData = strPartialView }, JsonRequestBehavior.AllowGet)); } return(Json(new JsonReurnData { ReturnStatus = 1, ReturnMessage = "", ReturnData = strPartialView, ReturnData2 = strResultSummary }, JsonRequestBehavior.AllowGet)); }
public JsonResult DataUploadHistory(string JobID) { PartialViewLoader objPartialViewLoader = new PartialViewLoader(); List <QuestionPaper> lstCallHistory = new DJ_BAL.DreamJobsBAL().GetUploadedQuestionPapers(string.IsNullOrEmpty(JobID) ? 0 : Convert.ToInt32(JobID)); objPartialViewLoader.strPartialView = RenderPartialToStringExtensions.RenderPartialToString(this.ControllerContext, "_PartialDataUploadHistoryReportData", lstCallHistory); return(Json(objPartialViewLoader, JsonRequestBehavior.AllowGet)); //return PartialView("_PartialCallHistoryReport"); }
public JsonResult ExamSummary(string JobID, string DateFrom, string DateTo) { PartialViewLoader objPartialViewLoader = new PartialViewLoader(); DataSet ds = new DJ_BAL.DreamJobsBAL().GetExamSummary(string.IsNullOrEmpty(JobID) ? "0" : JobID, DateFrom, DateTo); if (ds.Tables.Count > 0) { objPartialViewLoader.strPartialView = RenderPartialToStringExtensions.RenderPartialToString(this.ControllerContext, "_PartialExamSummaryData", ds.Tables[0]); } return(Json(objPartialViewLoader, JsonRequestBehavior.AllowGet)); //return PartialView("_PartialCallHistoryReport"); }