public void InitEveryThing()
        {
            this.HHAssistCheck = new HealthHousePhysicalAssistCheckBLL().GetModel(HealthHouseFactory.ID);
            this.HHModel       = new HealthHouseBLL().GetDataByID(HealthHouseFactory.ID);

            if (this.HHAssistCheck == null)
            {
                this.HHAssistCheck = new HealthHousePhysicalAssistCheckModel();
            }

            this.SimpleBinding(this.tbBIL, "BIL");
            this.SimpleBinding(this.tbBLD, "BLD");
            this.SimpleBinding(this.tbGLU, "GLU");
            this.SimpleBinding(this.tbKET, "KET");
            this.SimpleBinding(this.tbLEU, "LEU");
            this.SimpleBinding(this.tbNIT, "NIT");
            this.SimpleBinding(this.tbPH, "PH");
            this.SimpleBinding(this.tbPRO, "PRO");
            this.SimpleBinding(this.tbSG, "SG");
            this.SimpleBinding(this.tbUBG, "UBG");
            this.SimpleBinding(this.tbVC, "VC");

            CSingleItem item2 = new CSingleItem
            {
                Name    = "胸部X射线",
                Usual   = this.radxbxxpzc,
                Unusual = this.radxbxxpyc,
                Info    = this.txtxbxxpyc
            };

            this.CHESTX = item2;
            this.CHESTX.TransInfo(this.HHAssistCheck.CHESTX, this.HHAssistCheck.CHESTXEx);

            this.EveryThingIsOk = true;
        }
Beispiel #2
0
        public void InitEveryThing()
        {
            if (HealthHouseFactory.ID == 0) //新增加时
            {
                string checkDate = DateTime.Today.ToString("yyyy-MM-dd");
                this.dtpCheckDate.Value = DateTime.Today;
                // 取得当前日期是否有查体资料
                healthHouserModel = healthHouseBLL.GetData(this.Model.IDCardNo, checkDate);
            }
            else //查询已有数据
            {
                this.healthHouserModel = healthHouseBLL.GetDataByID(HealthHouseFactory.ID);
            }

            if (healthHouserModel == null)
            {
                healthHouserModel = new HealthHouseModel();

                this.healthHouserModel.IDCardNo   = this.Model.IDCardNo;
                this.healthHouserModel.Doctor     = ConfigHelper.GetNode("doctorName");
                this.healthHouserModel.CreateBy   = ConfigHelper.GetNode("doctor");
                this.healthHouserModel.CreateDate = new DateTime?(DateTime.Today);
            }
            else
            {
                HealthHouseFactory.ID   = this.healthHouserModel.ID;
                this.dtpCheckDate.Value = this.healthHouserModel.CheckDate.Value;
            }

            this.healthHouserModel.UpdataBy   = ConfigHelper.GetNode("doctor");
            this.healthHouserModel.UpdateDate = new DateTime?(DateTime.Today);

            this.bindingManager = new SimpleBindingManager <HealthHouseModel>(this.inputRanges, this.inputrange_str,
                                                                              this.healthHouserModel);

            this.SimpleBindingC(this.txtDoctor, "Doctor", false);
            this.bindingManager.SimpleBinding(this.txtBMI, "BMI", true);
            this.bindingManager.SimpleBinding(this.txtHeight, "Height", true);
            this.bindingManager.SimpleBinding(this.txtLeftHeight, "LeftHeight", true);
            this.bindingManager.SimpleBinding(this.txtLeftPre, "LeftPre", true);
            this.bindingManager.SimpleBinding(this.txtRightHeight, "RightHeight", true);
            this.bindingManager.SimpleBinding(this.txtRightPre, "RightPre", true);
            this.bindingManager.SimpleBinding(this.txtPulseRate, "PulseRate", true);
            this.bindingManager.SimpleBinding(this.txtWeight, "Weight", true);
            this.bindingManager.SimpleBinding(this.txtBloodOxygen, "BloodOxygen", true);
            this.bindingManager.SimpleBinding(this.txtleftsl, "LeftView", true);
            this.bindingManager.SimpleBinding(this.txtrightsl, "RightView", true);
            this.bindingManager.SimpleBinding(this.txtjzleft, "LeftEyecorrect", true);
            this.bindingManager.SimpleBinding(this.txtjzrightsl, "RightEyecorrect", true);
            this.bindingManager.SimpleBinding(this.tbFat, "Fat", true);
            this.bindingManager.SimpleBinding(this.tbWater, "Water", true);
            this.bindingManager.SimpleBinding(this.tbMuscle, "Muscle", true);
            this.bindingManager.SimpleBinding(this.tbSkeleton, "Skeleton", true);
            this.bindingManager.SimpleBinding(this.tbCalorie, "Calorie", true);
            this.txtName.Text = this.Model.CustomerName;

            this.EveryThingIsOk = true;
        }
