Exemplo n.º 1
0
        private void BindingModel()
        {
            this.hpyBaseInfo = new ChronicHypertensionBaseInfoBLL().GetModel(this.Model.IDCardNo);

            if (this.hpyBaseInfo == null)
            {
                ChronicHypertensionBaseInfoModel cd_Hypertension_baseinfo = new ChronicHypertensionBaseInfoModel {
                    IDCardNo   = this.Model.IDCardNo,
                    RecordID   = this.Model.RecordID,
                    Hypotensor = "1"
                };
                this.hpyBaseInfo = cd_Hypertension_baseinfo;
                this.hpyBaseInfo.ManagementGroup = "1";
                this.hpyBaseInfo.CaseOurce       = "1";
                this.hpyBaseInfo.CreateUnit      = new decimal?(ConfigHelper.GetNodeDec("orgCode"));
                this.hpyBaseInfo.CreateoBy       = new decimal?(ConfigHelper.GetNodeDec("doctor"));
                this.hpyBaseInfo.CreatedDate     = new DateTime?(DateTime.Today);
            }
            else
            {
                this.hpyBaseInfo.LastUpdateBy   = new decimal?(ConfigHelper.GetNodeDec("doctor"));
                this.hpyBaseInfo.LastUpdateDate = new DateTime?(DateTime.Today);
            }
            this.hpyBaseInfo.CurrentUnit = new decimal?(ConfigHelper.GetNodeDec("orgCode"));
            this.SimpleBinding(this.cbxManagerGroup, this.hpyBaseInfo, "ManagementGroup");
            this.SimpleBinding(this.cbxFromWhere, this.hpyBaseInfo, "CaseOurce");
            this.SimpleBinding(this.cbxStopResult, this.hpyBaseInfo, "TerminateExcuse");
            this.famHistory = new ManyCheckboxs <ChronicHypertensionBaseInfoModel>(this.hpyBaseInfo);
            this.famHistory.AddCk(new LoneCheckbox[] { new LoneCheckbox(this.ck1), new LoneCheckbox(this.ck2), new LoneCheckbox(this.ck3), new LoneCheckbox(this.ck4), new LoneCheckbox(this.ck5, true), new LoneCheckbox(this.ck6, true), new LoneCheckbox(this.ck7, true) });
            this.famHistory.BindingProperty("FatherHistory", "");
            CMoreChange change = new CMoreChange {
                Name       = "目前症状",
                MoreChange = this.cklSymptom,
                Unusual    = "无症状"
            };

            this.symptom = change;
            this.symptom.TransInfo(this.hpyBaseInfo.Symptom, "");
            CMoreChange change2 = new CMoreChange {
                Name       = "并发症",
                MoreChange = this.cklTogetherSymptom,
                Unusual    = "无任何并发症"
            };

            this.together = change2;
            this.together.TransInfo(this.hpyBaseInfo.HypertensionComplication, "");
            if (this.hpyBaseInfo.TerminateManagemen == "1")
            {
                this.ckxStopManager.Checked = true;
                this.cbxStopResult.Enabled  = true;
            }
            else if (this.hpyBaseInfo.TerminateManagemen == "2")
            {
                this.cbxStopResult.Enabled = false;
                this.dtpStopDate.Enabled   = false;
            }
            if (this.hpyBaseInfo.TerminateTime.HasValue)
            {
                this.dtpStopDate.Value = this.hpyBaseInfo.TerminateTime.Value;
            }
            if (this.hpyBaseInfo.Hypotensor == "1")
            {
                this.rdYes.Checked = true;
            }
            else
            {
                this.rdNo.Checked = true;
            }
        }
