private void txtEmpNo_Leave(object sender, EventArgs e) { if (txtEmpNo.Text.Equals("?")) { EmployeeList empList = new EmployeeList(); empList.Show(); } else { txtEmpNo_LeaveChanged(); } }
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(); } } }
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(); } } }
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(); } } } }
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(); } } } }
private void btnEmpSearch_Click(object sender, EventArgs e) { EmployeeList empList = new EmployeeList(); empList.Show(); }