示例#1
0
        public void Print()
        {
            DateTime?startDate;
            DateTime?endDate;
            string   empoloyees;
            string   departments;
            string   functions;

            startDate   = StartDate;
            endDate     = EndDate;
            empoloyees  = String.Join(", ", SelectedEmployees.Select(o => o.Id));
            departments = String.Join(", ", SelectedDepartments.Select(o => o.Id));
            functions   = String.Join(", ", SelectedFunctions.Select(o => o.Id));

            ReportResults = new BindableCollection <ReportResultsModel>(GlobalConfig.Connection.GetReportResults(startDate, endDate, empoloyees, departments, functions));


            //EventAggregationProvider.OutTurnEventAggregator.PublishOnUIThread(ReportResults);

            GetReportToPrint();

            manager.ShowDialog(new ReportShowViewModel(ReportResults, reportName), null, null);
        }