示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crfirma rpt = new crfirma();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void Firmalar()
        {
            Model.FirmaBul lst = Application.OpenForms["FirmaBul"] as Model.FirmaBul;
            crfirma        cr  = new crfirma();
            var            src = (from s in db.bgFirmalar
                                  select s).ToList();

            if (src != null)
            {
                Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim();
                DataTable dt = ch.ConvertTo(src);
                cr.SetDataSource(dt);
                crFirma.ReportSource = cr;
            }
        }
示例#3
0
        private void Firma()
        {
            Bilgi.frmFirma frm = Application.OpenForms["frmFirma"] as Bilgi.frmFirma;
            crfirma        cr  = new crfirma();

            int a = int.Parse(txtbox.Text);
            //  var lst = db.bgFirmalar.ToList();
            var lst = (from s in db.bgFirmalar
                       where s.Fno == a
                       select new { s.FirmaAdi, s.FirmaAdres, s.FirmaFax, s.BgFirmaTipi.Ftipi }).ToList();

            if (lst != null)
            {
                Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim();
                DataTable dt = ch.ConvertTo(lst);
                cr.SetDataSource(dt);
                crFirma.ReportSource = cr;
            }
        }