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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        void LoadCRViewTheoChuyen(string idchuyen)
        {
            BUS_Ve    ve   = new BUS_Ve();
            DataTable dt   = ve.LoadVeTheoChuyen(idchuyen);
            CR_Ve     crVe = new CR_Ve();

            crVe.SetDataSource(dt);
            CRV_CX.ReportSource = crVe;
        }
Пример #3
0
        void LoadCRView()
        {
            BUS_Ve    ve   = new BUS_Ve();
            DataTable dt   = ve.LoadVe();
            CR_Ve     crVe = new CR_Ve();

            crVe.SetDataSource(dt);
            CRV_CX.ReportSource = crVe;
        }
Пример #4
0
 void LoadCRViewTheoTG()
 {
     if (cbChuyenXe.SelectedItem.ToString() == "ALL")
     {
         MessageBox.Show("Chọn Chuyến Cụ Thể Để Report Theo Ngày");
         return;
     }
     else
     {
         BUS_Ve    ve   = new BUS_Ve();
         DataTable dt   = ve.LoadVeTheoTG(cbChuyenXe.SelectedItem.ToString(), dpBatDau.Value, dpKetThuc.Value);
         CR_Ve     crVe = new CR_Ve();
         crVe.SetDataSource(dt);
         CRV_CX.ReportSource = crVe;
     }
 }