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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptSoQuy rpt = new rptSoQuy();
     rpt.Site = this.Site;
     return rpt;
 }