Esempio n. 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);
                DateTime dtFromDate = Util.GetDateTimeByString(txtFromDate.Text);
                DateTime dtToDate   = Util.GetDateTimeByString(txtToDate.Text);

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

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