Exemplo n.º 1
0
        public void CreateReportDocument(SBM_BLC1.Entity.Claim.CommissionClaim oCommClaim)
        {
            ClaimReportDAL oCRDAL        = new ClaimReportDAL();
            bool           isCoverLetter = false;

            foreach (ListItem item in chkListForBB.Items)
            {
                if (item.Selected)
                {
                    if (item.Value.Equals("With Cover Letter"))
                    {
                        isCoverLetter = true;
                    }
                    else
                    {
                    }
                }
            }

            Config oConfig = (Config)Session[Constants.SES_USER_CONFIG];

            if (oConfig != null)
            {
                Session["ExportType"] = ddlExportType.SelectedValue;
                Result oResult = oCRDAL.CommissionClaimReportDocument(oCommClaim, GetDataTable(), "", isCoverLetter, oConfig.BranchID);
                if (oResult.Status)
                {
                    Session[Constants.SES_RPT_DATA] = oResult.Return;
                    Page.RegisterStartupScript(Constants.REPORT_WINDOW, Util.OpenReport());
                }
            }
        }