Esempio n. 1
0
        public void showPlanSummary()
        {
            //if (SessionWrapper.AlacartReportList.Count != 0)
            //{
            List <int> alacartRptIDList = SessionWrapper.AlacartReportList;

            List <Report> alacartReportList = new List <Report>();
            Report        report;
            decimal       reportTotalPrice = 0;

            foreach (int reportID in alacartRptIDList)
            {
                report           = new Report();
                report           = PlanHelper.GetReportByReportID(reportID);
                reportTotalPrice = reportTotalPrice + report.Price.Value;
                alacartReportList.Add(report);
            }
            rptBasicReportList.DataSource = alacartReportList;
            rptBasicReportList.DataBind();

            lblTotalPrice.Text             = reportTotalPrice.ToString("C");
            hdnTotalPriceWithoutDisc.Value = reportTotalPrice.ToString();
            ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setReportListWidth();", true);
            //}
        }
Esempio n. 2
0
        public void showPlanSummary()
        {
            decimal reportTotalPrice = 0;

            int     selectedPlanId = SessionWrapper.OrderDetail.PlanId;
            Plan    plan           = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId);
            Decimal PlanPrice      = (plan == null) ? 0 : plan.Rate;

            lblPlanPrice.Text = PlanPrice.ToString("C");
            //Get plan reports for display

            List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId);

            rptBasicReportList.DataSource = reports;
            rptBasicReportList.DataBind();

            reportTotalPrice = PlanPrice;

            string planName = PlanHelper.GetPlan(selectedPlanId).Name.ToString();

            if (planName == "Basic")
            {
                imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_basic_2.png";
            }
            if (planName == "Gold")
            {
                imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_gold_2.png";
            }
            if (planName == "Platinum")
            {
                imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_platinum_2.png";
            }

            if (SessionWrapper.AlacartReportList.Count != 0)
            {
                List <int> alacartRptIDList = SessionWrapper.AlacartReportList;

                List <Report> alacartReportList = new List <Report>();
                Report        report;

                foreach (int reportID in alacartRptIDList)
                {
                    report           = new Report();
                    report           = PlanHelper.GetReportByReportID(reportID);
                    reportTotalPrice = reportTotalPrice + report.Price.Value;
                    alacartReportList.Add(report);
                }
                rptOptionalReportList.DataSource = alacartReportList;
                rptOptionalReportList.DataBind();
            }
            else
            {
                List <Report> alacartReportList = new List <Report>();
                rptOptionalReportList.DataSource = alacartReportList;
                rptOptionalReportList.DataBind();
            }
            lblTotalPrice.Text             = reportTotalPrice.ToString("C");
            hdnTotalPriceWithoutDisc.Value = reportTotalPrice.ToString();
        }
