Esempio n. 1
0
        void EtatRappelTous()
        {
            DataSetBib ds = new DataSetBib();

            DataSetBibTableAdapters.eleveTableAdapter   daEleve = new DataSetBibTableAdapters.eleveTableAdapter();
            DataSetBibTableAdapters.demandeTableAdapter daDem   = new DataSetBibTableAdapters.demandeTableAdapter();
            DataSetBibTableAdapters.classeTableAdapter  daClass = new DataSetBibTableAdapters.classeTableAdapter();
            DataSetBibTableAdapters.livreTableAdapter   daLivre = new DataSetBibTableAdapters.livreTableAdapter();
            daEleve.Fill(ds.eleve);
            daLivre.Fill(ds.livre);
            daClass.Fill(ds.classe);
            daDem.Fill(ds.demande);

            CrystalReportRappelEleve repEleve = new CrystalReportRappelEleve();

            repEleve.SetDataSource(ds);
            crystalReportViewerTousEleves.ReportSource = repEleve;
        }
Esempio n. 2
0
        void EtatRappel()
        {
            int        id = int.Parse(comboEleve.SelectedValue.ToString());
            DataSetBib ds = new DataSetBib();

            DataSetBibTableAdapters.eleveTableAdapter   daEleve = new DataSetBibTableAdapters.eleveTableAdapter();
            DataSetBibTableAdapters.demandeTableAdapter daDem   = new DataSetBibTableAdapters.demandeTableAdapter();
            DataSetBibTableAdapters.classeTableAdapter  daClass = new DataSetBibTableAdapters.classeTableAdapter();
            DataSetBibTableAdapters.livreTableAdapter   daLivre = new DataSetBibTableAdapters.livreTableAdapter();
            daEleve.Fill(ds.eleve);
            daLivre.Fill(ds.livre);
            daClass.Fill(ds.classe);
            daDem.FillBy(ds.demande, id);

            CrystalReportRappelEleve repEleve = new CrystalReportRappelEleve();

            repEleve.SetDataSource(ds);
            crystalReportViewerRappelEleve.ReportSource = repEleve;
        }