Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CR_NhapHang rpt = new CR_NhapHang();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
 private void frmCR_NhapHang_Load(object sender, EventArgs e)
 {
     using (DataNhapHang data = new DataNhapHang())
     {
         CR_NhapHang      cR_NhapHang = new CR_NhapHang();
         var              result      = data.sp_BillNhapHang().ToList();
         CollectionHelper ch          = new CollectionHelper();
         DataTable        dt          = ch.ConvertTo(result);
         cR_NhapHang.SetDataSource(dt);
         crNhapHang.ReportSource = cR_NhapHang;
     }
 }