Esempio n. 3
0
        public static OrderHistoryData GetIncludeReportList(int OrderId)
        {
            //var isAdmin = SessionWrapper.LoggedUser.Email == Constant.CONST_CMS_ADMIN_USERID ? true : SessionWrapper.LoggedUser.IsAdmin ? true : false;

            var isAdmin = null;

            OrderHistoryData orderHistoryData;

            orderHistoryData = new OrderHistoryData();
            decimal             totalPrice   = 0;
            List <OrderHistory> orders       = OrderHistoryHelper.GetOrders(SessionWrapper.LoggedUser.UserId, isAdmin);
            OrderHistory        orderHistory = orders.Where(ord => ord.OrderId == OrderId).FirstOrDefault();

            orderHistoryData.packageName  = orderHistory.Plan;
            orderHistoryData.packagePrice = orderHistory.OrderTypeName != Constant.UNCOVER_BACKGROUND ? orderHistory.Price.ToString("C") : string.Empty;
            orderHistoryData.paidPrice    = orderHistory.Paid.ToString("C");

            if (orderHistory.OrderTypeName != Constant.UNCOVER_BACKGROUND)
            {
                orderHistoryData.basicReportList = OrderStatusHelper.GetReportList(OrderId);
                orderHistoryData.basicReportList.Sort();
            }
            List <EknowIDModel.AlacartReport> additionalReportList = OrderStatusHelper.GetAdditionalReportList(OrderId);

            totalPrice = orderHistory.Price;
            Report                 report;
            AlacarteReports        alacarteReport;
            List <AlacarteReports> alacartReportList = new List <AlacarteReports>();

            foreach (EknowIDModel.AlacartReport alacartReport in additionalReportList)
            {
                report                    = new Report();
                alacarteReport            = new AlacarteReports();
                report                    = PlanHelper.GetReportByReportID(alacartReport.ReportId);
                alacarteReport.reportName = report.Name;
                alacarteReport.Price      = report.Price.Value;;
                totalPrice                = totalPrice + report.Price.Value;
                alacartReportList.Add(alacarteReport);
            }

            orderHistoryData.totalPrice           = totalPrice.ToString("C");
            orderHistoryData.additionalReportList = alacartReportList;
            orderHistoryData.OrderType            = orderHistory.OrderTypeName;

            orderHistoryData.discountPrice = orderHistory.ReportDiscount;

            return(orderHistoryData);
        }
        public void showPlanSummary()
        {
            if (SessionWrapper.AlacartReportList.Count != 0)
            {
                List <int> alacartRptIDList = SessionWrapper.AlacartReportList;

                List <Report> alacartReportList = new List <Report>();
                Report        report;
                decimal       reportTotalPrice = 0;
                foreach (int reportID in alacartRptIDList)
                {
                    report           = new Report();
                    report           = PlanHelper.GetReportByReportID(reportID);
                    reportTotalPrice = reportTotalPrice + report.Price.Value;
                    alacartReportList.Add(report);
                }
                rptBasicReportList.DataSource = alacartReportList;
                rptBasicReportList.DataBind();
                lblTotalPrice.Text = reportTotalPrice.ToString("C");
            }
        }
        private List <PlanReportData> setCriminalPlanData(int reportTypeID)
        {
            int professionID = SessionWrapper.OrderDetail.ProfessionId;

            Report requireReportData;
            List <PlanReportData> ReportList = new List <PlanReportData>();

            PlanReportData    ReportData;
            List <Report>     reports    = PlanHelper.GetReportListByReportTypeId(reportTypeID);
            List <ReportList> PlanIdList = PlanHelper.GetPlanID(professionID);

            String[] strVal = String.Format("{0:0.00}", PlanIdList[0].Rate).Split(new char[] { '.' }, StringSplitOptions.None);
            lblBasicPrice.Text   = strVal[0] + "." + strVal[1];
            hdnBasicPlanID.Value = PlanIdList[0].PlanID.ToString();
            basicPlanId          = PlanIdList[0].PlanID;

            strVal              = String.Format("{0:0.00}", PlanIdList[1].Rate).Split(new char[] { '.' }, StringSplitOptions.None);
            lblGoldPrice.Text   = strVal[0] + "." + strVal[1];
            hdnGoldPlanID.Value = PlanIdList[1].PlanID.ToString();
            GoldPlanId          = PlanIdList[1].PlanID;

            strVal = String.Format("{0:0.00}", PlanIdList[2].Rate).Split(new char[] { '.' }, StringSplitOptions.None);
            lblPlatniumPrice.Text   = strVal[0] + "." + strVal[1];
            hdnPlatinumPlanID.Value = PlanIdList[2].PlanID.ToString();
            PlatniumPlanId          = PlanIdList[2].PlanID;

            foreach (Report report in reports)
            {
                requireReportData         = new Report();
                ReportData                = new PlanReportData();
                ReportData.Name           = report.Name;
                ReportData.Description    = report.Description;
                ReportData.TurnaroundTime = "(" + report.TurnaroundTime + ")";
                ReportData.Basic          = false;
                ReportData.Gold           = false;
                ReportData.Platinum       = false;
                ReportData.Resume         = false;

                if (PlanIdList[0].ReportNameList.Contains(report.Name))
                {
                    ReportData.Basic       = true;
                    requireReportData.Name = report.Name;
                    basicReportList.Add(requireReportData);
                }

                if (PlanIdList[1].ReportNameList.Contains(report.Name))
                {
                    ReportData.Gold        = true;
                    requireReportData.Name = report.Name;
                    goldReportList.Add(requireReportData);
                }
                if (PlanIdList[2].ReportNameList.Contains(report.Name))
                {
                    ReportData.Platinum    = true;
                    requireReportData.Name = report.Name;
                    PlatinumReportList.Add(requireReportData);
                }
                if (ReportData.Basic == true || ReportData.Gold == true || ReportData.Platinum == true)
                {
                    ReportList.Add(ReportData);
                }
            }
            if (reportTypeID == Constant.MISCELLANEOUS_REPORT_TYPE)
            {
                Report         ResumeCheckerReport = PlanHelper.GetReportByReportID(Constant.RESUMECHECKER_REPORT_ID);
                PlanReportData PlanReportData      = new Pages.PlanReportData();
                PlanReportData.Resume         = true;
                PlanReportData.Name           = ResumeCheckerReport.Name;
                PlanReportData.Description    = ResumeCheckerReport.Description;
                PlanReportData.TurnaroundTime = "(" + ResumeCheckerReport.TurnaroundTime + ")";
                ReportList.Add(PlanReportData);
            }

            return(ReportList);
        }
