Example #1
0
        private IList <MyXtraReport> RaporHazirla()
        {
            var raporlar   = new List <MyXtraReport>();
            var topluRapor = new MyXtraReport();

            topluRapor.CreateDocument();
            topluRapor.Baslik = "Toplu Rapor";
            topluRapor.PrintingSystem.ContinuousPageNumbering = false;

            foreach (var row in RowSelect.GetSelectedRows())
            {
                var entity = (Rapor)((RaporBll)bll).Single(x => x.Id == row.Id);
                var rapor  = entity.Dosya.ByteToStream().StreamToReport();
                ReportDataSource(rapor);
                rapor.CreateDocument();

                switch (txtYazdirmaSekli.Text.GetEnum <YazdirmaSekli>())
                {
                case YazdirmaSekli.TekTekYazdir:
                    raporlar.Add(rapor);
                    break;

                case YazdirmaSekli.TopluYazdir:
                    topluRapor.Pages.AddRange(rapor.Pages);
                    break;

                default:
                    break;
                }
            }

            if (topluRapor.Pages.Count == 0)
            {
                return(raporlar);
            }
            raporlar.Add(topluRapor);
            return(raporlar);
        }
Example #2
0
 protected override void Listele()
 {
     RowSelect?.ClearSelection();
     Tablo.GridControl.DataSource = ((RaporBll)bll).List(x => x.RaporBolumTuru == _raporBolumTuru && x.Durum == aktifKartlariGoster);
 }