Beispiel #3
0
        /// <summary>
        /// 新增骨密度检测记录表
        /// </summary>
        /// <param name="dtInfo"></param>
        /// <returns></returns>
        public int AddBoneBaseInfo(HealthHouseModel model)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(@"INSERT INTO 
                            [kr_patient_table]
                            (
                                [PatientID]
                                ,[Name]
                                ,[Gender]
                                ,[BirthDay]
                                ,[Phone]
                                ,[DeleteFlag]
                                ,[Reservation]
                                ,[IdentityType]
                                ,[IdentityNumber]
                                ,[Race]
                                ,[Nation]
                            ) 
                            VALUES
                            (
                                @PatientID
                                ,@Name
                                ,@Gender
                                ,@BirthDay
                                ,@Phone
                                ,'0'
                                ,'0'
                                ,'1'
                                ,@IdentityNumber
                                ,'0'
                                ,'0'   
                            ) ");

            model.Sex = model.Sex.Equals("1") ? "0" : "1";

            // 判断病历号是否已存在
            if (!CheckBoneBaseInfo(model.ID.ToString()))
            {
                return(-1);
            }

            List <SqlParameter> cmdParms = new List <SqlParameter>();

            cmdParms.Add(new SqlParameter("@PatientID", model.ID));
            cmdParms.Add(new SqlParameter("@Name", model.CustomerName));
            cmdParms.Add(new SqlParameter("@Gender", model.Sex));
            cmdParms.Add(new SqlParameter("@BirthDay", model.Birthday));
            cmdParms.Add(new SqlParameter("@Phone", model.Phone));
            cmdParms.Add(new SqlParameter("@IdentityNumber", model.IDCardNo));

            return(SQLHelper.ExecuteNonQuery(builder.ToString(), cmdParms.ToArray()));
        }
Beispiel #4
0
        public bool SaveModelToDB()
        {
            bool result = true;

            try
            {
                HealthHouseModel houseModelTem = healthHouseBLL.GetData(this.Model.IDCardNo, Convert.ToString(this.dtpCheckDate.Value));
                if (HealthHouseFactory.ID > 0)                                              //修改时
                {
                    if (houseModelTem != null && HealthHouseFactory.ID != houseModelTem.ID) //修改的体检日期下有数据,删除原来数据,在更新此次数据
                    {
                        healthHouseBLL.Delete(houseModelTem.ID);
                    }
                    healthHouseBLL.Update(healthHouserModel);//更新数据
                }
                else//新增加时
                {
                    if (houseModelTem == null) //此日期下无数据
                    {
                        healthHouserModel.ID  = healthHouseBLL.Insert(healthHouserModel);
                        HealthHouseFactory.ID = healthHouserModel.ID;
                    }
                    else
                    {
                        healthHouseBLL.Update(healthHouserModel);//更新数据
                    }
                }
            }
            catch (Exception ex)
            {
                result = false;
                throw ex;
            }

            return(result);
        }
Beispiel #5
0
 /// <summary>
 /// 修改健康小屋基本信息
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int Update(HealthHouseModel model)
 {
     return(dal.Update(model));
 }
Beispiel #6
0
 /// <summary>
 /// 新增健康小屋基本信息
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int Insert(HealthHouseModel model)
 {
     return(dal.Insert(model));
 }
Beispiel #7
0
 /// <summary>
 /// 新增骨密度检测记录表
 /// </summary>
 /// <param name="dtInfo"></param>
 /// <returns></returns>
 public int AddBoneBaseInfo(HealthHouseModel model)
 {
     return(dal.AddBoneBaseInfo(model));
 }
