private void refresh(string pSearchString, string pDepartmentId) { try { dgvEmployeeList.DataSource = null; dgvDailyTimeRecord.DataSource = null; DataTable test = loDailyTimeRecord.getEmployeeListByType(cboEmploymentType.SelectedValue.ToString(), pSearchString, pDepartmentId); dgvEmployeeList.DataSource = test; displayDetails(); } catch { } }
public DataTable getEmployeeListByType(string pEmploymentTypeId, string pSearchString, string pDepartmentId) { return(loDailyTimeRecord.getEmployeeListByType(pEmploymentTypeId, pSearchString, pDepartmentId)); }