Exemple #1
0
        private void btnElderM_Click(object sender, EventArgs e)
        {
            HealthOldMedEX dex = new HealthOldMedEX(this.Model)
            {
                phy             = this.HHMediphy,
                MedCn           = this.HHMediCn,
                MedResult       = this.HHMediRes,
                HealthModel     = this.HealthModel,
                FormBorderStyle = FormBorderStyle.FixedSingle,
                Text            = "中医体质判定",
                MaximizeBox     = false,
                MinimizeBox     = false,
                ShowIcon        = false
            };

            dex.PhysicalItem();
            dex.StartPosition = FormStartPosition.CenterParent;
            if (dex.ShowDialog() == DialogResult.OK)
            {
                this.pinghezhi.Reset(this.HHMediphy.Mild);
                this.qixuzhi.Reset(this.HHMediphy.Faint);
                this.yangxuzhi.Reset(this.HHMediphy.Yang);
                this.yinxuzhi.Reset(this.HHMediphy.Yin);
                this.tanshizhi.Reset(this.HHMediphy.PhlegmDamp);
                this.shirezhi.Reset(this.HHMediphy.Muggy);
                this.xueyuzhi.Reset(this.HHMediphy.BloodStasis);
                this.qiyuzhi.Reset(this.HHMediphy.QiConstraint);
                this.tejianzhi.Reset(this.HHMediphy.Characteristic);
                this.HHMediCn  = dex.MedCn;
                this.HHMediRes = dex.MedResult;
            }
        }
Exemple #2
0
 public void InitEveryThing()
 {
     this.HHMediphy = this.MediPyBLL.GetModel(HealthHouseFactory.ID);
     if (this.HHMediphy == null)
     {
         this.HHMediphy          = new HealthHouseMediPhyModel();
         this.HHMediphy.IDCardNo = this.Model.IDCardNo;
     }
     else
     {
         this.HHMediCn  = this.MediCnBll.GetModel(this.HHMediphy.MedicineID);
         this.HHMediRes = this.MediResBLL.GetModel(this.HHMediphy.MedicineResultID);
     }
     this.HealthModel = new HealthHouseBLL().GetDataByID(HealthHouseFactory.ID);
     if (this.HealthModel == null)
     {
         this.HealthModel = new HealthHouseModel();
     }
     this.pinghezhi      = new Physique(this.radshipinghe, this.radjibenpinghe, this.HHMediphy.Mild);
     this.qixuzhi        = new Physique(this.radshiqixu, this.radqingqixu, this.HHMediphy.Faint);
     this.yangxuzhi      = new Physique(this.radshiyangxu, this.radqingyangxu, this.HHMediphy.Yang);
     this.yinxuzhi       = new Physique(this.radshiyinxu, this.radqingyinxu, this.HHMediphy.Yin);
     this.tanshizhi      = new Physique(this.radshitanshi, this.radqingtanshi, this.HHMediphy.PhlegmDamp);
     this.shirezhi       = new Physique(this.radshishire, this.radqingshire, this.HHMediphy.Muggy);
     this.xueyuzhi       = new Physique(this.radshixueyu, this.radqingxueyu, this.HHMediphy.BloodStasis);
     this.qiyuzhi        = new Physique(this.radshiqiyu, this.radqingqiyu, this.HHMediphy.QiConstraint);
     this.tejianzhi      = new Physique(this.radshitejian, this.radqingtejian, this.HHMediphy.Characteristic);
     this.EveryThingIsOk = true;
 }