Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptTonKho rpt = new rptTonKho();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
 //public void ShowKho()
 //{
 //    DataTable data = tKho.GetKho(0);
 //    cmbKho.DisplayMember = "TEN";
 //    cmbKho.ValueMember = "MAKHO";
 //    cmbKho.DataSource = data;
 //}
 private void Showreport(int thang, int nam)
 {
     DataTable dt = tTK.SetData(thang, nam);
     RPT.rptTonKho rpt = new RPT.rptTonKho();
     rpt.SetDataSource(dt);
     crystalReportViewer1.ReportSource = rpt;
     crystalReportViewer1.Refresh();
     dt.Clear();
 }
        //public void ShowKho()
        //{
        //    DataTable data = tKho.GetKho(0);
        //    cmbKho.DisplayMember = "TEN";
        //    cmbKho.ValueMember = "MAKHO";
        //    cmbKho.DataSource = data;

        //}
       
        private void Showreport(int thang, int nam)
        {
            DataTable dt = tTK.SetData(thang, nam);
            RPT.rptTonKho rpt = new RPT.rptTonKho();
            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
            crystalReportViewer1.Refresh();
            dt.Clear();
        }
Пример #4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptTonKho rpt = new rptTonKho();
     rpt.Site = this.Site;
     return rpt;
 }