예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CrpThongKeTheLoaiSach rp = new CrpThongKeTheLoaiSach();

            rp.SetDataSource(LayDL(int.Parse(cbThang1.Text), int.Parse(txtNam1.Text)));
            crpViewerBCMuonSach.ReportSource = rp;
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrpThongKeTheLoaiSach rpt = new CrpThongKeTheLoaiSach();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #3
0
        private void formThongKeTheLoaiSach_Load_1(object sender, EventArgs e)
        {
            CrpThongKeTheLoaiSach rp = new CrpThongKeTheLoaiSach();

            rp.SetDataSource(LayDL(DateTime.Now.Month, DateTime.Now.Year));
            crpViewerBCMuonSach.ReportSource = rp;
            cbThang1.Text = DateTime.Now.Month.ToString();
            txtNam1.Text  = DateTime.Now.Year.ToString();
        }