Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptdsnvtheophong1 rpt = new rptdsnvtheophong1();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
 public frmrptbcnhanvien()
 {
     //frmchonbcnv.bcnhanvien(frmchonbcnv.maphong, frmchonbcnv.mato);
     InitializeComponent();
     if (frmchonbcnv.mato == "")
     {
         rptdsnvtheophong1 r = new rptdsnvtheophong1();
         r.SetDataSource(frmchonbcnv.bcnhanvien(frmchonbcnv.maphong));
         this.rptbcnhanvien.ReportSource = r;
     }
     else
     {
         rptbcnvtheoto r = new rptbcnvtheoto();
         r.SetDataSource(frmchonbcnv.bcnhanvien(frmchonbcnv.maphong, frmchonbcnv.mato));
         this.rptbcnhanvien.ReportSource = r;
     }
 }