Exemplo n.º 2
0
        public void InitUc()
        {
            if (string.IsNullOrEmpty(this.DataSrc.FollowDoctor))
            {
                this.tbDoctor.Text = ConfigHelper.GetNode("doctorName");
            }
            else
            {
                this.tbDoctor.Text = this.DataSrc.FollowDoctor;
            }
            if (this.DataSrc == null)
            {
                throw new Exception("DataSrc 为Null");
            }
            this.baojian = new ManyCheckboxs <KidsTcmhmOneModel>(this.DataSrc);
            this.baojian.AddCk(new CheckBox[] { this.chk1, this.chk2, this.chk3 });
            this.baojian.AddCk(this.chk4, this.tbBaojianOth);
            this.baojian.BindingProperty("Tcmhm", "TcmhmOther");
            if (this.DataSrc.FollowupDate.HasValue)
            {
                this.dtpVisitDate.Value = this.DataSrc.FollowupDate.Value;
            }

            if (this.DataSrc.NextFollowDate.HasValue)
            {
                this.dtpNextVisitDate.Value = this.DataSrc.NextFollowDate.Value;
            }

            this.srcData = GlbTools.DeepCopy(this.DataSrc);
            if (this.SelIndex != 2)
            {
                this.tbBaojianOth.ReadOnly = false;
                this.baojian.MVisiable     = false;
                this.lbOther.Visible       = false;
                this.tbBaojianOth.Size     = new Size(this.tbBaojianOth.Size.Width, this.tbBaojianOth.Size.Height * 2);
                this.tbBaojianOth.Dock     = DockStyle.Fill;
            }
            if (this.SelIndex == 2)//6个月
            {
                this.SignS   = string.Format("{0}{1}_Mec6.png", this.SignPath, this.DataSrc.IDCardNo);
                this.SignDoc = string.Format("{0}{1}_Mec6_Doc.png", this.SignPath, this.DataSrc.IDCardNo);
            }
            //签名初始化
            if (File.Exists(this.SignS))
            {
                Image imgeb = Image.FromFile(SignS);
                Image bmp   = new System.Drawing.Bitmap(imgeb);
                picSignJs.Image = bmp;
                picSignJs.Show();
                imgeb.Dispose();
                this.lkJs.Enabled   = true;
                picSignJs.BackColor = Color.White;
            }
            if (File.Exists(this.SignDoc))
            {
                Image imgeb = Image.FromFile(SignDoc);
                Image bmp   = new System.Drawing.Bitmap(imgeb);
                picSignYs.Image = bmp;
                picSignYs.Show();
                imgeb.Dispose();
                this.lkYs.Enabled   = true;
                picSignYs.BackColor = Color.White;
            }
        }
