Exemple #1
0
 private void txtNo_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         if (this.txtNo.Text != "")
         {
             string p_strName = "";
             string empID     = "";
             string p_strID   = this.txtNo.Text.Trim();
             clsDomainControlMedStore objcontrol = new clsDomainControlMedStore();
             objcontrol.m_lngfinedata(p_strID, out p_strName, out empID);
             if (p_strName == "")
             {
                 this.txtname.Text = "错误的员工号";
             }
             else
             {
                 this.txtNo.Tag    = empID;
                 this.txtname.Text = p_strName;
             }
             this.m_txtBreakReMark.Focus();
         }
         else
         {
             this.txtname.Text = "工号不能为空";
             this.txtname.Focus();
         }
     }
 }
Exemple #2
0
 public void m_lngFineName(string p_strID, out string p_strName, out string empID)
 {
     objcontrol.m_lngfinedata(p_strID, out p_strName, out empID);
 }