public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CR_Ve rpt = new CR_Ve(); rpt.Site = this.Site; return(rpt); }
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; }
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; }
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; } }