Exemplo n.º 3
0
        public void InitEveryThing()
        {
            int num;

            this.GetModel();
            if (string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.VisitDoctor))
            {
                this.chronicLungerFirstVisitModel.VisitDoctor = ConfigHelper.GetNode("doctorName");
            }
            this.bindingManager.SimpleBinding(this.tbDoctor, "VisitDoctor", false);

            string followupWay = chronicLungerFirstVisitModel.FollowupWay.ToString();

            if (followupWay == "" || followupWay == "1")
            {
                radMZ.Checked = true;
            }
            else if (followupWay == "2")
            {
                radFamily.Checked = true;
            }
            string patientType = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.PatientType) ? "" : this.chronicLungerFirstVisitModel.PatientType.ToString();

            if (patientType == "" || patientType == "1")
            {
                rdoPatientType1.Checked = true;
            }
            else if (patientType == "2")
            {
                rdoPatientType2.Checked = true;
            }
            string sputumfungs = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.Sputumfungs) ?  "" : chronicLungerFirstVisitModel.Sputumfungs.ToString();

            if (sputumfungs == "1")
            {
                rdoSputumfungs1.Checked = true;
            }
            else if (sputumfungs == "2")
            {
                rdoSputumfungs2.Checked = true;
            }
            else if (sputumfungs == "3")
            {
                rdoSputumfungs3.Checked = true;
            }
            string drugFast = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.DrugFast) ? "" : chronicLungerFirstVisitModel.DrugFast.ToString();

            if (drugFast == "1")
            {
                rdoDrugFast1.Checked = true;
            }
            else if (drugFast == "2")
            {
                rdoDrugFast2.Checked = true;
            }
            else if (drugFast == "3")
            {
                rdoDrugFast3.Checked = true;
            }
            this.zhengzhuang = new ManyCheckboxs <ChronicLungerFirstVisitModel>(this.chronicLungerFirstVisitModel);
            this.zhengzhuang.oneVetoChecked = (Action <bool>)Delegate.Combine(this.zhengzhuang.oneVetoChecked, new Action <bool>(this.SetOther));
            this.zhengzhuang.AddCk(this.ckGroup0, true);
            this.zhengzhuang.AddCk(new CheckBox[] { this.ckGroup1, this.ckGroup2, this.ckGroup3, this.ckGroup4, this.ckGroup5, this.ckGroup6, this.ckGroup7, this.ckGroup8, this.ckGroup9 });
            this.zhengzhuang.BindingProperty("Symptom", "");
            this.bindingManager.SimpleBinding(this.tbZzOther, "SymptomEx", false);

            this.bindingManager.SimpleBinding(this.txtChemotherapyScheme, "ChemotherapyScheme", false);
            string medicationCompliance = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.MedicationCompliance) ? "" : this.chronicLungerFirstVisitModel.MedicationCompliance.ToString();

            if (medicationCompliance == "1")
            {
                rdoMedicationCompliance1.Checked = true;
            }
            else if (medicationCompliance == "2")
            {
                rdoMedicationCompliance2.Checked = true;
            }
            this.drugType = new ManyCheckboxs <ChronicLungerFirstVisitModel>(this.chronicLungerFirstVisitModel);
            this.drugType.AddCk(new CheckBox[] { this.chkDrugType1, this.chkDrugType2, this.chkDrugType3, this.chkDrugType4 });
            this.drugType.BindingProperty("DrugType", "");
            string supervisor = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.Supervisor) ? "" : this.chronicLungerFirstVisitModel.Supervisor.ToString();

            if (supervisor == "1")
            {
                rdoSupervisor1.Checked = true;
            }
            else if (supervisor == "2")
            {
                rdoSupervisor2.Checked = true;
            }
            else if (supervisor == "3")
            {
                rdoSupervisor3.Checked = true;
            }
            else if (supervisor == "4")
            {
                rdoSupervisor4.Checked = true;
            }
            string standaloneRoom = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.StandaloneRoom) ? "" : this.chronicLungerFirstVisitModel.StandaloneRoom.ToString();

            if (standaloneRoom == "1")
            {
                this.rdoStandaloneRoom1.Checked = true;
            }
            else if (standaloneRoom == "2")
            {
                this.rdoStandaloneRoom2.Checked = true;
            }

            string ventilation = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.Ventilation) ? "" : this.chronicLungerFirstVisitModel.Ventilation.ToString();

            if (ventilation == "1")
            {
                this.rdoVentilation1.Checked = true;
            }
            else if (ventilation == "2")
            {
                this.rdoVentilation2.Checked = true;
            }
            else if (ventilation == "3")
            {
                this.rdoVentilation3.Checked = true;
            }

            this.bindingManager.SimpleBinding(this.txtSmokeDayNum, "SmokeDayNum", true);
            this.bindingManager.SimpleBinding(this.txtDayDrinkVolume, "DayDrinkVolume", true);
            this.bindingManager.SimpleBinding(this.txtNextSmokeDayNum, "NextSmokeDayNum", true);
            this.bindingManager.SimpleBinding(this.txtNextDayDrinkVolume, "NextDayDrinkVolume", true);
            this.bindingManager.SimpleBinding(this.txtMediclineReceivePlace, "MediclineReceivePlace", false);
            if (this.chronicLungerFirstVisitModel.MediclineReceiveTime.HasValue)
            {
                this.txtMediclineReceiveTime.Value = this.chronicLungerFirstVisitModel.MediclineReceiveTime.Value;
            }

            string recordcardWrite = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.RecordcardWrite) ? "" : this.chronicLungerFirstVisitModel.RecordcardWrite.ToString();

            if (recordcardWrite == "1")
            {
                this.rdoRecordcardWrite1.Checked = true;
            }
            else if (recordcardWrite == "2")
            {
                this.rdoRecordcardWrite2.Checked = true;
            }

            string pharmacyWayDeposit = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.PharmacyWayDeposit) ? "" : this.chronicLungerFirstVisitModel.PharmacyWayDeposit.ToString();

            if (pharmacyWayDeposit == "1")
            {
                this.rdoPharmacyWayDeposit1.Checked = true;
            }
            else if (pharmacyWayDeposit == "2")
            {
                this.rdoPharmacyWayDeposit2.Checked = true;
            }

            string therapies = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.Therapies) ? "" : this.chronicLungerFirstVisitModel.Therapies.ToString();

            if (therapies == "1")
            {
                this.rdoTherapies1.Checked = true;
            }
            else if (therapies == "2")
            {
                this.rdoTherapies2.Checked = true;
            }
            string indisciplineHarm = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.IndisciplineHarm) ? "" : this.chronicLungerFirstVisitModel.IndisciplineHarm.ToString();

            if (indisciplineHarm == "1")
            {
                this.rdoIndisciplineHarm1.Checked = true;
            }
            else if (indisciplineHarm == "2")
            {
                this.rdoIndisciplineHarm2.Checked = true;
            }
            string adrsHandle = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.AdrsHandle) ? "" : this.chronicLungerFirstVisitModel.AdrsHandle.ToString();

            if (adrsHandle == "1")
            {
                this.rdoAdrsHandle1.Checked = true;
            }
            else if (adrsHandle == "2")
            {
                this.rdoAdrsHandle2.Checked = true;
            }
            string subsequentVisit = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.SubsequentVisit) ? "" : this.chronicLungerFirstVisitModel.SubsequentVisit.ToString();

            if (subsequentVisit == "1")
            {
                this.rdoSubsequentVisit1.Checked = true;
            }
            else if (subsequentVisit == "2")
            {
                this.rdoSubsequentVisit2.Checked = true;
            }
            string insistPharmacy = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.InsistPharmacy) ? "" : this.chronicLungerFirstVisitModel.InsistPharmacy.ToString();

            if (insistPharmacy == "1")
            {
                this.rdoInsistPharmacy1.Checked = true;
            }
            else if (insistPharmacy == "2")
            {
                this.rdoInsistPharmacy2.Checked = true;
            }
            string livingHabit = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.LivingHabit) ? "" : this.chronicLungerFirstVisitModel.LivingHabit.ToString();

            if (livingHabit == "1")
            {
                this.rdoLivingHabit1.Checked = true;
            }
            else if (livingHabit == "2")
            {
                this.rdoLivingHabit2.Checked = true;
            }

            string checktouchPerson = string.IsNullOrEmpty(this.chronicLungerFirstVisitModel.ChecktouchPerson) ? "" : this.chronicLungerFirstVisitModel.ChecktouchPerson.ToString();

            if (checktouchPerson == "1")
            {
                this.rdoChecktouchPerson1.Checked = true;
            }
            else if (checktouchPerson == "2")
            {
                this.rdoChecktouchPerson2.Checked = true;
            }

            this.bindingManager.SimpleBinding(this.txtChecktouchPerson, "EstimateDoctor", false);

            if (this.chronicLungerFirstVisitModel.NextVisitDate.HasValue)
            {
                this.dtpNextVisitDate.Value = this.chronicLungerFirstVisitModel.NextVisitDate.Value;
            }

            //签名初始化
            this.SignS = string.Format("{0}{1}_{2}.png", this.SignPath, this.Model.IDCardNo, Convert.ToDateTime(this.dtpFollowupDate.Value).ToString("yyyyMMdd"));
            if (File.Exists(this.SignS))
            {
                Image imgeb = Image.FromFile(SignS);
                picSignJs.Image = imgeb;
                picSignJs.Show();
                this.lkJs.Enabled   = true;
                picSignJs.BackColor = Color.White;
            }
            this.SignDoc = string.Format("{0}{1}_{2}_Doc.png", this.SignPath, this.Model.IDCardNo, Convert.ToDateTime(this.dtpFollowupDate.Value).ToString("yyyyMMdd"));
            if (File.Exists(this.SignDoc))
            {
                Image imgeb = Image.FromFile(SignDoc);
                picSignYs.Image = imgeb;
                picSignYs.Show();
                this.lkYs.Enabled   = true;
                picSignYs.BackColor = Color.White;
            }


            this.EveryThingIsOk = true;
        }
