예제 #1
0
        private void CDRAP02_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            CDRAP02_01 detail1 = xrSubreport1.ReportSource as CDRAP02_01;
            CDRAP02_02 detail2 = xrSubreport2.ReportSource as CDRAP02_02;

            DevExpress.XtraReports.UI.XtraReport rptTmp = (DevExpress.XtraReports.UI.XtraReport)sender;

            detail1.DataSource = rptTmp.DataSource;
            detail1.DataMember = "dt";

            detail2.DataSource = rptTmp.DataSource;
            detail2.DataMember = "dtDetailAll";
        }
예제 #2
0
        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            CDRAP02_01 detail1 = xrSubreport1.ReportSource as CDRAP02_01;
            CDRAP02_02 detail2 = xrSubreport2.ReportSource as CDRAP02_02;


            detail1.FilterString = "";
            detail2.FilterString = "";


            detail1.paramID1.Value = GetCurrentColumnValue("RSV_NO");
            detail1.FilterString   = "[RSV_NO] = ?paramID1";

            detail2.paramID2.Value = GetCurrentColumnValue("RSV_NO");
            detail2.FilterString   = "[RSV_NO_MASK] = ?paramID2";
        }