using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using System.Drawing; using System.Data; using FastReport; using FastReport.Data; using FastReport.Dialog; using FastReport.Barcode; using FastReport.Table; using FastReport.Utils; namespace FastReport { public class ReportScript { string dct=""; private void Text6_AfterData(object sender, EventArgs e) { dct = Text6.Text; if(dct.Equals("no")) { Subreport6.Visible = false; } Text6.Visible = false; } string tz=""; private void Text4_AfterData(object sender, EventArgs e) { tz = Text4.Text; if(tz.Equals("no")) { Subreport1.Visible = false; } Text4.Visible = false; } string gn=""; private void Text5_AfterData(object sender, EventArgs e) { gn = Text5.Text; if(gn.Equals("no")) { Subreport2.Visible = false; } Text5.Visible = false; } string hy=""; private void Text7_AfterData(object sender, EventArgs e) { hy = Text7.Text; if(hy.Equals("no")) { Subreport3.Visible = false; } Text7.Visible = false; } } }