示例#1
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;
            }
        }
示例#2
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;
            }
        }