private void btnReportDate_Click(object sender, EventArgs e) { Vacations vacForm = new Vacations(); vacForm.gdcVacation.DataSource = _vacationBL.GetByDate(dteReportFrom.DateTime, dteReportTo.DateTime); vacForm.Show(); }
private void btnReportChronological_Click(object sender, EventArgs e) { Vacations vacForm = new Vacations(); vacForm.gdcVacation.DataSource = _vacationBL.GetAll(); vacForm.Show(); }
private void btnReportDispatcher_Click(object sender, EventArgs e) { Vacations vacForm = new Vacations(); vacForm.gdcVacation.DataSource = _vacationBL.GetByDispatcher((TIS.Model.Internal.Employee)glouReportDispatcher.GetSelectedDataRow()); vacForm.Show(); }
private void btnReportAlphabetical_Click(object sender, EventArgs e) { Vacations vacForm = new Vacations(); vacForm.gdcVacation.DataSource = _vacationBL.GetAll().OrderBy(v => v.Employee.DisplayName); vacForm.Show(); }