Example #1
0
        //患者列表
        public ActionResult PatientList(string PatientId)
        {
            var user = Session["CurrentUser"] as UserAndRole;
            PatientListViewModel patientListView = new PatientListViewModel(user.UserId);
            _DS_PatientList = GetPatientListByDoctorId(user.UserId, 7);
            patientListView.AdvancedSearchEnable = "0";
            if (PatientId != null && PatientId != "")
            {
                patientListView.PatientId = PatientId;
            }

            //GetPatientsBySearchConditions()
            string patientId = patientListView.PatientId == null ? "" : patientListView.PatientId;
            string patientName = patientListView.PatientName == null ? "" : patientListView.PatientName;
            int genderType = Convert.ToInt32(patientListView.GenderSelected);
            int careLevel = Convert.ToInt32(patientListView.CareLevelSelected);
            string moduleSelected = patientListView.ModuleSelected == null ? "" : patientListView.ModuleSelected; ;
            int Status = Convert.ToInt32(patientListView.StatusSelected);
            patientListView.DoctorId = user.UserId;

            //从网页端筛选患者
            patientListView.PatientList = GetPatientListByConditions(patientId, patientName, genderType, careLevel, moduleSelected, Status, patientListView.DoctorId);
            return PartialView(patientListView);
        }
Example #2
0
        public ActionResult PatientListSearch(PatientListViewModel patientListView, FormCollection formCollection)
        {
            var user = Session["CurrentUser"] as UserAndRole;

            //GetPatientsBySearchConditions()
            string patientId = patientListView.PatientId == null ? "" : patientListView.PatientId;
            string patientName = patientListView.PatientName == null ? "" : patientListView.PatientName;
            int genderType = Convert.ToInt32(patientListView.GenderSelected);
            int careLevel = Convert.ToInt32(patientListView.CareLevelSelected);
            string moduleSelected = patientListView.ModuleSelected == null ? "" : patientListView.ModuleSelected; ;
            int Status = Convert.ToInt32(patientListView.StatusSelected);
            patientListView.DoctorId = user.UserId;

            //从网页端筛选患者
            patientListView.PatientList = GetPatientListByConditions(patientId, patientName, genderType, careLevel, moduleSelected, Status, patientListView.DoctorId);
            return PartialView("PatientList", patientListView);
        }
Example #3
0
 //健康专员患者列表
 public ActionResult HealthCoachPatientList(string Patient)
 {
     var user = Session["CurrentUser"] as UserAndRole;
     PatientListViewModel patientListView = new PatientListViewModel(user.UserId);
     return PartialView(patientListView);
 }
Example #4
0
        public ActionResult PatientListRefresh(PatientListViewModel patientListView, FormCollection formCollection)
        {
            var user = Session["CurrentUser"] as UserAndRole;

            //Get PatientList from database
            _DS_PatientList = GetPatientListByDoctorId(user.UserId);

            DataTable dt = new DataTable();
            //GetPatientsBySearchConditions()
            string patientId = patientListView.PatientId == null ? "" : patientListView.PatientId;
            string patientName = patientListView.PatientName == null ? "" : patientListView.PatientName;
            int genderType = Convert.ToInt32(patientListView.GenderSelected);
            int careLevel = Convert.ToInt32(patientListView.CareLevelSelected);
            string moduleSelected = patientListView.ModuleSelected == null ? "" : patientListView.ModuleSelected; ;
            int alertStatus = Convert.ToInt32(patientListView.AlertStatusSelected);
            patientListView.DoctorId = user.UserId;
            //从网页端筛选患者
            dt = GetPatientListByConditions(patientId, patientName, genderType, careLevel, moduleSelected, alertStatus, patientListView.DoctorId);
            patientListView.PatientList = this.InitialPatientList(dt);

            return PartialView("PatientList", patientListView);
        }
Example #5
0
        //患者列表
        public ActionResult PatientList()
        {
            var user = Session["CurrentUser"] as UserAndRole;
            PatientListViewModel patientListView = new PatientListViewModel(user.UserId);
            _DS_PatientList = GetPatientListByDoctorId(user.UserId);
            DataTable dt = new DataTable();
            if (_DS_PatientList.Tables.Count != 0)
            {
                //Default: Get Patients from Fisrt Module ZAM 2015-1-20
                dt = _DS_PatientList.Tables[0];
            }
            patientListView.AdvancedSearchEnable = "0";

            //GetPatientsBySearchConditions()
            string patientId = patientListView.PatientId == null ? "" : patientListView.PatientId;
            string patientName = patientListView.PatientName == null ? "" : patientListView.PatientName;
            int genderType = Convert.ToInt32(patientListView.GenderSelected);
            int careLevel = Convert.ToInt32(patientListView.CareLevelSelected);
            string moduleSelected = patientListView.ModuleSelected == null ? "" : patientListView.ModuleSelected; ;
            int alertStatus = Convert.ToInt32(patientListView.AlertStatusSelected);
            patientListView.DoctorId = user.UserId;

            //从网页端筛选患者
            dt = GetPatientListByConditions(patientId, patientName, genderType, careLevel, moduleSelected, alertStatus, patientListView.DoctorId);
            patientListView.PatientList = this.InitialPatientList(dt);
            return PartialView(patientListView);
        }