/// <summary> /// 显示会诊病例列表,只显示公开状态(已审核&已关闭)的项目 /// </summary> /// <returns></returns> public ActionResult Index() { ViewBag.CurrentUser = CurrentUser; var list = PatientCaseMgr.GetPatientCases().Where(t => t.status == PatientCaseStatusType.疑难病例).ToList(); return(View(list)); }
/// <summary> /// 显示会诊病例列表,只显示公开状态(已审核&已关闭)的项目 /// </summary> /// <returns></returns> public ActionResult Index() { ViewBag.CurrentUser = CurrentUser; //var list = PatientCaseMgr.GetPatientCases().Where(t => t.status == PatientCaseStatusType.已审核 || t.status == PatientCaseStatusType.已关闭 || t.status == PatientCaseStatusType.待审核).ToList(); var list = PatientCaseMgr.GetPatientCases().Where(t => t.status != PatientCaseStatusType.草稿).ToList(); return(View(list)); }
public ActionResult CaseList(int tab) { ViewBag.CurrentUser = CurrentUser; //var list = PatientCaseMgr.GetPatientCases().Where(t => t.status == PatientCaseStatusType.已审核 || t.status == PatientCaseStatusType.已关闭 || t.status == PatientCaseStatusType.待审核 ).ToList(); var list = PatientCaseMgr.GetPatientCases().Where(t => t.status != PatientCaseStatusType.草稿).ToList(); switch (tab) { case 1: list = list.Where(t => t.owner_id == CurrentUser.id).ToList(); break; case 2: list = list.Where(t => t.status == PatientCaseStatusType.已审核 || t.status == PatientCaseStatusType.已关闭).ToList(); list = list.Where(t => t.patientcase_conclusion.Any(c => c.user_id == CurrentUser.id)).ToList(); break; case 3: list = list.Where(t => t.status == PatientCaseStatusType.已审核 || t.status == PatientCaseStatusType.已关闭).ToList(); break; } return(View(new { List = list, Tab = tab })); }