public void CreateReportDetailDocument(SBM_BLC1.Entity.Claim.InterestClaim oIClaim) { string sInterpaymentTransNos = GetInterestPaymentTransNo(txtReferenceNo.Text, false); ClaimReportDAL oCRDAL = new ClaimReportDAL(); Result oResult = new Result(); Config oConfig = (Config)Session[Constants.SES_USER_CONFIG]; if (oConfig != null) { Session["ExportType"] = ddlExportType.SelectedValue; string sRegNos = GetRegNo(); oResult = oCRDAL.InterestReportDetailDocument(oIClaim, sInterpaymentTransNos, sRegNos, oConfig.BranchID); if (oResult.Status) { Session[Constants.SES_RPT_DATA_2] = oResult.Return; Page.RegisterStartupScript(Constants.REPORT_WINDOW_2, Util.OpenReport2(2)); } else { throw new Exception(oResult.Message); } } }
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()); } } }
public void CreateReportDocument(SBM_BLC1.Entity.Claim.SalesStatement oSalesStatement) { 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) { int iReportFormat = 0; Result oResult = new Result(); Result oResult1 = new Result(); Result oResult2 = new Result(); SalesStatementDAL sDAL = new SalesStatementDAL(); Result oResultFormat = sDAL.GetSaleStatementReportFormat(ddlSpType.SelectedValue); if (oResultFormat.Status) { iReportFormat = (int)oResultFormat.Return; } if (iReportFormat.Equals((int)SBM_BLV1.baseCommon.enmSalesReportFormat.SP)) { oResult1 = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.BSPSalesDetails, oConfig.BranchID); if (isCoverLetter) { oResult = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.BSPSalesCoverLetter, oConfig.BranchID); } } else if (iReportFormat.Equals((int)SBM_BLV1.baseCommon.enmSalesReportFormat.DollarBond)) { oResult2 = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.DPBSalesDetails2, oConfig.BranchID); if (isCoverLetter) { oResult = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.DPBSalesCoverLetter, oConfig.BranchID); } } else if (iReportFormat.Equals((int)SBM_BLV1.baseCommon.enmSalesReportFormat.WDB)) { oResult1 = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.WEDBSalesDetais, oConfig.BranchID); if (isCoverLetter) { oResult = oCRDAL.SalesStatementReportDocument(oSalesStatement, GetRegistrationDetail(), (int)Constants.ReportType.WEDBSalesCoverLetter, oConfig.BranchID); } } Session["ExportType"] = ddlExportType.SelectedValue; if (oResult.Status) //cover letter { Session[Constants.SES_RPT_DATA] = oResult.Return as ReportDocument; Page.RegisterStartupScript(Constants.REPORT_WINDOW, Util.OpenReport2(1)); } if (oResult1.Status) { Session[Constants.SES_RPT_DATA_2] = oResult1.Return as ReportDocument; Page.RegisterStartupScript(Constants.REPORT_WINDOW_2, Util.OpenReport2(2)); //Session[Constants.SES_RPT_DATA] = oResult1.Return as ReportDocument; //Page.RegisterStartupScript(Constants.REPORT_WINDOW, Util.OpenReport()); } if (oResult2.Status) { Session[Constants.SES_RPT_DATA_2] = oResult2.Return as ReportDocument; Page.RegisterStartupScript(Constants.REPORT_WINDOW_2, Util.OpenReport2(2)); } } }