/// <summary>
        /// 获取当前显示项目名称实体
        /// </summary>
        /// <returns></returns>
        public Neusoft.HISFC.Object.IMA.NameService GetData()
        {
            if (this.nameCollection == null)
            {
                this.nameCollection = new Neusoft.HISFC.Object.IMA.NameService();
            }

            this.nameCollection.Name                   = this.txtName.Text;
            this.nameCollection.SpellCode              = this.txtSpellCode.Text;
            this.nameCollection.WBCode                 = this.txtWbCode.Text;
            this.nameCollection.UserCode               = this.txtUserCode.Text;
            this.nameCollection.RegularName            = this.txtRegularName.Text;
            this.nameCollection.RegularSpell.SpellCode = this.txtRegularSpellCode.Text;
            this.nameCollection.RegularSpell.WBCode    = this.txtRegularWbCode.Text;
            this.nameCollection.RegularSpell.UserCode  = this.txtRegularUserCode.Text;
            this.nameCollection.FormalName             = this.txtFormalName.Text;
            this.nameCollection.FormalSpell.SpellCode  = this.txtFormalSpellCode.Text;
            this.nameCollection.FormalSpell.WBCode     = this.txtFormalWbCode.Text;
            this.nameCollection.FormalSpell.UserCode   = this.txtFormalUserCode.Text;
            this.nameCollection.OtherName              = this.txtOtherName.Text;
            this.nameCollection.OtherSpell.SpellCode   = this.txtOtherSpellCode.Text;
            this.nameCollection.OtherSpell.WBCode      = this.txtOtherWbCode.Text;
            this.nameCollection.OtherSpell.UserCode    = this.txtOtherUserCode.Text;
            this.nameCollection.EnglishName            = this.txtEnglishName.Text;
            this.nameCollection.EnglishOtherName       = this.txtEnglishOtherName.Text;
            this.nameCollection.EnglishRegularName     = this.txtEnglishRegularName.Text;
            this.nameCollection.GbCode                 = this.txtGbCode.Text;
            this.nameCollection.InternationalCode      = this.txtInternationalCode.Text;

            return(this.nameCollection);
        }
        /// <summary>
        /// 根据传入实体设置数据显示
        /// </summary>
        /// <param name="nameCollection">项目名称实体</param>
        public void SetData(Neusoft.HISFC.Object.IMA.NameService nameCollection)
        {
            if (nameCollection != null)
            {
                this.txtName.Text               = nameCollection.Name;
                this.txtSpellCode.Text          = nameCollection.SpellCode;
                this.txtWbCode.Text             = nameCollection.WBCode;
                this.txtUserCode.Text           = nameCollection.UserCode;
                this.txtRegularName.Text        = nameCollection.RegularName;
                this.txtRegularSpellCode.Text   = nameCollection.RegularSpell.SpellCode;
                this.txtRegularWbCode.Text      = nameCollection.RegularSpell.WBCode;
                this.txtRegularUserCode.Text    = nameCollection.UserCode;
                this.txtFormalName.Text         = nameCollection.FormalName;
                this.txtFormalSpellCode.Text    = nameCollection.FormalSpell.SpellCode;
                this.txtFormalWbCode.Text       = nameCollection.FormalSpell.WBCode;
                this.txtFormalUserCode.Text     = nameCollection.FormalSpell.UserCode;
                this.txtOtherName.Text          = nameCollection.OtherName;
                this.txtOtherSpellCode.Text     = nameCollection.OtherSpell.SpellCode;
                this.txtOtherWbCode.Text        = nameCollection.OtherSpell.WBCode;
                this.txtOtherUserCode.Text      = nameCollection.OtherSpell.UserCode;
                this.txtEnglishName.Text        = nameCollection.EnglishName;
                this.txtEnglishOtherName.Text   = nameCollection.EnglishOtherName;
                this.txtEnglishRegularName.Text = nameCollection.EnglishRegularName;
                this.txtGbCode.Text             = nameCollection.GbCode;
                this.txtInternationalCode.Text  = nameCollection.InternationalCode;
            }

            this.nameCollection = nameCollection;
        }