Esempio n. 6
0
        public void SetSummaryData(string userName, string TransactionID, int orderID, string totalReportCost, string discountOffered)
        {
            //Show payment summary
            int     selectedPlanId = SessionWrapper.OrderDetail.PlanId;
            string  selectedProf;
            Decimal PlanPrice = 0;

            if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND)
            {
                selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId);
                PlanPrice    = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).Rate;
                Decimal discountRate = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).RateOff;
                List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId);
            }
            else
            {
                selectedProf = Constant.UNCOVER_BACKGROUND;
            }


            Decimal OptionalReportsPrice = 0;


            if (SessionWrapper.AlacartReportList.Count != 0)
            {
                List <int> alacartRptIDList = SessionWrapper.AlacartReportList;

                List <Report> alacartReportList = new List <Report>();
                Report        report;

                foreach (int reportID in alacartRptIDList)
                {
                    report = new Report();
                    report = PlanHelper.GetReportByReportID(reportID);
                    OptionalReportsPrice += report.Price.Value;
                }
            }
            lblName.Text          = userName;
            lblTransID.Text       = TransactionID;
            lblOrdNo.Text         = orderID.ToString();
            lblOptRptCost.Text    = OptionalReportsPrice.ToString("C");
            lblDiscountOffer.Text = "- " + discountOffered;
            lblPurchaseDt.Text    = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Now.Month) + " " + DateTime.Now.Date.ToString("dd") + " " + DateTime.Now.Year;
            lblTransAmount.Text   = totalReportCost;
            lblSelectedProf.Text  = selectedProf;

            if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND)
            {
                lblPackageName.Text = PlanHelper.GetPlan(selectedPlanId).Name.ToString();
                lblRptCost.Text     = PlanHelper.GetPlan(selectedPlanId).Rate.ToString("C");
            }

            //Payment Success mail to user
            StringBuilder emailBodyPayment = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE));

            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_LASTNAME, SessionWrapper.LoggedUser.LastName);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONID, TransactionID);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString());
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PROFESSION, selectedProf);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C"));
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text);
            emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost);


            StringBuilder emailBodyPaymentSupport = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE_SUPPORT));

            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_USEREMAILID, SessionWrapper.LoggedUser.Email);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONID, TransactionID);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString());
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PROFESSION, selectedProf);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C"));
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text);
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost);

            StringBuilder reportList = new StringBuilder("");
            List <string> lstReport  = new List <string>();
            //lstReport = OrderStatusHelper.GetReportList(orderID);
            List <Report> reportNameList = PlanHelper.GetPlanReports(selectedPlanId);

            string reportName = string.Empty;

            foreach (Report report in reportNameList)
            {
                reportName = report.Name;
                lstReport.Add(reportName);
            }

            if (SessionWrapper.AlacartReportList.Count != 0)
            {
                List <int> alacartRptIDList = SessionWrapper.AlacartReportList;
                Report     report;

                foreach (int reportID in alacartRptIDList)
                {
                    report = new Report();
                    report = PlanHelper.GetReportByReportID(reportID);
                    lstReport.Add(report.Name);
                }
            }


            lstReport.Sort();
            reportList = reportList.Append("<ul>");

            for (int count = 0; count < lstReport.Count; count++)
            {
                reportName = "<li>" + lstReport[count] + "</li>";
                reportList = reportList.Append(reportName);
            }
            reportList = reportList.Append("</ul>");

            emailBodyPayment        = emailBodyPayment.Replace("divReportList", reportList.ToString());
            emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("divReportList", reportList.ToString());

            if (selectedProf != Constant.UNCOVER_BACKGROUND)
            {
                emailBodyPayment        = emailBodyPayment.Replace("display:none;", "");
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("display:none;", "");
            }


            SendMail.Sendmail(SessionWrapper.LoggedUser.Email, Constant.CONST_PAYMENT_SUCCESS, emailBodyPayment.ToString());

            SendMail.Sendmail(Constant.ADMINEMAIL, Constant.CONST_PAYMENT_SUCCESS_SUPPORT, emailBodyPaymentSupport.ToString());

            if (SessionWrapper.ModuleName == Constant.UNCOVER_BACKGROUND)
            {
                ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setUncoverBg();", true);
            }
        }
        protected void showPlanSummary()
        {
            decimal reportTotalPrice = 0;

            int     selectedPlanId = SessionWrapper.OrderDetail.PlanId;
            Plan    plan           = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId);
            Decimal PlanPrice      = (plan == null) ? 0 : plan.Rate;

            lblPlanPrice.Text = PlanPrice.ToString("C");
            //Get plan reports for display
            var accessFees  = SessionWrapper.AlacartAccessFees;
            var holdingFees = SessionWrapper.HoldingFees;

            List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId);

            rptBasicReportList.DataSource = reports;
            rptBasicReportList.DataBind();

            reportTotalPrice = PlanPrice;
            if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND)
            {
                string planName = PlanHelper.GetPlan(selectedPlanId).Name.ToString();

                if (planName == "Basic")
                {
                    imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_basic_2.png";
                }
                if (planName == "Gold")
                {
                    imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_gold_2.png";
                }
                if (planName == "Platinum")
                {
                    imgPaymentHeader.ImageUrl = "~/Images/payment_checkout_platinum_2.png";
                }
            }
            else
            {
                imgPaymentHeader.ImageUrl = "~/Images/checkout_blue.png";
            }
            if (SessionWrapper.AlacartReportList.Count != 0)
            {
                List <int>            alacartRptIDList        = SessionWrapper.AlacartReportList;
                Dictionary <int, int> alacartRptIDListWithQty = SessionWrapper.AlacartReportListWithQty;
                List <Report>         alacartReportList       = new List <Report>();
                Report report;

                foreach (int reportID in alacartRptIDList)
                {
                    report = new Report();
                    report = PlanHelper.GetReportByReportID(reportID);
                    var qty = report.qty = (null != alacartRptIDListWithQty && alacartRptIDListWithQty.Any(p => p.Key.Equals(reportID))) ? alacartRptIDListWithQty[reportID] : 1;
                    if ("State Criminal Records" == report.Name)
                    {
                        reportTotalPrice = reportTotalPrice + (report.Price.Value * qty);
                    }
                    else
                    {
                        reportTotalPrice = reportTotalPrice + (report.Price.Value * qty);
                    }
                    alacartReportList.Add(report);
                }
                reportTotalPrice += holdingFees + accessFees;
                rptOptionalReportList.DataSource = alacartReportList;
                rptOptionalReportList.DataBind();
            }
            else
            {
                List <Report> alacartReportList = new List <Report>();
                rptOptionalReportList.DataSource = alacartReportList;
                rptOptionalReportList.DataBind();
            }
            lblTotalPrice.Text             = reportTotalPrice.ToString("C");
            hdnTotalPriceWithoutDisc.Value = reportTotalPrice.ToString();

            if (0 < accessFees)
            {
                divAccessFees.Visible = true;
                lblAccessFees.Text    = accessFees.ToString("C");
            }
            if (0 < holdingFees)
            {
                divHoldingFees.Visible = true;
                lblHoldingFees.Text    = holdingFees.ToString("C");
            }
        }
