public ActionResult ResultDetail(int?notifyId, int?personId) { if (notifyId == null || personId == null) { return(RedirectToAction("Result")); } ViewBag.NotifyId = notifyId; ViewBag.PersonId = personId; var notifyBll = new ViewExamNotifyBll(); var notify = notifyBll.QuerySingle(notifyId); var resultBll = new ExamRecordsBll(); var condition = string.Format("IsDelete=0 AND PersionId={0} AND ExamNotifyId={1}", personId, notifyId); var results = resultBll.QueryList(condition); if (notify == null || !results.Any()) { return(RedirectToAction("Result")); } ViewBag.Notify = notify; ViewBag.Results = results.ToList(); return(View()); }
public JsonResult GetNotifies() { var json = JqueryDataTableAjaxHelper.GetPageListJson( Request, (pageIndex, pageSize) => { var notifyBll = new ViewExamNotifyBll(); int totalCount; var list = notifyBll.QueryPageList(pageIndex, pageSize, "AddTime", true, out totalCount); return(new KeyValuePair <int, object>(totalCount, list)); }); return(Json(json)); }