コード例 #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_KeyPress(object sender, KeyPressEventArgs e)

        {
            if (e.KeyChar == 13)
            {
                if (txtEmpNo.Text.Equals("?"))
                {
                    EmployeeList empList = new EmployeeList(this, cmbDivision.SelectedValue.ToString());
                    empList.ShowDialog();
                }
                else
                {
                    txtEmpNo_Changed();
                }
            }
        }
コード例 #3
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();
         }
     }
 }
コード例 #4
0
 private void txt_employeeNo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         if (txt_employeeNo.Text.Equals("?"))
         {
             EmployeeList empList = new EmployeeList(this, cmbDivision.SelectedValue.ToString());
             empList.ShowDialog();
         }
         else
         {
             if (txt_employeeNo.Text.Trim() != "")
             {
                 txt_employeeNo.Text = txt_employeeNo.Text.PadLeft(5, '0');
                 txtEmpNo_LeaveChanged();
             }
         }
     }
 }
コード例 #5
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();
             }
         }
     }
 }
コード例 #6
0
        private void btnEmpSearch_Click(object sender, EventArgs e)
        {
            EmployeeList empList = new EmployeeList();

            empList.Show();
        }