Example #1
0
        private void urunkayitt()
        {
            frmUrunKayitListe kl = Application.OpenForms["UrunKayitListe"] as frmUrunKayitListe; //Açık olan form için yazıyoruz..
            UrunKayitListesi  cr = new UrunKayitListesi();                                       //cr crystal report kısaltması..
            var lst = (from s in _db.vwUKLs                                                      //bu bilgiyi bgku
                       select s).ToList();

            if (lst != null)
            {
                PrintYardım ch = new PrintYardım(); //ch crystal help kısası..
                DataTable   dt = ch.ConvertTo(lst); //listeyi crystal report a göre çevirsin..
                cr.SetDataSource(dt);
                crvPrint.ReportSource = cr;
            }
        }
        public int UrunKayitListesi(bool secim = false)
        {
            var frm = new frmUrunKayitListe();

            if (secim)
            {
                frm.Secim = true;
                frm.ShowDialog();
            }
            else
            {
                frm.MdiParent = Form.ActiveForm;
                frm.Show();
            }
            return(frmAnasayfa.IAktarma);
        }
Example #3
0
        public int UrunKayitListe(bool secim = false)
        {
            frmUrunKayitListe ul = new frmUrunKayitListe();

            if (secim)//Eğer true ise ifadesidir.
            {
                ul.Secim = true;
                ul.ShowDialog();
            }
            else
            {
                ul.MdiParent = Form.ActiveForm;
                ul.Show();
            }
            return(AnaSayfa.Aktarma);
        }