コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptSoQuy rpt = new rptSoQuy();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #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);
     }
 }
コード例 #3
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);
     }
 }
コード例 #4
0
ファイル: rptSoQuy.cs プロジェクト: dexonhud/pharmacykimhoang
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptSoQuy rpt = new rptSoQuy();
     rpt.Site = this.Site;
     return rpt;
 }