public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptTheodoicongno_ncc rpt = new rptTheodoicongno_ncc(); rpt.Site = this.Site; return(rpt); }
private void Showcongno(DateTime from, DateTime to) { DataTable dt = tcongno.SetData_NCC(from, to); RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc(); rpt.SetDataSource(dt); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.Refresh(); dt.Clear(); }
private void ShowcongnoNCC(string ten, DateTime from, DateTime to) { DataTable dt = new DataTable(); dt = tcongno.SetData_NCC(from, to); if (ten != "") { int i = 0; for (i = 0; i < dt.Rows.Count; i++) { if (dt.Rows[i]["kh"].ToString() != ten) { dt.Rows[i].Delete(); i -= 1; } } } RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc(); rpt.SetDataSource(dt); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.Refresh(); dt.Clear(); }
private void ShowcongnoNCC(string ten, DateTime from, DateTime to) { DataTable dt = new DataTable(); dt = tcongno.SetData_NCC(from, to); if (ten != "") { int i = 0; for (i = 0; i < dt.Rows.Count; i++) { if (dt.Rows[i]["kh"].ToString() != ten) { dt.Rows[i].Delete(); i -=1; } } } RPT.rptTheodoicongno_ncc rpt = new RPT.rptTheodoicongno_ncc(); rpt.SetDataSource(dt); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.Refresh(); dt.Clear(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptTheodoicongno_ncc rpt = new rptTheodoicongno_ncc(); rpt.Site = this.Site; return rpt; }