Ejemplo n.º 1
0
        IReportInfo GetReport(EmployeeReportType reportType)
        {
            Logger.Log(string.Format("HybridApp: Create Report : Employees: {0}", reportType.ToString()));
            switch (reportType)
            {
            case EmployeeReportType.TaskList:
                return(ReportInfoFactory.EmployeeTaskList(UnitOfWorkFactory.CreateUnitOfWork().Tasks.ToList()));

            case EmployeeReportType.Profile:
                return(ReportInfoFactory.EmployeeProfile(SelectedEntity));

            case EmployeeReportType.Summary:
                return(ReportInfoFactory.EmployeeSummary(Entities));

            case EmployeeReportType.Directory:
                return(ReportInfoFactory.EmployeeDirectory(Entities));
            }
            throw new ArgumentException("", "reportType");
        }
Ejemplo n.º 2
0
 public void PrintSummaryReport()
 {
     ShowReport(ReportInfoFactory.EmployeeSummary(Repository.ToList()), "Summary");
 }
Ejemplo n.º 3
0
 public void PrintSummaryReport()
 {
     ShowReport(ReportInfoFactory.EmployeeSummary(Entities), "Summary");
 }