Beispiel #8
0
        /// <summary>
        /// 修改健康小屋基本信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Update(HealthHouseModel model)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(@"UPDATE ARCHIVE_HEALTH_HOUSE
                                     SET                                         
                                        CheckDate = @CheckDate 
                                        ,BloodOxygen = @BloodOxygen 
                                        ,PulseRate = @PulseRate 
                                        ,Height = @Height 
                                        ,Weight = @Weight 
                                        ,BMI = @BMI 
                                        ,LeftPre = @LeftPre 
                                        ,LeftHeight = @LeftHeight 
                                        ,RightPre = @RightPre 
                                        ,RightHeight = @RightHeight 
                                        ,Doctor = @Doctor 
                                        ,UpdateDate = @UpdateDate 
                                        ,UpdataBy = @UpdataBy
                                        ,LeftView = @LeftView 
                                        ,RightView = @RightView 
                                        ,LeftEyecorrect = @LeftEyecorrect 
                                        ,RightEyecorrect = @RightEyecorrect 
                                        ,Fat = @Fat 
                                        ,Water = @Water 
                                        ,Muscle = @Muscle 
                                        ,Skeleton = @Skeleton 
                                        ,Calorie = @Calorie 
                                       WHERE ID=@ID ");

            MySqlParameter[] cmdParms = new MySqlParameter[] {
                new MySqlParameter("@ID", MySqlDbType.Int32),
                new MySqlParameter("@CheckDate", MySqlDbType.Date),
                new MySqlParameter("@BloodOxygen", MySqlDbType.String, 100),
                new MySqlParameter("@PulseRate", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Height", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Weight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@BMI", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftPre", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftHeight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightPre", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightHeight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Doctor", MySqlDbType.String, 100),
                new MySqlParameter("@UpdateDate", MySqlDbType.Date),
                new MySqlParameter("@UpdataBy", MySqlDbType.String, 100),
                new MySqlParameter("@LeftView", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightView", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftEyecorrect", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightEyecorrect", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Fat", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Water", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Muscle", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Skeleton", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Calorie", MySqlDbType.Decimal, 20)
            };
            cmdParms[0].Value  = model.ID;
            cmdParms[1].Value  = model.CheckDate;
            cmdParms[2].Value  = model.BloodOxygen;
            cmdParms[3].Value  = model.PulseRate;
            cmdParms[4].Value  = model.Height;
            cmdParms[5].Value  = model.Weight;
            cmdParms[6].Value  = model.BMI;
            cmdParms[7].Value  = model.LeftPre;
            cmdParms[8].Value  = model.LeftHeight;
            cmdParms[9].Value  = model.RightPre;
            cmdParms[10].Value = model.RightHeight;
            cmdParms[11].Value = model.Doctor;
            cmdParms[12].Value = model.UpdateDate;
            cmdParms[13].Value = model.UpdataBy;
            cmdParms[14].Value = model.LeftView;
            cmdParms[15].Value = model.RightView;
            cmdParms[16].Value = model.LeftEyecorrect;
            cmdParms[17].Value = model.RightEyecorrect;
            cmdParms[18].Value = model.Fat;
            cmdParms[19].Value = model.Water;
            cmdParms[20].Value = model.Muscle;
            cmdParms[21].Value = model.Skeleton;
            cmdParms[22].Value = model.Calorie;

            object single = MySQLHelper.ExecuteSql(builder.ToString(), cmdParms);

            if (single == null)
            {
                return(0);
            }

            return(Convert.ToInt32(single));
        }
