Exemplo n.º 1
0
        public void InitEveryThing()
        {
            if (HealthGuideFactory.ViewState == "修改")
            {
                // 获取指导信息
                HealthHouseGuideModel guideModel = guideBll.GetHealthGuideByIdCardNo(HealthGuideFactory.ID);

                this.lbName.Text        = guideModel.CustomerName;
                this.lbData.Text        = guideModel.CheckDate.Value.ToString("yyyy-MM-dd");
                this.lblAge.Text        = timeParser.GetAge(guideModel.Birthday);
                this.lblSex.Text        = StringPlus.GetSex(guideModel.Sex);
                this.txtSummary.Text    = guideModel.Summary;
                this.txtHealthGuid.Text = guideModel.HealthGuid;
                this.txtMedGuid.Text    = guideModel.MedGuid;
            }
            else
            {
                // 获取病人是否有健康指导
                HealthHouseModel     houseModel = new HealthHouseBLL().GetMaxData(this.Model.IDCardNo);
                RecordsBaseInfoModel baseInfo   = new RecordsBaseInfoBLL().GetModel(this.Model.IDCardNo); // 体检人基本信息

                // 获取体检标准值
                List <HealthOverviewSetModel> SetList     = new List <HealthOverviewSetModel>();
                HealthOverviewSetBLL          OverViewBll = new HealthOverviewSetBLL();
                SetList = OverViewBll.GetList(" and Type in (1,2,3,4,5,6,7,8,9,10,11)");
                HealthGuideFactory.PID = houseModel.ID; // 新增获取体检ID赋值给指导PID

                if (houseModel != null && baseInfo != null)
                {
                    HealthAssessFactory.ID = houseModel.ID;
                    this.lbName.Text       = baseInfo.CustomerName;
                    this.lbData.Text       = houseModel.CheckDate.Value.ToString("yyyy-MM-dd");
                    this.lblAge.Text       = timeParser.GetAge(baseInfo.Birthday);
                    this.lblSex.Text       = StringPlus.GetSex(baseInfo.Sex);

                    #region 体检小结/健康指导

                    if (SetList != null)
                    {
                        foreach (HealthOverviewSetModel hs in SetList)
                        {
                            #region 基本体检

                            if (hs.Type == "1")// 体质指数
                            {
                                // 对比体检数值是否正常
                                int res = Compare(houseModel.BMI.ToString(), hs.maxValues, hs.minValues);

                                if (res == 1 || res == 2)
                                {
                                    // 数据类型 返回偏高、低异常信息
                                    HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=1 ");

                                    if (res == 1) // 偏高
                                    {
                                        txtSummary.Text += "体质指数:偏高\r\n";
                                        if (StringPlus.toString(model.MaxEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "体质指数:" + model.MaxEx + "\r\n";
                                        }
                                    }
                                    else if (res == 2) // 偏低
                                    {
                                        txtSummary.Text += "体质指数:偏低\r\n";
                                        if (StringPlus.toString(model.MinEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "体质指数:" + model.MinEx + "\r\n";
                                        }
                                    }
                                }
                            }
                            else if (hs.Type == "2")// 血压
                            {
                                string[] Hmax = hs.maxValues.Split('/');
                                string[] Hmin = hs.minValues.Split('/');

                                // 数据类型 返回偏高、低异常信息
                                HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=2 ");

                                if (Hmax.Length == 2)  // 高血范围
                                {
                                    if (Compare(houseModel.LeftHeight.ToString(), Hmax[0], Hmax[1]) == 1)
                                    {
                                        txtSummary.Text += "高血压:偏高\r\n";
                                        if (StringPlus.toString(model.MaxEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "高血压:" + model.MaxEx + "\r\n";
                                        }
                                    }
                                }
                                if (Hmin.Length == 2)  // 低压范围
                                {
                                    if (Compare(houseModel.LeftPre.ToString(), Hmin[0], Hmin[1]) == 2)
                                    {
                                        txtSummary.Text += "低血压:偏低\r\n";
                                        if (StringPlus.toString(model.MinEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "低血压:" + model.MinEx + "\r\n";
                                        }
                                    }
                                }
                            }
                            else if (hs.Type == "3") // 心率
                            {
                                int res = Compare(houseModel.PulseRate.ToString(), hs.maxValues, hs.minValues);
                                if (res == 1 || res == 2)
                                {
                                    // 数据类型 返回偏高、低异常信息
                                    HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=3 ");

                                    if (res == 1) // 偏高
                                    {
                                        txtSummary.Text += "心率:偏高\r\n";
                                        if (StringPlus.toString(model.MaxEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "心率:" + model.MaxEx + "\r\n";
                                        }
                                    }
                                    else if (res == 2) // 偏低
                                    {
                                        txtSummary.Text += "心率:偏低\r\n";
                                        if (StringPlus.toString(model.MinEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "心率:" + model.MinEx + "\r\n";
                                        }
                                    }
                                }
                            }
                            else if (hs.Type == "4") // 血氧
                            {
                                int res = Compare(houseModel.BloodOxygen.ToString(), hs.maxValues, hs.minValues);
                                if (res == 1 || res == 2)
                                {
                                    // 数据类型 返回偏高、低异常信息
                                    HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=4 ");

                                    if (res == 1) // 偏高
                                    {
                                        txtSummary.Text += "血氧:偏高\r\n";
                                        if (StringPlus.toString(model.MaxEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "血氧:" + model.MaxEx + "\r\n";
                                        }
                                    }
                                    else if (res == 2) // 偏低
                                    {
                                        txtSummary.Text += "血氧:偏低\r\n";
                                        if (StringPlus.toString(model.MinEx).Length > 0)
                                        {
                                            txtHealthGuid.Text += "血氧:" + model.MinEx + "\r\n";
                                        }
                                    }
                                }
                            }

                            #endregion
                        }

                        #region 辅助检查

                        if (houseModel.CHESTX == "2")
                        {
                            txtSummary.Text += "胸部X线片:异常\r\n ";
                            if (StringPlus.toString(houseModel.CHESTXEx).Length > 0)
                            {
                                txtHealthGuid.Text += "胸部X线片:" + houseModel.CHESTXEx + "\r\n";
                            }
                        }

                        if (!string.IsNullOrEmpty(houseModel.PRO) &&
                            !string.IsNullOrEmpty(houseModel.GLU) &&
                            !string.IsNullOrEmpty(houseModel.KET) &&
                            !string.IsNullOrEmpty(houseModel.BLD))
                        {
                            if (houseModel.PRO.Contains("+") ||
                                houseModel.GLU.Contains("+") ||
                                houseModel.KET.Contains("+") ||
                                houseModel.BLD.Contains("+"))
                            {
                                // 数据类型 返回偏高、低异常信息
                                HealthOverviewSetModel model = OverViewBll.GetModel(" and Type =11 ");

                                txtSummary.Text += "尿常规:异常\r\n";
                                if (StringPlus.toString(model.Content).Length > 0)
                                {
                                    txtHealthGuid.Text += "尿常规:" + model.Content + "\r\n";
                                }
                            }
                        }

                        #endregion

                        #region 心电/B超/心血管/肺功能/骨密度

                        // 心电
                        if (houseModel.ECG == "2")
                        {
                            txtSummary.Text += "心电:异常\r\n";
                            if (StringPlus.toString(houseModel.ECGEx).Length > 0)
                            {
                                txtHealthGuid.Text += "心电:" + houseModel.ECGEx + "\r\n";
                            }
                        }

                        // B超
                        if (houseModel.BCHAO == "2")
                        {
                            txtSummary.Text += "B超:异常\r\n";
                            if (StringPlus.toString(houseModel.BCHAOEx).Length > 0)
                            {
                                txtHealthGuid.Text += "B超:" + houseModel.BCHAOEx + "\r\n";
                            }
                        }
                        // B超其他
                        if (houseModel.BCHAOther == "2")
                        {
                            txtSummary.Text += "B超其他:异常\r\n";
                            if (StringPlus.toString(houseModel.BCHAOtherEx).Length > 0)
                            {
                                txtHealthGuid.Text += "B超其他:" + houseModel.BCHAOtherEx + "\r\n";
                            }
                        }

                        // 心血管
                        if (houseModel.CResult == "2")
                        {
                            txtSummary.Text += "心血管:异常\r\n";
                            if (StringPlus.toString(houseModel.CResultEx).Length > 0)
                            {
                                txtHealthGuid.Text += "心血管:" + houseModel.CResultEx + "\r\n";
                            }
                        }

                        // 肺功能
                        if (houseModel.LResult == "2")
                        {
                            txtSummary.Text += "肺功能:异常\r\n";
                            if (StringPlus.toString(houseModel.LResultEx).Length > 0)
                            {
                                txtHealthGuid.Text += "肺功能:" + houseModel.LResultEx + "\r\n";
                            }
                        }

                        // 骨密度
                        if (houseModel.Result == "2")
                        {
                            txtSummary.Text += "骨密度:异常\r\n";
                            if (StringPlus.toString(houseModel.ResultEx).Length > 0)
                            {
                                txtHealthGuid.Text += "骨密度:" + houseModel.ResultEx + "\r\n";
                            }
                        }

                        #endregion
                    }

                    #endregion

                    #region 中医健康指导

                    HealthHouseMediPhyModel MedModel = new HealthHouseMediPhyBLL().GetModel(houseModel.ID);//中医体质类型
                    if (MedModel != null)
                    {
                        string strMed = "";
                        if (!string.IsNullOrEmpty(MedModel.Mild))
                        {
                            // 平和质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=12 ");

                            if (model != null && !string.IsNullOrEmpty(model.Content))
                            {
                                strMed += "平和质 \r\n" + model.Content;
                            }
                            else
                            {
                                strMed += "平和质 \r\n";
                            }
                        }
                        if (!string.IsNullOrEmpty(MedModel.Faint))
                        {
                            // 气虚质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=13 ");

                            strMed += "气虚质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.Yang))
                        {
                            // 阳虚质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=14 ");

                            strMed += "阳虚质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.Yin))
                        {
                            // 阴虚质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=15 ");

                            strMed += "阴虚质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.PhlegmDamp))
                        {
                            // 痰湿质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=16 ");

                            strMed += "痰湿质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.Muggy))
                        {
                            // 湿热质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=17 ");

                            strMed += "湿热质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.BloodStasis))
                        {
                            // 血瘀质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=18 ");

                            strMed += "血瘀质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.QiConstraint))
                        {
                            // 气郁质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=19 ");

                            strMed += "气郁质 \r\n";
                        }
                        if (!string.IsNullOrEmpty(MedModel.Characteristic))
                        {
                            // 特兼质 健康指导
                            HealthOverviewSetModel model = OverViewBll.GetModel(" and Type=20 ");

                            strMed += "特兼质 \r\n";
                        }
                        if (strMed != "")
                        {
                            this.txtMedGuid.Text = strMed.Remove(strMed.Length - 1, 1);
                        }
                    }

                    #endregion
                }
                else
                {
                    MessageBox.Show("无体检信息,请先做体检!");
                    return;
                }
            }

            this.EveryThingIsOk = true;
        }
Exemplo n.º 2
0
        public FixedDocumentSequence getReport()
        {
            if (!string.IsNullOrEmpty(this.CardID))
            {
                List <ListValue> list = new List <ListValue>();
                BaseModel = new RecordsBaseInfoBLL().GetModel(this.CardID);
                if (BaseModel != null)
                {
                    list.Add(new ListValue
                    {
                        strMark = "$name",
                        strVal  = BaseModel.CustomerName
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$archiveid",
                        strVal  = BaseModel.RecordID
                    });
                }
                #region 健康问询
                HealthAssessExamModel model1 = new HealthAssessExamBLL().GetMaxModel(this.CardID);
                if (model1 != null)
                {
                    list.Add(new ListValue
                    {
                        strMark = "#jzjb",
                        strVal  = model1.FamilyHistory
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#jb",
                        strVal  = model1.MedicalHistory
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#yscs",
                        strVal  = model1.DietaryHabit
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#ysglx",
                        strVal  = model1.DietaryLaw
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$ysqt",
                        strVal  = model1.DietaryOther
                    });

                    list.Add(new ListValue
                    {
                        strMark = "#dlpl",
                        strVal  = model1.ExerciseRate
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$dlsj",
                        strVal  = model1.ExerciseTimes.ToString()
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#zys",
                        strVal  = model1.HospitalHistory
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#fy",
                        strVal  = model1.TakingMedicine
                    });
                    list.Add(new ListValue
                    {
                        strMark = "#zlnl",
                        strVal  = model1.OldSelfCareability
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$zldf",
                        strVal  = model1.GloomyScore.ToString()
                    });
                    string strtyfs = "";
                    if (!string.IsNullOrEmpty(model1.ExerciseExistense))
                    {
                        foreach (char c in model1.ExerciseExistense)
                        {
                            switch (c)
                            {
                            case '1': strtyfs = strtyfs + "散步;";
                                break;

                            case '2': strtyfs = strtyfs + "跑步;";
                                break;

                            case '3': strtyfs = strtyfs + "广场舞;";
                                break;

                            default: break;
                            }
                        }
                    }
                    if (!string.IsNullOrEmpty(model1.ExerciseExistenseOther))
                    {
                        strtyfs = strtyfs + model1.ExerciseExistenseOther + ";";
                    }
                    list.Add(new ListValue
                    {
                        strMark = "$dlfs",
                        strVal  = strtyfs
                    });
                    #region 体检评估
                    HealthHouseModel model2 = new HealthHouseBLL().GetDataByID(model1.PID);
                    if (model2 != null)
                    {
                        list.Add(new ListValue
                        {
                            strMark = "$tjsj",
                            strVal  = DrawItems.strToDate(model2.CheckDate)
                        });
                        list.Add(new ListValue
                        {
                            strMark = "$bmi",
                            strVal  = model2.BMI.ToString()
                        });
                        list.Add(new ListValue
                        {
                            strMark = "$gy",
                            strVal  = model2.LeftHeight.ToString()
                        });
                        list.Add(new ListValue
                        {
                            strMark = "$dy",
                            strVal  = model2.LeftPre.ToString()
                        });
                        list.Add(new ListValue
                        {
                            strMark = "$ml",
                            strVal  = model2.PulseRate.ToString()
                        });
                        list.Add(new ListValue
                        {
                            strMark = "$xy",
                            strVal  = model2.BloodOxygen
                        });

                        HealthHouseBCHAOModel BchaoModel = new HealthHouseBCHAOBLL().GetModel(model2.ID);//B超表
                        if (BchaoModel != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#bc",
                                strVal  = BchaoModel.BCHAO
                            });
                        }
                        HealthHouseEcgModel EcgModel = new HealthHouseEcgBLL().GetModel(model2.ID);//心电
                        if (EcgModel != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#xd",
                                strVal  = EcgModel.ECG
                            });
                        }
                        HHCardiovascularModel VascularModel = new HHCardiovascularBLL().GetData(this.CardID, model2.ID);//心血管
                        if (VascularModel != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#xx",
                                strVal  = VascularModel.Result
                            });
                        }
                        HHBoneModel BoneModel = new HHBoneBLL().GetData(this.CardID, model2.ID);//骨密度
                        if (BoneModel != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#gm",
                                strVal  = BoneModel.Result
                            });
                        }
                        HHLungModel LungModel = new HHLungBLL().GetData(this.CardID, model2.ID);//肺功能
                        if (LungModel != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#fg",
                                strVal  = LungModel.Result
                            });
                        }
                        HealthHousePhysicalAssistCheckModel HHAssistCheck = new HealthHousePhysicalAssistCheckBLL().GetModel(model2.ID);//辅助检查表
                        if (HHAssistCheck != null)
                        {
                            list.Add(new ListValue
                            {
                                strMark = "#xb",
                                strVal  = HHAssistCheck.CHESTX
                            });
                            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("+"))
                                {
                                    list.Add(new ListValue
                                    {
                                        strMark = "#nc",
                                        strVal  = "2"
                                    });
                                }
                                else
                                {
                                    list.Add(new ListValue
                                    {
                                        strMark = "#nc",
                                        strVal  = "1"
                                    });
                                }
                            }
                        }
                        HealthHouseMediPhyModel MedModel = new HealthHouseMediPhyBLL().GetModel(model2.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 != "")
                            {
                                list.Add(new ListValue
                                {
                                    strMark = "$zytz",
                                    strVal  = strMed.Remove(strMed.Length - 1, 1)
                                });
                            }
                        }
                    }

                    #endregion
                    #region 范围值
                    List <HealthOverviewSetModel> SetList = new List <HealthOverviewSetModel>();
                    SetList = new HealthOverviewSetBLL().GetList(" and Type in (1,2,3,4) ");
                    string strBMI = "", strxueya = "", strxinlv = "", strxueyang = "";
                    if (SetList != null)
                    {
                        foreach (HealthOverviewSetModel setmodel in SetList)
                        {
                            if (setmodel.Type == "1")//体质指数
                            {
                                strBMI = setmodel.minValues + "~" + setmodel.maxValues;
                            }
                            else if (setmodel.Type == "2")//血压
                            {
                                strxueya = setmodel.minValues + "~" + setmodel.maxValues;
                            }
                            else if (setmodel.Type == "3")//心率
                            {
                                strxinlv = setmodel.minValues + "~" + setmodel.maxValues;
                            }
                            else if (setmodel.Type == "4")//血氧
                            {
                                strxueyang = setmodel.minValues + "~" + setmodel.maxValues;
                            }
                        }
                    }
                    list.Add(new ListValue
                    {
                        strMark = "$bmifw",
                        strVal  = strBMI
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$xzfw",
                        strVal  = strxueya
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$xlfw",
                        strVal  = strxinlv
                    });
                    list.Add(new ListValue
                    {
                        strMark = "$xyfw",
                        strVal  = strxueyang
                    });
                    #endregion
                }
                #endregion
                return(DrawItems.setPage("printXps\\" + PrintName, list));
            }
            return(null);
        }
Exemplo n.º 3
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;
        }