/// <summary> /// 自动得到拼音码,五笔码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtName_KeyUp(object sender, KeyEventArgs e) { Neusoft.HISFC.Models.Base.Spell spCode = new Neusoft.HISFC.Models.Base.Spell(); Neusoft.HISFC.BizProcess.Integrate.Manager mySpell = new Neusoft.HISFC.BizProcess.Integrate.Manager(); spCode = (Neusoft.HISFC.Models.Base.Spell)mySpell.Get(this.txtName.Text.ToString()); this.txtSpellCode.Text = spCode.SpellCode; this.txtWbCode.Text = spCode.WBCode; }
private void tbName_Leave(object sender, EventArgs e) { if (this.tbName.Text.Trim().Equals("")) { return; } Neusoft.HISFC.BizProcess.Integrate.Manager spell = new Neusoft.HISFC.BizProcess.Integrate.Manager(); Neusoft.HISFC.Models.Base.ISpell s = spell.Get(this.tbName.Text); this.tbSpell.Text = s.SpellCode; this.tbWb.Text = s.WBCode; this.tbUser.Text = s.UserCode; }