示例#1
0
        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);
            }
        }
示例#2
0
文件: RO.cs 项目: daobataotie/Mobe
        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;
            }
        }
示例#3
0
文件: RO.cs 项目: daobataotie/EDERP
        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;
            }
        }