Пример #1
0
 // GET: /PatientHome/PatientAlert/
 public ActionResult PatientAlert(string piUserId)
 {
     if (piUserId == null)
     {
         var user = Session["CurrentUser"] as UserAndRole;
         piUserId = user.UserId;
     }
     PatientAlertViewModel PatientAlertViewData = new PatientAlertViewModel();
     PatientAlertViewData.UserId = piUserId;//TreatmentListData.UserId = piUserId;
     OtherCs.TrnFunctions.GetTrnList(_ServicesSoapClient, ref PatientAlertInfoList, ref PatientAlertViewData, false);
     return View(PatientAlertViewData);
 }
Пример #2
0
 public ActionResult PatientAlert(PatientAlertViewModel AlertViewData)
 {
     var user = Session["CurrentUser"] as UserAndRole;
     PatientAlertViewData.AlertStatusSelected = AlertViewData.AlertStatusSelected;
     OtherCs.TrnFunctions.GetTrnList(_ServicesSoapClient, ref PatientAlertInfoList, ref AlertViewData, true);
     return View(AlertViewData);
 }
Пример #3
0
        public static void GetTrnList(ServicesSoapClient _ServicesSoapClient, ref DataTable PatientAlertInfoList, ref PatientAlertViewModel Trn, bool flag)
        {
            Trn.AlertList.Clear();
            Trn.AlertList = new List<AlertInfo>();
            if (flag == false)
            {
                DataSet PatientAlertDS = new DataSet();
                //DataTable PatientAlertInfoList = new DataTable();
                PatientAlertDS = _ServicesSoapClient.GetTrnAlertRecordList(Trn.UserId);
                PatientAlertInfoList = PatientAlertDS.Tables[0];
            }
            int processFlag = Convert.ToInt32(Trn.AlertStatusSelected);
            DataTable dt = new DataTable();
            dt = OtherCs.TrnFunctions.SelectAlerts(PatientAlertInfoList, processFlag);
            foreach (DataRow PatientAlertInfoListRow in dt.Rows)
            {
                AlertInfo AlertInfoItem = new AlertInfo();
                AlertInfoItem.UserId = Trn.UserId;
                AlertInfoItem.SortNo = Convert.ToInt32(PatientAlertInfoListRow["SortNo"]);
                AlertInfoItem.AlertTypeName = PatientAlertInfoListRow["AlertTypeName"].ToString();
                AlertInfoItem.AlertItemName = PatientAlertInfoListRow["AlertItem"].ToString();
                AlertInfoItem.AlertDateTime = PatientAlertInfoListRow["AlertDateTime"].ToString();
                AlertInfoItem.ProcessFlag = Convert.ToInt32(PatientAlertInfoListRow["ProcessFlag"]);

                Trn.AlertList.Add(AlertInfoItem);
            }
        }