private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck; Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail; if (detail != null && detail.Chongji != "△") { subChongji.PCImpactCheck = new Book.BL.PCImpactCheckManager().PFCGetFirst(detail.PCFirstOnlineCheckDetailId); } }
private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck; Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail; if (detail != null && detail.Chongji != "△") { this.subreportChongji.Visible = true; subChongji.PCFirstOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId; } else { lbl_TitleCJ.Visible = false; lbl_TitleCJ.Text = ""; this.subreportChongji.Visible = false; } }
private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck; Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail; if (detail != null && detail.Chongji != "△") { this.subreportChongji.Visible = true; subChongji.PCImpactCheck = new Book.BL.PCImpactCheckManager().PFCGetFirst(detail.PCFirstOnlineCheckDetailId); //if (subChongji.PCImpactCheck == null) //{ // this.subreportChongji.HeightF = 0; // this.subreportChongji.ReportSource = null; // this.subreportChongji.Visible = false; //} } else { this.subreportChongji.Visible = false; } }