Beispiel #9
0
        /// <summary>
        /// 新增健康小屋基本信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Insert(HealthHouseModel model)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(@"INSERT INTO ARCHIVE_HEALTH_HOUSE
                                     (
                                         IDCardNo
                                        ,CheckDate
                                        ,BloodOxygen
                                        ,PulseRate
                                        ,Height
                                        ,Weight
                                        ,BMI
                                        ,LeftPre
                                        ,LeftHeight
                                        ,RightPre
                                        ,RightHeight
                                        ,Doctor
                                        ,CreateDate
                                        ,CreateBy
                                        ,UpdateDate
                                        ,UpdataBy
                                        ,LeftView
                                        ,RightView
                                        ,LeftEyecorrect
                                        ,RightEyecorrect
                                        ,Fat
                                        ,Water
                                        ,Muscle
                                        ,Skeleton
                                        ,Calorie
                                    )
                                    VALUES
                                     (
                                        @IDCardNo
                                        ,@CheckDate
                                        ,@BloodOxygen
                                        ,@PulseRate
                                        ,@Height
                                        ,@Weight
                                        ,@BMI
                                        ,@LeftPre
                                        ,@LeftHeight
                                        ,@RightPre
                                        ,@RightHeight
                                        ,@Doctor
                                        ,@CreateDate
                                        ,@CreateBy
                                        ,@UpdateDate
                                        ,@UpdataBy
                                        ,@LeftView
                                        ,@RightView
                                        ,@LeftEyecorrect
                                        ,@RightEyecorrect
                                        ,@Fat
                                        ,@Water
                                        ,@Muscle
                                        ,@Skeleton
                                        ,@Calorie
                                     ) ");
            builder.Append(";SELECT @@IDENTITY");

            MySqlParameter[] cmdParms = new MySqlParameter[] {
                new MySqlParameter("@IDCardNo", MySqlDbType.String, 18),
                new MySqlParameter("@CheckDate", MySqlDbType.Date),
                new MySqlParameter("@BloodOxygen", MySqlDbType.String, 100),
                new MySqlParameter("@PulseRate", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Height", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Weight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@BMI", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftPre", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftHeight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightPre", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightHeight", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Doctor", MySqlDbType.String, 100),
                new MySqlParameter("@CreateDate", MySqlDbType.Date),
                new MySqlParameter("@CreateBy", MySqlDbType.String, 100),
                new MySqlParameter("@UpdateDate", MySqlDbType.Date),
                new MySqlParameter("@UpdataBy", MySqlDbType.String, 100),
                new MySqlParameter("@LeftView", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightView", MySqlDbType.Decimal, 20),
                new MySqlParameter("@LeftEyecorrect", MySqlDbType.Decimal, 20),
                new MySqlParameter("@RightEyecorrect", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Fat", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Water", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Muscle", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Skeleton", MySqlDbType.Decimal, 20),
                new MySqlParameter("@Calorie", MySqlDbType.Decimal, 20)
            };
            cmdParms[0].Value  = model.IDCardNo;
            cmdParms[1].Value  = model.CheckDate;
            cmdParms[2].Value  = model.BloodOxygen;
            cmdParms[3].Value  = model.PulseRate;
            cmdParms[4].Value  = model.Height;
            cmdParms[5].Value  = model.Weight;
            cmdParms[6].Value  = model.BMI;
            cmdParms[7].Value  = model.LeftPre;
            cmdParms[8].Value  = model.LeftHeight;
            cmdParms[9].Value  = model.RightPre;
            cmdParms[10].Value = model.RightHeight;
            cmdParms[11].Value = model.Doctor;
            cmdParms[12].Value = model.CreateDate;
            cmdParms[13].Value = model.CreateBy;
            cmdParms[14].Value = model.UpdateDate;
            cmdParms[15].Value = model.UpdataBy;
            cmdParms[16].Value = model.LeftView;
            cmdParms[17].Value = model.RightView;
            cmdParms[18].Value = model.LeftEyecorrect;
            cmdParms[19].Value = model.RightEyecorrect;
            cmdParms[20].Value = model.Fat;
            cmdParms[21].Value = model.Water;
            cmdParms[22].Value = model.Muscle;
            cmdParms[23].Value = model.Skeleton;
            cmdParms[24].Value = model.Calorie;

            object single = MySQLHelper.GetSingle(builder.ToString(), cmdParms);

            if (single == null)
            {
                return(0);
            }

            return(Convert.ToInt32(single));
        }