Exemplo n.º 4
0
        public void InitUc()
        {
            if (string.IsNullOrEmpty(this.DataSrc.FollowUpDoctor))
            {
                this.tbDoctor.Text = ConfigHelper.GetNode("doctorName");
            }
            else
            {
                this.tbDoctor.Text = this.DataSrc.FollowUpDoctor;
            }
            if (this.DataSrc == null)
            {
                throw new Exception("DataSrc 为Null");
            }
            this.baojian = new ManyCheckboxs <KidsTcmhmOneToThreeModel>(this.DataSrc);
            this.baojian.AddCk(new CheckBox[] { this.chk1, this.chk2, this.chk3 });
            this.baojian.AddCk(this.chk4, this.tbBaojianOth);
            this.baojian.BindingProperty("Tcmhm", "TcmhmOther");
            if (this.DataSrc.FollowupDate.HasValue)
            {
                this.dtpVisitDate.Value = this.DataSrc.FollowupDate.Value;
            }

            if (this.DataSrc.NextFollowupDate.HasValue)
            {
                this.dtpNextVisitDate.Value = this.DataSrc.NextFollowupDate.Value;
            }

            this.SignS   = string.Format("{0}{1}_Mec12.png", this.SignPath, this.DataSrc.IDCardNo);
            this.SignDoc = string.Format("{0}{1}_Mec12_Doc.png", this.SignPath, this.DataSrc.IDCardNo);
            this.srcData = GlbTools.DeepCopy(this.DataSrc);
            switch (this.SelIndex)
            {
            case 1:
                this.chk3.Text = "传授按揉迎香穴、足三里穴方法";
                this.SignS     = string.Format("{0}{1}_Mec18.png", this.SignPath, this.DataSrc.IDCardNo);
                this.SignDoc   = string.Format("{0}{1}_Mec18_Doc.png", this.SignPath, this.DataSrc.IDCardNo);
                break;

            case 2:
                this.chk3.Text = "传授按揉迎香穴、足三里穴方法";
                this.SignS     = string.Format("{0}{1}_Mec24.png", this.SignPath, this.DataSrc.IDCardNo);
                this.SignDoc   = string.Format("{0}{1}_Mec24_Doc.png", this.SignPath, this.DataSrc.IDCardNo);
                break;

            case 3:
                this.chk3.Text = "传授按揉四神聪穴方法";
                this.SignS     = string.Format("{0}{1}_Mec30.png", this.SignPath, this.DataSrc.IDCardNo);
                this.SignDoc   = string.Format("{0}{1}_Mec30_Doc.png", this.SignPath, this.DataSrc.IDCardNo);
                break;
            }
            //签名初始化
            if (File.Exists(this.SignS))
            {
                Image imgeb = Image.FromFile(SignS);
                Image bmp   = new System.Drawing.Bitmap(imgeb);
                picSignJs.Image = bmp;
                picSignJs.Show();
                imgeb.Dispose();
                this.lkJs.Enabled   = true;
                picSignJs.BackColor = Color.White;
            }
            if (File.Exists(this.SignDoc))
            {
                Image imgeb = Image.FromFile(SignDoc);
                Image bmp   = new System.Drawing.Bitmap(imgeb);
                picSignYs.Image = bmp;
                picSignYs.Show();
                imgeb.Dispose();
                this.lkYs.Enabled   = true;
                picSignYs.BackColor = Color.White;
            }
        }
