Beispiel #1
0
        protected void btnPrintPreview_Click(object sender, EventArgs e)
        {
            ReportDAL rdal    = new ReportDAL();
            Result    oResult = new Result();
            Config    oConfig = (Config)Session[Constants.SES_USER_CONFIG];

            if (oConfig != null)
            {
                string   sCheckList = Util.GetCheckListIDList(chkLSpType);
                string   sRptType   = rdlStatus.SelectedValue;
                DateTime dtFromDate = Util.GetDateTimeByString(txtFromDate.Text);
                DateTime dtToDate   = Util.GetDateTimeByString(txtToDate.Text);

                oResult = rdal.AuditTrail(sRptType, sCheckList, dtFromDate, dtToDate, oConfig.BankCodeID, oConfig.DivisionID, oConfig.BranchID);

                if (oResult.Status)
                {
                    Session["ExportType"]           = ddlExportType.SelectedValue;
                    Session[Constants.SES_RPT_DATA] = oResult.Return;
                    Page.RegisterStartupScript(Constants.REPORT_WINDOW, Util.OpenReport());
                }
            }
        }