Beispiel #10
0
        public void InitEveryThing()
        {
            HealthHouseModel houseModel = new HealthHouseModel();

            if (HealthAssessFactory.ID == 0)//新增时
            {
                houseModel             = healthHouseBLL.GetMaxData(this.Model.IDCardNo);
                HealthAssessFactory.ID = houseModel.ID;
            }
            else //查询时
            {
                houseModel = healthHouseBLL.GetDataByID(HealthAssessFactory.ID);
            }

            this.AssessModel = new HealthAssessModel {
                IDCardNo = this.Model.IDCardNo
            };
            List <HealthOverviewSetModel> SetList = new List <HealthOverviewSetModel>();

            SetList = new HealthOverviewSetBLL().GetList(" and Type in (1,2,3,4) ");

            if (houseModel != null)
            {
                HealthAssessFactory.ID     = houseModel.ID;
                this.AssessModel.PID       = houseModel.ID;
                this.AssessModel.CheckDate = houseModel.CheckDate;

                this.lbBMI.Text     = houseModel.BMI.ToString();         //体质指数
                this.lbXueYa.Text   = "收缩压:" + houseModel.LeftHeight.ToString();
                this.lbxinlv.Text   = houseModel.PulseRate.ToString();   //心率
                this.lbxueyang.Text = houseModel.BloodOxygen.ToString(); //血氧

                if (SetList == null)
                {
                    this.AssessModel.BasicTest = "";
                    this.AssessModel.Blood     = "";
                    this.AssessModel.PulseRate = "";
                    this.AssessModel.Oxygen    = "";
                    this.AssessModel.Urine     = "";
                }
                else
                {
                    foreach (HealthOverviewSetModel hs in SetList)
                    {
                        if (hs.Type == "1")//体质指数
                        {
                            this.lbBMI.Text += "  参考范围:" + hs.minValues + " ~ " + hs.maxValues;
                            int res = Compare(houseModel.BMI.ToString(), hs.maxValues, hs.minValues);
                            if (res == 2 || res == 1)
                            {
                                this.lbBMI.ForeColor = Color.Red;
                            }
                        }
                        else if (hs.Type == "2")//血压
                        {
                            string[] Hmax = hs.maxValues.Split('/');
                            string[] Hmin = hs.minValues.Split('/');
                            bool     flag = false;

                            if (Hmax.Length == 2)
                            {
                                this.lbXueYa.Text += "  参考范围:" + Hmax[0] + " ~  " + Hmax[1];
                                if (Compare(houseModel.LeftHeight.ToString(), Hmax[0], Hmax[1]) == 1)
                                {
                                    this.lbXueYa.ForeColor = Color.Red;
                                }
                            }
                            this.lbXueYa.Text += "    舒张压:" + houseModel.LeftPre.ToString() + "   ";
                            if (Hmin.Length == 2)
                            {
                                this.lbXueYa.Text += "  参考范围:" + Hmin[0] + " ~  " + Hmin[1];
                                if (Compare(houseModel.LeftPre.ToString(), Hmin[0], Hmin[1]) == 2)
                                {
                                    this.lbXueYa.ForeColor = Color.Red;
                                }
                            }
                        }
                        else if (hs.Type == "3")//心率
                        {
                            this.lbxinlv.Text += "  参考范围:" + hs.maxValues + " ~  " + hs.minValues;
                            int res = Compare(houseModel.PulseRate.ToString(), hs.maxValues, hs.minValues);
                            if (res == 2 || res == 1)
                            {
                                this.lbxinlv.ForeColor = Color.Red;
                            }
                        }
                        else if (hs.Type == "4")//血氧
                        {
                            this.lbxueyang.Text += "  参考范围:" + hs.maxValues + " ~  " + hs.minValues;
                            int res = Compare(houseModel.BloodOxygen.ToString(), hs.maxValues, hs.minValues);

                            if (res == 2 || res == 1)
                            {
                                this.lbxueyang.ForeColor = Color.Red;
                                this.AssessModel.Oxygen  = "偏低";
                            }
                        }
                    }
                }
                HealthHousePhysicalAssistCheckModel HHAssistCheck = new HealthHousePhysicalAssistCheckBLL().GetModel(houseModel.ID);//辅助检查表
                if (HHAssistCheck != null)
                {
                    if (HHAssistCheck.CHESTX == "1")
                    {
                        this.lbXiongBu.Text = "正常";
                    }
                    else if (HHAssistCheck.CHESTX == "2")
                    {
                        this.lbXiongBu.ForeColor = Color.Red;
                        this.lbXiongBu.Text      = "异常";
                    }
                    if (!string.IsNullOrEmpty(HHAssistCheck.PRO) &&
                        !string.IsNullOrEmpty(HHAssistCheck.GLU) &&
                        !string.IsNullOrEmpty(HHAssistCheck.KET) &&
                        !string.IsNullOrEmpty(HHAssistCheck.BLD))
                    {
                        if (HHAssistCheck.PRO.Contains("+") ||
                            HHAssistCheck.GLU.Contains("+") ||
                            HHAssistCheck.KET.Contains("+") ||
                            HHAssistCheck.BLD.Contains("+"))
                        {
                            this.lbniao.ForeColor = Color.Red;
                            this.lbniao.Text      = "异常";
                        }
                        else
                        {
                            this.lbniao.Text = "正常";
                        }
                    }
                }
                HealthHouseBCHAOModel BchaoModel = new HealthHouseBCHAOBLL().GetModel(houseModel.ID);//B超表
                if (BchaoModel != null)
                {
                    if (BchaoModel.BCHAO == "1")
                    {
                        this.lbBchao.Text = "正常";
                    }
                    else if (BchaoModel.BCHAO == "2")
                    {
                        this.lbBchao.ForeColor = Color.Red;
                        this.lbBchao.Text      = "异常";
                    }
                }
                HealthHouseEcgModel EcgModel = new HealthHouseEcgBLL().GetModel(houseModel.ID);//心电
                if (EcgModel != null)
                {
                    if (EcgModel.ECG == "1")
                    {
                        this.lbEcg.Text = "正常";
                    }
                    else if (EcgModel.ECG == "2")
                    {
                        this.lbEcg.ForeColor = Color.Red;
                        this.lbEcg.Text      = "异常";
                    }
                }
                HHCardiovascularModel VascularModel = new HHCardiovascularBLL().GetData(this.Model.IDCardNo, houseModel.ID);//心血管
                if (VascularModel != null)
                {
                    if (VascularModel.Result == "1")
                    {
                        this.lbVascular.Text = "正常";
                    }
                    else if (VascularModel.Result == "2")
                    {
                        this.lbVascular.ForeColor = Color.Red;
                        this.lbVascular.Text      = "异常";
                    }
                }
                HHBoneModel BoneModel = new HHBoneBLL().GetData(this.Model.IDCardNo, houseModel.ID);//骨密度
                if (BoneModel != null)
                {
                    if (BoneModel.Result == "1")
                    {
                        this.lbBone.Text = "正常";
                    }
                    else if (BoneModel.Result == "2")
                    {
                        this.lbBone.ForeColor = Color.Red;
                        this.lbBone.Text      = "异常";
                    }
                }
                HHLungModel LungModel = new HHLungBLL().GetData(this.Model.IDCardNo, houseModel.ID);//肺功能
                if (LungModel != null)
                {
                    if (LungModel.Result == "1")
                    {
                        this.lbLung.Text = "正常";
                    }
                    else if (LungModel.Result == "2")
                    {
                        this.lbLung.ForeColor = Color.Red;
                        this.lbLung.Text      = "异常";
                    }
                }
                HealthHouseMediPhyModel MedModel = new HealthHouseMediPhyBLL().GetModel(houseModel.ID);//中医体质类型
                if (MedModel != null)
                {
                    string strMed = "";
                    if (!string.IsNullOrEmpty(MedModel.Mild))
                    {
                        strMed += "平和质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.Faint))
                    {
                        strMed += "气虚质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.Yang))
                    {
                        strMed += "阳虚质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.Yin))
                    {
                        strMed += "阴虚质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.PhlegmDamp))
                    {
                        strMed += "痰湿质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.Muggy))
                    {
                        strMed += "湿热质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.BloodStasis))
                    {
                        strMed += "血瘀质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.QiConstraint))
                    {
                        strMed += "气郁质,";
                    }
                    if (!string.IsNullOrEmpty(MedModel.Characteristic))
                    {
                        strMed += "特兼质,";
                    }
                    if (strMed != "")
                    {
                        this.lbMed.Text = strMed.Remove(strMed.Length - 1, 1);
                    }
                }
            }
            else
            {
                MessageBox.Show("无体检信息,请先做体检!");
                return;
            }
            //SimpleBinding(this.lbBMI, "BasicTest");
            //SimpleBinding(this.lbData, "CheckDate");
            //SimpleBinding(this.lbXueYa, "Blood");
            //SimpleBinding(this.lbBchao, "BSuper");
            //SimpleBinding(this.lbXiongBu, "ChestX");
            //SimpleBinding(this.lbEcg, "ECG");
            //SimpleBinding(this.lbVascular, "Cardiovascular");
            //SimpleBinding(this.lbBone, "Bone");
            //SimpleBinding(this.lbLung, "Lung");
            //SimpleBinding(this.lbMed, "TCMConstitution");
            //SimpleBinding(this.lbxinlv, "PulseRate");
            //SimpleBinding(this.lbxueyang, "Oxygen");
            //SimpleBinding(this.lbniao, "Urine");
            this.EveryThingIsOk = true;
        }