コード例 #1
0
 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();
             }
         }
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 2)
     {
         EmployeeSearch empSearch = new EmployeeSearch(this, e.RowIndex, strDiv);
         empSearch.Show();
     }
 }
コード例 #4
0
 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();
         }
     }
 }
コード例 #5
0
 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();
         }
     }
 }
コード例 #6
0
        private void btnEmpSearch_Click(object sender, EventArgs e)
        {
            EmployeeSearch empList = new EmployeeSearch(this, cmbDivision.SelectedValue.ToString(), "Fixed");

            empList.Show();
        }