Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptSoQuy rpt = new rptSoQuy();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void Showtonghopthuchi(int thang, int nam)
 {
     try
     {
         DataTable dt = tcongno.Gettonghopthuchi(thang, nam);
         RPT.rptSoQuy rpt = new RPT.rptSoQuy();
         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("frmTonghopthuchi.cs.cs.Showtonghopthuchi", ex.Message + "||" + ex.StackTrace);
     }
 }
 private void Showtonghopthuchi(int thang, int nam)
 {
     try
     {
         DataTable    dt  = tcongno.Gettonghopthuchi(thang, nam);
         RPT.rptSoQuy rpt = new RPT.rptSoQuy();
         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("frmTonghopthuchi.cs.cs.Showtonghopthuchi", ex.Message + "||" + ex.StackTrace);
     }
 }
Beispiel #4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptSoQuy rpt = new rptSoQuy();
     rpt.Site = this.Site;
     return rpt;
 }