예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptXuat rpt = new rptXuat();
     rpt.Site = this.Site;
     return rpt;
 }