示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptNhap rpt = new rptNhap();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void ShowNhap(DateTime tu, DateTime den)
 {
     try
     {
         DataTable   dt  = tNhap.SetData(tu, den);
         RPT.rptNhap rpt = new RPT.rptNhap();
         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_ShowNhap", ex.Message + "||" + ex.StackTrace);
     }
 }
示例#3
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptNhap rpt = new rptNhap();
     rpt.Site = this.Site;
     return rpt;
 }
示例#4
0
 private void ShowNhap(DateTime tu, DateTime den)
 {
     try
     {
         DataTable dt = tNhap.SetData(tu, den);
         RPT.rptNhap rpt = new RPT.rptNhap();
         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_ShowNhap", ex.Message + "||" + ex.StackTrace);
     }
 }