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

            rpt.Site = this.Site;
            return(rpt);
        }
 private void ShowXuat(DateTime tu, DateTime den)
 {
     try
     {
         DataTable   dt  = tXuat.SetData(tu, den);
         RPT.rptXuat rpt = new RPT.rptXuat();
         rpt.SetDataSource(dt);
         crystalReportViewer1.ReportSource = rpt;
         crystalReportViewer1.Refresh();
         dt.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kiểm tra lại thông tin");
         TLog.WriteErr("frmRptNhap.cs.cs_ShowXuat", ex.Message + "||" + ex.StackTrace);
     }
 }
Ejemplo n.º 3
0
 private void ShowXuat(DateTime tu, DateTime den)
 {
     try
     {
         DataTable dt = tXuat.SetData(tu, den);
         RPT.rptXuat rpt = new RPT.rptXuat();
         rpt.SetDataSource(dt);
         crystalReportViewer1.ReportSource = rpt;
         crystalReportViewer1.Refresh();
         dt.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kiểm tra lại thông tin");
         TLog.WriteErr("frmRptNhap.cs.cs_ShowXuat", ex.Message + "||" + ex.StackTrace);
     }
 }
Ejemplo n.º 4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptXuat rpt = new rptXuat();
     rpt.Site = this.Site;
     return rpt;
 }