/// <summary> /// 이름 또는 사번으로 검색 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSearch_Click(object sender, EventArgs e) { dataGridView1.DataSource = ""; if (txtSearch.Text == "") { Employee_Load(null, null); } else { bool a = false; if (cbFilter.Text == "사원번호") { a = true; } lst = empDAO.nameSelect(a, txtSearch.Text); dataGridView1.DataSource = lst; } ColumnSettingKorean(); TotalCount(); }
/// <summary> /// 사원또는 이름으로 검색 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSearch_Click(object sender, EventArgs e) { EmpDAO empDAO = new EmpDAO(); dataGridView1.DataSource = ""; if (txtSearch.Text == "") { Attendance_SearchEmpno_Load(null, null); } else { bool a = false; if (cbFilter.Text == "사원번호") { a = true; } lst = empDAO.nameSelect(a, txtSearch.Text); dataGridView1.DataSource = lst; } ColumnSetKor(); }