Esempio n. 8
0
        public void SetSummaryData()
        {
            try
            {
                string  userName        = string.Empty;
                string  TransactionID   = string.Empty;
                int     orderID         = 0;
                string  totalReportCost = string.Empty;
                string  accessFees      = string.Empty;
                string  holdingFees     = string.Empty;
                Decimal discountOffered = 0;
                int     selectedPlanId  = SessionWrapper.OrderDetail.PlanId;
                string  selectedProf;
                Decimal PlanPrice = 0;

                if (SessionWrapper.PaymentDetails != null)
                {
                    userName        = SessionWrapper.PaymentDetails.userName;
                    orderID         = SessionWrapper.PaymentDetails.orderID;
                    totalReportCost = SessionWrapper.PaymentDetails.totalReportCost;
                    discountOffered = SessionWrapper.PaymentDetails.discountOffered;
                    TransactionID   = SessionWrapper.PaymentDetails.TransactionID;
                }


                if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND)
                {
                    selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId);
                    PlanPrice    = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).Rate;
                    Decimal discountRate = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).RateOff;
                    List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId);
                }
                else
                {
                    if (SessionWrapper.ResumeRuleCheck.isResumeModule == true)
                    {
                        selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId);
                    }
                    else
                    {
                        selectedProf = Constant.UNCOVER_BACKGROUND;
                    }
                }

                Decimal OptionalReportsPrice = 0;

                decimal otherCharges = 0;

                if (SessionWrapper.AlacartReportList.Count != 0)
                {
                    List <int>            alacartRptIDList         = SessionWrapper.AlacartReportList;
                    Dictionary <int, int> alacartReportListWithQty = SessionWrapper.AlacartReportListWithQty;
                    List <Report>         alacartReportList        = new List <Report>();
                    Report report;

                    foreach (int reportID in alacartRptIDList)
                    {
                        var qty = (null != alacartReportListWithQty && alacartReportListWithQty.ContainsKey(reportID)) ? alacartReportListWithQty[reportID] : 1;
                        report = new Report();
                        report = PlanHelper.GetReportByReportID(reportID);
                        OptionalReportsPrice += (qty * report.Price.Value);
                        if ("Education Verification" == report.Name || "Employment Verification" == report.Name)
                        {
                            otherCharges += (25 * qty);
                        }
                    }
                }

                string moduleName = SessionWrapper.ModuleName;
                moduleName    = SessionWrapper.ResumeRuleCheck.isResumeModule == true ? Constant.RESUME_CHECKER : moduleName;
                otherCharges += SessionWrapper.AlacartAccessFees;
                accessFees    = otherCharges.ToString("C");

                lblName.Text          = userName;
                lblTransID.Text       = TransactionID;
                lblOrdNo.Text         = orderID.ToString();
                lblOptRptCost.Text    = OptionalReportsPrice.ToString("C");
                lblDiscountOffer.Text = "- " + discountOffered.ToString("C");
                lblPurchaseDt.Text    = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Now.Month) + " " + DateTime.Now.Date.ToString("dd") + " " + DateTime.Now.Year;
                lblTransAmount.Text   = totalReportCost;
                lblSelectedProf.Text  = selectedProf;
                lblModuleName.Text    = moduleName;
                lblOtherCharges.Text  = accessFees;
                if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND)
                {
                    lblPackageName.Text = PlanHelper.GetPlan(selectedPlanId).Name.ToString();
                    lblRptCost.Text     = PlanHelper.GetPlan(selectedPlanId).Rate.ToString("C");
                }

                //Payment Success mail to user
                StringBuilder emailBodyPayment = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE));
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_LASTNAME, SessionWrapper.LoggedUser.LastName);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONID, TransactionID);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString());
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PROFESSION, selectedProf);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C"));
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_MODULENAME, moduleName);
                emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OTHERCHARGES, accessFees);


                StringBuilder emailBodyPaymentSupport = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE_SUPPORT));
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_USEREMAILID, SessionWrapper.LoggedUser.Email);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONID, TransactionID);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString());
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PROFESSION, selectedProf);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C"));
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_MODULENAME, moduleName);
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OTHERCHARGES, accessFees);

                StringBuilder reportList     = new StringBuilder("");
                List <string> lstReport      = new List <string>();
                List <Report> reportNameList = PlanHelper.GetPlanReports(selectedPlanId);

                string reportName = string.Empty;
                foreach (Report report in reportNameList)
                {
                    reportName = report.Name;
                    lstReport.Add(reportName);
                }

                if (SessionWrapper.AlacartReportList.Count != 0)
                {
                    List <int> alacartRptIDList = SessionWrapper.AlacartReportList;
                    Report     report;

                    foreach (int reportID in alacartRptIDList)
                    {
                        report = new Report();
                        report = PlanHelper.GetReportByReportID(reportID);
                        lstReport.Add(report.Name);
                    }
                }


                lstReport.Sort();
                reportList = reportList.Append("<ul>");

                for (int count = 0; count < lstReport.Count; count++)
                {
                    reportName = "<li>" + lstReport[count] + "</li>";
                    reportList = reportList.Append(reportName);
                }
                reportList = reportList.Append("</ul>");

                emailBodyPayment        = emailBodyPayment.Replace("divReportList", reportList.ToString());
                emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("divReportList", reportList.ToString());

                if (selectedProf == Constant.UNCOVER_BACKGROUND)
                {
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST);

                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST);

                    lblAddReportCost.Text = "Alacart Report(s) Cost:";
                }

                if (selectedProf == Constant.IDENTITY_THEFT)
                {
                    emailBodyPayment        = emailBodyPayment.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS);
                }

                if (moduleName == Constant.RESUME_CHECKER)
                {
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST);

                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS);
                    emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST);

                    lblAddReportCost.Text = "Alacart Report(s) Cost:";
                }

                if (SessionWrapper.PaymentDetails != null && SessionWrapper.PaymentDetails.isPaymentNotificationSend == false)
                {
                    SendMail.Sendmail(SessionWrapper.LoggedUser.Email, Constant.CONST_PAYMENT_SUCCESS, emailBodyPayment.ToString());
                    SendMail.Sendmail(Constant.ADMINEMAIL, Constant.CONST_PAYMENT_SUCCESS_SUPPORT, emailBodyPaymentSupport.ToString());

                    SessionWrapper.PaymentDetails.isPaymentNotificationSend = true;
                }
                if (moduleName == Constant.UNCOVER_BACKGROUND)
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setUncoverBg();", true);
                }
                if (moduleName == Constant.IDENTITY_THEFT)
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setIDTheftBg();", true);
                }
                if (moduleName == Constant.RESUME_CHECKER)
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setResumeCheckerBg();", true);
                }
            }
            catch { }
        }