Exemplo n.º 5
0
        public void InitEveryThing()
        {
            int num;

            this.GetModel();

            if (string.IsNullOrEmpty(this.chronicLungerVisitModel.VisitDoctor))
            {
                this.chronicLungerVisitModel.VisitDoctor = this.Model.Doctor;
            }

            if (this.chronicLungerVisitModel.FollowupDate.HasValue)
            {
                this.dtpFollowupDate.Value = this.chronicLungerVisitModel.FollowupDate.Value;
            }

            this.bindingManager.SimpleBinding(this.tbDoctor, "VisitDoctor", false);

            string followupWay = chronicLungerVisitModel.FollowupWay.ToString();

            if (followupWay == "" || followupWay == "1")
            {
                radMZ.Checked = true;
            }
            else if (followupWay == "2")
            {
                radFamily.Checked = true;
            }
            else if (followupWay == "3")
            {
                this.radPhone.Checked = true;
            }

            this.bindingManager.SimpleBinding(this.txtCureMonth, "CureMonth", false);
            string supervisor = string.IsNullOrEmpty(this.chronicLungerVisitModel.Supervisor) ? "" : this.chronicLungerVisitModel.Supervisor.ToString();

            if (supervisor == "1")
            {
                rdoSupervisor1.Checked = true;
            }
            else if (supervisor == "2")
            {
                rdoSupervisor2.Checked = true;
            }
            else if (supervisor == "3")
            {
                rdoSupervisor3.Checked = true;
            }
            else if (supervisor == "4")
            {
                rdoSupervisor4.Checked = true;
            }

            this.zhengzhuang = new ManyCheckboxs <ChronicLungerVisitModel>(this.chronicLungerVisitModel);
            this.zhengzhuang.oneVetoChecked = (Action <bool>)Delegate.Combine(this.zhengzhuang.oneVetoChecked, new Action <bool>(this.SetOther));
            this.zhengzhuang.AddCk(this.ckGroup0, true);
            this.zhengzhuang.AddCk(new CheckBox[] { this.ckGroup1, this.ckGroup2, this.ckGroup3, this.ckGroup4, this.ckGroup5, this.ckGroup6, this.ckGroup7, this.ckGroup8, this.ckGroup9 });
            this.zhengzhuang.BindingProperty("Symptom", "");
            this.bindingManager.SimpleBinding(this.tbZzOther, "SymptomEx", false);
            this.bindingManager.SimpleBinding(this.txtSmokeDayNum, "SmokeDayNum", true);
            this.bindingManager.SimpleBinding(this.txtDayDrinkVolume, "DayDrinkVolume", true);
            this.bindingManager.SimpleBinding(this.txtNextSmokeDayNum, "NextSmokeDayNum", true);
            this.bindingManager.SimpleBinding(this.txtNextDayDrinkVolume, "NextDayDrinkVolume", true);
            this.bindingManager.SimpleBinding(this.txtChemotherapyScheme, "ChemotherapyScheme", false);
            string medicationCompliance = string.IsNullOrEmpty(this.chronicLungerVisitModel.MedicationCompliance) ? "" : this.chronicLungerVisitModel.MedicationCompliance.ToString();

            if (medicationCompliance == "1")
            {
                rdoMedicationCompliance1.Checked = true;
            }
            else if (medicationCompliance == "2")
            {
                rdoMedicationCompliance2.Checked = true;
            }

            this.bindingManager.SimpleBindingInt(this.txtOmissiveTimes, "OmissiveTimes", true);
            this.drugType = new ManyCheckboxs <ChronicLungerVisitModel>(this.chronicLungerVisitModel);
            this.drugType.AddCk(new CheckBox[] { this.chkDrugType1, this.chkDrugType2, this.chkDrugType3, this.chkDrugType4 });
            this.drugType.BindingProperty("DrugType", "");
            string adr = string.IsNullOrEmpty(this.chronicLungerVisitModel.Adr) ? "" : this.chronicLungerVisitModel.Adr.ToString();

            if (adr == "1")
            {
                this.rdoAdr1.Checked = true;
            }
            else if (adr == "2")
            {
                this.rdoAdr2.Checked = true;
            }

            string complication = string.IsNullOrEmpty(this.chronicLungerVisitModel.Complication) ? "" : this.chronicLungerVisitModel.Complication.ToString();

            if (complication == "1")
            {
                this.rdoComplication1.Checked = true;
            }
            else if (complication == "2")
            {
                this.rdoComplication2.Checked = true;
            }

            this.bindingManager.SimpleBinding(this.txtAdrEx, "AdrEx", false);
            this.bindingManager.SimpleBinding(this.txtComplicationEx, "ComplicationEx", false);
            this.bindingManager.SimpleBinding(this.txtReferralReason, "ReferralReason", false);
            this.bindingManager.SimpleBinding(this.txtReferralOrg, "ReferralOrg", false);
            this.bindingManager.SimpleBinding(this.txtReferralResult, "ReferralResult", false);
            this.bindingManager.SimpleBinding(this.txtHandleView, "HandleView", false);

            if (this.chronicLungerVisitModel.NextVisitDate.HasValue)
            {
                this.dtpNextVisitDate.Value = this.chronicLungerVisitModel.NextVisitDate.Value;
            }

            this.stopCureReason = new ManyCheckboxs <ChronicLungerVisitModel>(this.chronicLungerVisitModel);
            this.stopCureReason.AddCk(new CheckBox[] { this.chbStopCureReason1, this.chbStopCureReason2, this.chbStopCureReason3, this.chbStopCureReason4 });
            this.stopCureReason.BindingProperty("StopCureReason", "");

            if (this.chronicLungerVisitModel.StopCureDate.HasValue)
            {
                this.dtpStopCureDate.Value = this.chronicLungerVisitModel.StopCureDate.Value;
            }

            this.bindingManager.SimpleBindingInt(this.txtShouldVisitTimes, "ShouldVisitTimes", false);
            this.bindingManager.SimpleBindingInt(this.txtVisitTimes, "VisitTimes", false);
            this.bindingManager.SimpleBindingInt(this.txtShouldPharmacyTimes, "ShouldPharmacyTimes", false);
            this.bindingManager.SimpleBindingInt(this.txtPharmacyTimes, "PharmacyTimes", false);
            this.bindingManager.SimpleBinding(this.txtEstimateDoctor, "EstimateDoctor", false);
            this.bindingManager.SimpleBinding(this.txtPharmacyRate, "PharmacyRate", false);

            this.EveryThingIsOk = true;
        }