Exemplo n.º 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);
            }
        }
Exemplo n.º 2
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 != "△")
            {
                this.subreportChongji.Visible         = true;
                subChongji.PCFirstOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId;
            }
            else
            {
                lbl_TitleCJ.Visible           = false;
                lbl_TitleCJ.Text              = "";
                this.subreportChongji.Visible = false;
            }
        }
Exemplo n.º 3
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 != "△")
            {
                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;
            }
        }