Пример #1
0
        private void simpleButton12_Click(object sender, EventArgs e)
        {
            rp_personel_iptal s = new rp_personel_iptal(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s.CreateDocument();
            dv_rapor.DocumentSource = s;
        }
Пример #2
0
        private void simpleButton13_Click(object sender, EventArgs e)
        {
            rp_adisyon_satis_raporu s1 = new rp_adisyon_satis_raporu(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s1.CreateDocument();
            rp_masa_grubuna_gore_satislar s2 = new rp_masa_grubuna_gore_satislar(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s2.CreateDocument();
            rp_masalara_gore_satislar s3 = new rp_masalara_gore_satislar(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s3.CreateDocument();
            rp_personel_satis s4 = new rp_personel_satis(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s4.CreateDocument();
            rp_urun_satislari s5 = new rp_urun_satislari(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s5.CreateDocument();
            rp_urun_kategori_satis s6 = new rp_urun_kategori_satis(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s6.CreateDocument();
            rp_ust_kategori_satis s7 = new rp_ust_kategori_satis(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s7.CreateDocument();
            rp_personel_ikram s8 = new rp_personel_ikram(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s8.CreateDocument();
            rp_personel_iptal s9 = new rp_personel_iptal(uc_tarih_sec2.ilk_tarih, uc_tarih_sec2.son_tarih);

            s9.CreateDocument();

            ReportPrintTool printTool1 = new ReportPrintTool(s1);

            try { printTool1.Print(text); } catch { printTool1.Print(); }
            ReportPrintTool printTool2 = new ReportPrintTool(s2);

            try { printTool2.Print(text); } catch { printTool2.Print(); }
            ReportPrintTool printTool3 = new ReportPrintTool(s3);

            try { printTool3.Print(text); } catch { printTool3.Print(); }
            ReportPrintTool printTool4 = new ReportPrintTool(s4);

            try { printTool4.Print(text); } catch { printTool4.Print(); }
            ReportPrintTool printTool5 = new ReportPrintTool(s5);

            try { printTool5.Print(text); } catch { printTool5.Print(); }
            ReportPrintTool printTool6 = new ReportPrintTool(s6);

            try { printTool6.Print(text); } catch { printTool6.Print(); }
            ReportPrintTool printTool7 = new ReportPrintTool(s7);

            try { printTool7.Print(text); } catch { printTool7.Print(); }
            ReportPrintTool printTool8 = new ReportPrintTool(s8);

            try { printTool8.Print(text); } catch { printTool8.Print(); }
            ReportPrintTool printTool9 = new ReportPrintTool(s9);

            try { printTool9.Print(text); } catch { printTool9.Print(); }
        }