Beispiel #1
0
        private void SiparisAl()
        {
            frmSiparisAl stk = Application.OpenForms["frmSiparisAl"] as frmSiparisAl;
            rSiparisAl   ral = new rSiparisAl();
            var          lst = (from s in db.vwSiparisAls
                                where s.SiparisNo == int.Parse(MainPage.Aktar)
                                select s).ToList();

            if (lst != null)
            {
                PrintYardim ch = new PrintYardim(); //ch : crystal Help kısaltması.
                DataTable   dt = ch.ConverTo(lst);
                ral.SetDataSource(dt);
                crvPrint.ReportSource = ral;
            }
            MainPage.Aktar = "";
        }
Beispiel #2
0
        private void StokGiris()
        {
            frmStokGiris stk = Application.OpenForms["frmStokGiris"] as frmStokGiris;
            rStokGiris   rsg = new rStokGiris();
            var          lst = (from s in db.vwStokGiris
                                where s.StokGNo == int.Parse(MainPage.Aktar)
                                select s).ToList();

            if (lst != null)
            {
                PrintYardim ch = new PrintYardim(); //ch : crystal Help kısaltması.
                DataTable   dt = ch.ConverTo(lst);
                rsg.SetDataSource(dt);
                crvPrint.ReportSource = rsg;
            }
            MainPage.Aktar = "";
        }