public AIA.Life.Models.Opportunity.Prospect FetchNicForModifySuspect(AIA.Life.Models.Opportunity.Prospect objProspect) { AIA.Life.Business.Prospect.ProspectBusiness objProspectBusiness = new AIA.Life.Business.Prospect.ProspectBusiness(); objProspect = objProspectBusiness.FetchNicverify(objProspect); if (objProspect == null) { objProspect = objProspectBusiness.FetchNicverifyPolicyIL(objProspect); } return(objProspect); }
public ActionResult LoadSuspectInformation(string ContactID) { try { AIA.Life.Models.Opportunity.Prospect objProspect = new Prospect(); objProspect.ContactID = Convert.ToInt32(CrossCutting.CrossCutting_EncryptDecrypt.Decrypt(ContactID.ToString())); objProspect.CreatedBy = _username; #region Check user authorization AuthorizeUser authorizeUser = new AuthorizeUser(); authorizeUser.UserName = _username; authorizeUser.ContactId = objProspect.ContactID; authorizeUser = new AIA.Life.Business.Common.CommonBusiness().CheckAuthorisation(authorizeUser); if (!string.IsNullOrEmpty(authorizeUser.Error.ErrorMessage)) { return(RedirectToAction("AuthorizeError", "Error", new { errorMessage = authorizeUser.Error.ErrorMessage })); } #endregion objProspect = objProspectBusiness.LoadContactInformation(objProspect); foreach (PreviousInsuranceList item in objProspect.objPreviousInsuranceList) { PrevPolicy obj = new PrevPolicy(); obj.PolicyNo = item.PolicyNumber; obj.MaturityFund = 0; objProspect.objNeedAnalysis.objPrevPolicy.Add(obj); } ViewBag.Type = "Suspect"; //objProspect.objNeedAnalysis.dlladversities.Add(new SelectListItem { Text = "Critical Illnesses" }); //objProspect.objNeedAnalysis.dlladversities.Add(new SelectListItem { Text = "Major Surgeries" }); //objProspect.objNeedAnalysis.dlladversities.Add(new SelectListItem { Text = "Loss of Income" }); //objProspect.objNeedAnalysis.dlladversities.Add(new SelectListItem { Text = "Pre and Post Hospitalization Expenses" }); //objProspect.objNeedAnalysis.dlladversities.Add(new SelectListItem { Text = "Excess Payments/Taxes" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "Below LKR 100,000" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "LKR 100,000 - 200,000" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "LKR 200,000 - 300,000" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "LKR 300,000 - 400,000" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "LKR 400,000 - 500,000" }); //objProspect.objNeedAnalysis.dllannualamount.Add(new SelectListItem { Text = "Above LKR 500,000" }); //objProspect.objNeedAnalysis.dllcoverage.Add(new SelectListItem { Text = "Local" }); //objProspect.objNeedAnalysis.dllcoverage.Add(new SelectListItem { Text = "Global" }); //objProspect.objNeedAnalysis.dlladequacy.Add(new SelectListItem { Text = "Yes" }); //objProspect.objNeedAnalysis.dlladequacy.Add(new SelectListItem { Text = "No" }); if (!string.IsNullOrEmpty(objProspect.NIC)) { objProspect.NICAVAIL = false; objProspect = objProspectBusiness.FetchNicverify(objProspect); if (objProspect == null) { objProspect = objProspectBusiness.FetchNicverifyPolicyIL(objProspect); } } if (objProspect.objNeedAnalysis.ProspectSign != null) { objProspect.Signature = Convert.ToString(objProspect.objNeedAnalysis.ProspectSign); } objProspect.objNeedAnalysis.Stage = "Lead"; for (int i = 0; i < objProspect.objNeedAnalysis.objFinancialNeeds.Count; i++) { if (objProspect.objNeedAnalysis.objFinancialNeeds[i].Name.ToUpper() == "HIGHER EDUCATION") { objProspect.objNeedAnalysis.objFinancialNeeds[i].ImagePath = "/Content/Images/FnaIcons/Education@0,25x.png"; } else if (objProspect.objNeedAnalysis.objFinancialNeeds[i].Name.ToUpper() == "WEDDING") { objProspect.objNeedAnalysis.objFinancialNeeds[i].ImagePath = "/Content/Images/FnaIcons/Children Wedding@0,25x.png"; } else if (objProspect.objNeedAnalysis.objFinancialNeeds[i].Name.ToUpper() == "PENSION FUND") { objProspect.objNeedAnalysis.objFinancialNeeds[i].ImagePath = "/Content/Images/FnaIcons/Gratutity@0,25x.png"; } else if (objProspect.objNeedAnalysis.objFinancialNeeds[i].Name.ToUpper() == "BUY CAR/PROPERTY") { objProspect.objNeedAnalysis.objFinancialNeeds[i].ImagePath = "/Content/Images/FnaIcons/Buy car_property@0,25x.png"; } else if (objProspect.objNeedAnalysis.objFinancialNeeds[i].Name.ToUpper() == "OTHER") { objProspect.objNeedAnalysis.objFinancialNeeds[i].ImagePath = "/Content/Images/FnaIcons/Other@0,25x.png"; } } return(View("~/Views/Prospect/CreateProspect.cshtml", objProspect)); } catch (Exception e) { return(View()); } }
public AIA.Life.Models.Opportunity.Prospect FetchNicverify(AIA.Life.Models.Opportunity.Prospect objProspect) { AIA.Life.Business.Prospect.ProspectBusiness objProspectBusiness = new AIA.Life.Business.Prospect.ProspectBusiness(); objProspect = objProspectBusiness.FetchNicverify(objProspect); return(objProspect); }