Esempio n. 1
0
        private void initializeDataGrid()
        {
            PayrollControllerInterface payrollController = new PayrollController();
            List <Payslip>             payrollSheet      = payrollController.fetchPayroll();

            payrollSheetDataGridView.DataSource = ConvertListToDataTable(payrollSheet);
        }
Esempio n. 2
0
        private void loadPayrollList()
        {
            PayrollControllerInterface payrollController = new PayrollController();
            List <Payslip>             payroll           = payrollController.fetchPayroll();

            payrollListBox.Items.Clear();
            foreach (Payslip payslip in payroll)
            {
                payrollListBox.Items.Add(payslip.id + ".)" + payslip.startDatePeriod.ToString("MM/dd/yyyy") + " - " + payslip.endDatePeriod.ToString("MM/dd/yyyy") + " | " + payslip.employee.userAccount.username);
            }
        }