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