コード例 #1
0
 private void txtEmpNo_Leave(object sender, EventArgs e)
 {
     if (txtEmpNo.Text.Equals("?"))
     {
         EmployeeList empList = new EmployeeList();
         empList.Show();
     }
     else
     {
         txtEmpNo_LeaveChanged();
     }
 }
コード例 #2
0
 private void txtEmpNo_Leave(object sender, EventArgs e)
 {
     if (txtEmpNo.Text.Equals("?"))
     {
         EmployeeList empList = new EmployeeList();
         empList.Show();
     }
     else
     {
         if (txtEmpNo.Text.Trim() != "")
         {
             //txtEmpNo.Text = txtEmpNo.Text.PadLeft(5, '0');
             txtEmpNo_LeaveChanged();
         }
     }
 }
コード例 #3
0
 private void txtEmpNo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         if (txtEmpNo.Text.Equals("?"))
         {
             EmployeeList empList = new EmployeeList(this, cmbDivision.SelectedValue.ToString());
             empList.Show();
         }
         else
         {
             if (e.KeyChar == 13)
             {
                 txtEmpNo.Text = txtEmpNo.Text.PadLeft(5, '0');
                 txtEmpNo_LeaveChanged();
             }
         }
     }
 }
コード例 #4
0
 private void txtEmpNo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (txtEmpNo.Text.Equals("?"))
     {
         EmployeeList empList = new EmployeeList();
         empList.Show();
     }
     else
     {
         if (e.KeyChar == 8)
         {
             //txtJobShortName.Focus();
         }
         else
         {
             if (e.KeyChar == 13)
             {
                 txtEmpNo_LeaveChanged();
             }
         }
     }
 }
コード例 #5
0
        private void btnEmpSearch_Click(object sender, EventArgs e)
        {
            EmployeeList empList = new EmployeeList();

            empList.Show();
        }