Exemple #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)
            {
                bool   bChkAccEntryOperator = chkAccEntryOper.Checked;
                string sAccountOperator     = ddlOperator.SelectedValue;

                bool   bChkJournalType = chkJournalType.Checked;
                string sJournalType    = ddlJournalType.SelectedValue;

                bool     bChkUploadDataRange = chkUploadDataRange.Checked;
                DateTime dtFromDate          = Util.GetDateTimeByString(txtFromDate.Text);
                DateTime dtToDate            = Util.GetDateTimeByString(txtToDate.Text);

                oResult = rdal.DataUploadReport(bChkAccEntryOperator, sAccountOperator, bChkJournalType, sJournalType, bChkUploadDataRange, 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());
                }
            }
        }