Ejemplo n.º 1
0
        //首页-基本信息和tab
        public ActionResult Index(string PatientId, string TabNo)
        {
            //PatientId = "P4444";
            Session["PatientId"] = PatientId;
            ServiceReference.PatientBasicInfo pbi = _ServicesSoapClient.GetPatBasicInfo(PatientId);  //获取基本信息

            PatientBasicInfoViewModel pbiModel = new PatientBasicInfoViewModel();

            pbiModel.PatientBasicInfo.UserId      = pbi.UserId;
            pbiModel.PatientBasicInfo.UserName    = pbi.UserName;
            pbiModel.PatientBasicInfo.Gender      = pbi.Gender;
            pbiModel.PatientBasicInfo.Age         = Convert.ToInt32(pbi.Age);
            pbiModel.PatientBasicInfo.BloodType   = pbi.BloodType;
            pbiModel.PatientBasicInfo.Module      = pbi.Module;
            pbiModel.PatientBasicInfo.AlertNumber = _ServicesSoapClient.GetUntreatedAlertAmount(PatientId);   //获取警报数
            ViewBag.TabNo = TabNo;
            return(View(pbiModel));
        }
Ejemplo n.º 2
0
        public ActionResult PatientBasicInfo()
        {
            //PatientId = "P4444";
            string PatientId = Session["PatientId"] as String;

            ServiceReference.PatientBasicInfo pbi = _ServicesSoapClient.GetPatBasicInfo(PatientId);  //获取基本信息

            PatientBasicInfoViewModel pbiModel = new PatientBasicInfoViewModel();

            pbiModel.PatientBasicInfo.UserId        = pbi.UserId;
            pbiModel.PatientBasicInfo.UserName      = pbi.UserName;
            pbiModel.PatientBasicInfo.Gender        = pbi.GenderText;
            pbiModel.PatientBasicInfo.Age           = Convert.ToInt32(pbi.Age);
            pbiModel.PatientBasicInfo.BloodType     = pbi.BloodTypeText;
            pbiModel.PatientBasicInfo.InsuranceType = pbi.InsuranceTypeText;
            pbiModel.PatientBasicInfo.Module        = pbi.Module;
            pbiModel.PatientBasicInfo.AlertNumber   = _ServicesSoapClient.GetUntreatedAlertAmount(PatientId); //获取警报数
            return(View(pbiModel));
        }