private void LoadPayroll() { var payroll = payrollRepository.GetTop(50, Store.ActiveMonth, Store.ActiveYear); lvwData.Items.Clear(); foreach (var s in payroll) { PopulatePayroll(s); } }
private void FillCode() { var payroll = payrollRepository.GetTop(50, Store.ActiveMonth, Store.ActiveYear); lstData.Items.Clear(); foreach (var s in payroll) { lstData.Items.Add(s.EmployeeId); } if (lstData.Items.Count > 0) { lstData.SelectedIndex = 0; } }