Beispiel #1
0
        private void subReportHD_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportHD subHD = this.subReportHD.ReportSource as subReportHD;

            if (this.GetCurrentRow() != null)
            {
                subHD._PCPGOnlineCheckDetailId = (this.GetCurrentRow() as Model.PCPGOnlineCheckDetail).PCPGOnlineCheckDetailId;
            }
        }
Beispiel #2
0
        private void subReportHD_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportHD subHD = this.subReportHD.ReportSource as subReportHD;

            if (this.tag == 1)
            {
                subHD._PCPGOnlineCheckDetailId = (this.GetCurrentRow() as DataRowView) == null ? "" : (this.GetCurrentRow() as DataRowView)["PCPGOnlineCheckDetailId"].ToString();
            }
            else
            {
                subHD._PCPGOnlineCheckDetailId = (this.GetCurrentRow() as Model.PCPGOnlineCheckDetail) == null ? "" : (this.GetCurrentRow() as Model.PCPGOnlineCheckDetail).PCPGOnlineCheckDetailId;
            }
        }