Exemplo n.º 1
0
        private void BindData()
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource3 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource4 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource5 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource6 = new Microsoft.Reporting.WinForms.ReportDataSource();

            IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable avgTutorRatingNoTraining = new IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable();
            avgTutorRatingNoTraining.Constraints.Clear();
            _averageTutorRatingWithoutTrainingTableAdapter.Fill(avgTutorRatingNoTraining);
            avgTutorRatingNoTraining.TableName = "AverageTutorRatingWithoutTraining";

            reportDataSource1.Name  = "StudentEngagementStatuses";
            reportDataSource1.Value = _studenTEngagementStatusTableAdapter1.GetData();
            reportDataSource2.Name  = "DisengagedStudents";
            reportDataSource2.Value = _disengageDStudentsTableAdapter1.GetData();
            reportDataSource3.Name  = "DisengagedStudentsAggregate";
            reportDataSource3.Value = _disengageDStudentsAggregateTableAdapter1.GetData();
            reportDataSource4.Name  = "StudentsAggregate";
            reportDataSource4.Value = _studentSAggregateTableAdapter1.GetData();
            reportDataSource5.Name  = "AverageRatings";
            reportDataSource5.Value = _averageRatingsTableAdapter.GetData();
            reportDataSource6.Name  = "AverageTutorRatingWithoutTraining";
            reportDataSource6.Value = avgTutorRatingNoTraining;
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource2);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource3);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource4);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource5);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource6);
        }
        private void BindData()
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource3 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource4 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource5 = new Microsoft.Reporting.WinForms.ReportDataSource();
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource6 = new Microsoft.Reporting.WinForms.ReportDataSource();

            IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable avgTutorRatingNoTraining = new IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable();
            avgTutorRatingNoTraining.Constraints.Clear();
            _averageTutorRatingWithoutTrainingTableAdapter.Fill(avgTutorRatingNoTraining);
            avgTutorRatingNoTraining.TableName = "AverageTutorRatingWithoutTraining";

            reportDataSource1.Name = "StudentEngagementStatuses";
            reportDataSource1.Value = _studenTEngagementStatusTableAdapter1.GetData();
            reportDataSource2.Name = "DisengagedStudents";
            reportDataSource2.Value = _disengageDStudentsTableAdapter1.GetData();
            reportDataSource3.Name = "DisengagedStudentsAggregate";
            reportDataSource3.Value = _disengageDStudentsAggregateTableAdapter1.GetData();
            reportDataSource4.Name = "StudentsAggregate";
            reportDataSource4.Value = _studentSAggregateTableAdapter1.GetData();
            reportDataSource5.Name = "AverageRatings";
            reportDataSource5.Value = _averageRatingsTableAdapter.GetData();
            reportDataSource6.Name = "AverageTutorRatingWithoutTraining";
            reportDataSource6.Value = avgTutorRatingNoTraining;
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource2);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource3);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource4);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource5);
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource6);
        }
        private void BindData()
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();

            IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable avgTutorRatingNoTraining = new IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable();
            avgTutorRatingNoTraining.Constraints.Clear();
            _averageTutorRatingWithoutTrainingTableAdapter.Fill(avgTutorRatingNoTraining);
            avgTutorRatingNoTraining.TableName = "AverageTutorRatingWithoutTraining";

            reportDataSource1.Name  = "AverageTutorRatingWithoutTraining";
            reportDataSource1.Value = avgTutorRatingNoTraining;
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
        }
        private void BindData()
        {
            Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();

            IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable avgTutorRatingNoTraining = new IS2G10_DBSSSDataSet.AVERAGE_TUTOR_RATING_WITHOUT_TRAININGDataTable();
            avgTutorRatingNoTraining.Constraints.Clear();
            _averageTutorRatingWithoutTrainingTableAdapter.Fill(avgTutorRatingNoTraining);
            avgTutorRatingNoTraining.TableName = "AverageTutorRatingWithoutTraining";

            reportDataSource1.Name = "AverageTutorRatingWithoutTraining";
            reportDataSource1.Value = avgTutorRatingNoTraining;
            this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
        }