/// <summary>
        /// 对控件进行赋值

        /// </summary>
        private void ucQueryInpatientNo1_myEvent()
        {
            patientInfo = null;
            if (this.ucQueryInpatientNo1.InpatientNo == "")
            {
                Neusoft.NFC.Interface.Classes.Function.Msg("不存在该患者,或者该患者已经出院!", 111);
                this.Clear();
                return;
            }
            //获取住院号赋值给实体

            this.patientInfo = this.radtIntegrate.GetPatientInfomation(this.ucQueryInpatientNo1.InpatientNo);

            if (this.patientInfo == null)
            {
                MessageBox.Show(this.radtIntegrate.Err);
                this.ucQueryInpatientNo1.Focus();

                return;
            }

            this.patientInfoOld = this.patientInfo.Clone();

            SetPatientInfo(this.patientInfo);

            this.txtName.Focus();
        }
        /// <summary>
        /// 设置患者信息到控件
        /// </summary>
        /// <param name="patientInfo"></param>
        protected void SetPatientInfo(Neusoft.HISFC.Object.RADT.PatientInfo patientInfo)
        {
            this.patientInfo = patientInfo;
            Neusoft.HISFC.Object.RADT.Patient Patient = patientInfo;
            this.chbEncrypt.Checked = patientInfo.IsEncrypt;
            if (patientInfo.IsEncrypt)
            {
                patientInfo.Name = Neusoft.NFC.Interface.Classes.Function.Decrypt3DES(patientInfo.NormalName);
            }
            this.txtName.Text        = patientInfo.Name;                                   //姓名
            this.cmbSex.Text         = patientInfo.Sex.Name;                               //性别
            this.cmbSex.Tag          = patientInfo.Sex.ID;                                 //性别
            this.txtCardNO.Text      = patientInfo.PID.CardNO;                             //就诊卡号
            this.txtCardNO.ReadOnly  = true;
            this.cmbPact.Text        = patientInfo.Pact.Name;                              //合同单位名称
            this.cmbPact.Tag         = patientInfo.Pact.ID;                                //合同单位ID
            this.cmbPact.IsListOnly  = true;
            this.cmbArea.Tag         = patientInfo.AreaCode;                               //地区
            this.cmbCountry.Tag      = patientInfo.Country.ID;                             //国籍
            this.cmbNation.Tag       = patientInfo.Nationality.ID;                         //民族
            this.dtpBirthDay.Value   = patientInfo.Birthday;                               //出生日期
            this.txtAge.Text         = this.inpatientManager.GetAge(patientInfo.Birthday); //年龄
            this.cmbDistrict.Text    = patientInfo.DIST;                                   //籍贯
            this.cmbProfession.Tag   = patientInfo.Profession.ID;                          //职业
            this.txtIDNO.Text        = patientInfo.IDCard;                                 //身份证号
            this.cmbWorkAddress.Text = patientInfo.CompanyName;                            //工作单位
            this.txtWorkPhone.Text   = patientInfo.PhoneBusiness;                          //单位电话
            this.cmbMarry.Tag        = patientInfo.MaritalStatus.ID.ToString();            //婚姻状况
            this.cmbHomeAddress.Text = patientInfo.AddressHome;                            //家庭住址
            this.txtHomePhone.Text   = patientInfo.PhoneHome;                              //家庭电话
            this.txtLinkMan.Text     = patientInfo.Kin.Name;                               //联系人

            this.cmbRelation.Tag = patientInfo.Kin.Relation.ID;                            //联系人关系

            this.cmbLinkAddress.Text = patientInfo.Kin.RelationAddress;                    //联系人地址

            this.txtLinkPhone.Text = patientInfo.Kin.RelationPhone;                        //联系人电话

            this.cmbInSource.Tag     = patientInfo.PVisit.InSource.ID;                     //入院来源
            this.cmbApproach.Tag     = patientInfo.PVisit.AdmitSource.ID;                  //入院途径
            this.cmbCircs.Tag        = patientInfo.PVisit.Circs.ID;                        //入院情况
            this.txtBedInterval.Text = patientInfo.FT.FixFeeInterval.ToString();           //床位间隔
            this.dtpInTime.Value     = patientInfo.PVisit.InTime;                          //入院日期
            this.cmbDoctor.Tag       = patientInfo.DoctorReceiver.ID;                      //收住院医师

            this.cmbMark.Tag = patientInfo.Memo;                                           //特注
            this.ucQueryInpatientNo1.txtInputCode.Text = patientInfo.PID.PatientNO;        //住院号
        }
 /// <summary>
 /// 清空控件信息
 /// </summary>
 protected virtual void Clear()
 {
     this.txtName.Text              = string.Empty;
     this.txtIDNO.Text              = string.Empty;
     this.cmbMarry.Text             = string.Empty;
     this.cmbPact.Text              = string.Empty;
     this.cmbArea.Text              = string.Empty;
     this.cmbCountry.Text           = string.Empty;
     this.cmbProfession.Text        = string.Empty;
     this.txtLinkMan.Text           = string.Empty;
     this.cmbRelation.Text          = string.Empty;
     this.cmbLinkAddress.Text       = string.Empty;
     this.txtHomePhone.Text         = string.Empty;
     this.txtWorkPhone.Text         = string.Empty;
     this.cmbInSource.Text          = string.Empty;
     this.cmbDoctor.Text            = string.Empty;
     this.cmbInSource.SelectedIndex = 0;
     this.cmbApproach.SelectedIndex = 0;
     this.cmbCircs.SelectedIndex    = 0;
     this.txtBedInterval.Text       = "1";
     this.cmbArea.Text              = string.Empty;
     this.txtName.Enabled           = true;
     this.txtIDNO.Enabled           = true;
     this.cmbHomeAddress.Text       = string.Empty;
     this.cmbWorkAddress.Text       = string.Empty;
     this.txtCardNO.Text            = string.Empty;
     //this.cmbSex.Text = string.Empty;
     //this.cmbNation.Text = string.Empty;
     this.dtpInTime.Value          = this.inpatientManager.GetDateTimeFromSysDateTime();
     this.dtpBirthDay.Value        = this.inpatientManager.GetDateTimeFromSysDateTime();
     this.txtAge.Text              = string.Empty;
     this.txtAge.ReadOnly          = true;
     this.txtHomePhone.Text        = string.Empty;
     this.txtLinkPhone.Text        = string.Empty;
     this.patientInfo              = null;
     this.patientInfoOld           = null;
     this.ucQueryInpatientNo1.Text = string.Empty;
     this.cmbMark.Text             = string.Empty;
     this.chbEncrypt.Checked       = false;
 }