//警报记录 public ActionResult AlertList() { var user = Session["CurrentUser"] as UserAndRole; AlertListViewModel alertListView = new AlertListViewModel(user.UserId); _DS_AlertList = GetAlertListByDoctorId(user.UserId); ////Default: GetAlertsBySearchConditions() //默认显示“未处理”警报记录 ZAM 2014-12-22 DataTable dt = new DataTable(); if (_DS_AlertList.Tables.Count != 0) { dt = SelectAlertsfuzzy(_DS_AlertList.Tables[0], "", "", 1); } alertListView.AlertRecordList = InitialAlertList(dt); alertListView.AlertStatusSelected = "1"; return PartialView(alertListView); }
public ActionResult AlertListRefresh(AlertListViewModel alertListView, FormCollection formCollection) { var user = Session["CurrentUser"] as UserAndRole; DataTable dt = new DataTable(); //Get AlertList from database _DS_AlertList = GetAlertListByDoctorId(user.UserId); //GetAlertsBySearchConditions() string patientId = alertListView.PatientId == null ? "" : alertListView.PatientId; string patientName = alertListView.PatientName == null ? "" : alertListView.PatientName; int processFlag = Convert.ToInt32(alertListView.AlertStatusSelected); alertListView.DoctorId = user.UserId; //DataTable dt = new DataTable(); //从网页端筛选警报 if (_DS_AlertList.Tables.Count != 0) { dt = SelectAlertsfuzzy(_DS_AlertList.Tables[0], patientId, patientName, processFlag); } alertListView.AlertRecordList = InitialAlertList(dt); return PartialView("AlertList", alertListView); }