private void txtEmpNo_KeyPress(object sender, KeyPressEventArgs e) { if (txtEmpNo.Text.Equals("?")) { //EmployeeList empList = new EmployeeList(); //empList.Show(); EmployeeSearch empList = new EmployeeSearch(this, cmbDivision.SelectedValue.ToString(), "Fixed"); empList.Show(); } else { if (e.KeyChar == 8) { //txtJobShortName.Focus(); } else { if (e.KeyChar == 13) { txtEmpNo.Text = txtEmpNo.Text.PadLeft(5, '0'); txtEmpNo_LeaveChanged(); } } } }
private void gvlist_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 7 || e.ColumnIndex == 8) { EmployeeSearch empSearch = new EmployeeSearch(this, e.RowIndex, Division, true); empSearch.Show(); } }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 2) { EmployeeSearch empSearch = new EmployeeSearch(this, e.RowIndex, strDiv); empSearch.Show(); } }
private void txtEmpNo_Leave(object sender, EventArgs e) { if (txtEmpNo.Text.Equals("?")) { EmployeeSearch empList = new EmployeeSearch(this, cmbDivision.SelectedValue.ToString(), "Fixed"); 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 (txtEmpNo.Text.Equals("?")) { EmployeeSearch empList = new EmployeeSearch(this, cmbDivision.SelectedValue.ToString(), "RFT"); empList.Show(); } else { if (e.KeyChar == 13) { if (txtEmpNo.Text.Trim() != "") { txtEmpNo.Text = txtEmpNo.Text.PadLeft(5, '0'); } txtEmpNo_LeaveChanged(); } } }
private void btnEmpSearch_Click(object sender, EventArgs e) { EmployeeSearch empList = new EmployeeSearch(this, cmbDivision.SelectedValue.ToString(), "Fixed"); empList.Show(); }