protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No") { CallPanel.Visible = false; } else { var callCenterCallRepo = new CallCenterCallRepository(); hfCallStartTime.Value = callCenterCallRepo.GetCallStarttime(CallId); } var obj = (CallCenter_CallCenterMaster1)Master; if (obj != null) { obj.HideBreadCrum(); } GiftCertificatePreview.IsCallCenterPurchase = true; GiftCertificatePreview.IsOnlinePurchase = false; GiftCertificatePreview.CustomerId = CustomerId; if (CustomerId > 0) { HeadingText.InnerText = "4"; } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No") { CallPanel.Visible = false; } else { var callCenterCallRepo = new CallCenterCallRepository(); hfCallStartTime.Value = callCenterCallRepo.GetCallStarttime(CallId); } var obj = (CallCenter_CallCenterMaster1)Master; if (obj != null) { obj.HideBreadCrum(); } if (IsPostBack) { if (Request.Form["__EVENTTARGET"] != null) { string queryString = Request.Form["__EVENTARGUMENT"]; Response.RedirectUser("Details.aspx?Amount=" + queryString + "&guid=" + GuId); } } }
protected void Page_Load(object sender, EventArgs e) { Page.Title = "Callback Prospect"; var masterPage = Master as CallCenter_CallCenterMaster1; if (masterPage != null) { masterPage.SetBreadCrumbRoot = ""; masterPage.hideucsearch(); masterPage.SetTitle(""); } if (!IsPostBack) { FillDropDown(); if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No") { divCall.Style.Add(HtmlTextWriterStyle.Display, "none"); divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden"); } else { var repository = new CallCenterCallRepository(); hfCallStartTime.Value = repository.GetCallStarttime(CallId); } if (CustomerId > 0) { var customerRepositoy = IoC.Resolve <ICustomerRepository>(); var customer = customerRepositoy.GetCustomer(CustomerId); FirstNameTextbox.Value = customer.Name.FirstName; LastNameTextbox.Value = customer.Name.LastName; PhoneNumberTextbox.Value = customer.HomePhoneNumber.ToString(); EmailTextbox.Value = customer.Email.ToString(); StreetAddressLine1Textbox.Value = customer.Address.StreetAddressLine1; StreetAddressLine2Textbox.Value = customer.Address.StreetAddressLine2; StateTextbox.Value = customer.Address.State; CityTextbox.Value = customer.Address.City; ZipTextbox.Value = customer.Address.ZipCode.Zip; } else if (CurrentProspectCustomerId > 0) { var prospectCustomerRepository = IoC.Resolve <IProspectCustomerRepository>(); var prospectCustomer = prospectCustomerRepository.GetProspectCustomer(CurrentProspectCustomerId); FirstNameTextbox.Value = prospectCustomer.FirstName; LastNameTextbox.Value = prospectCustomer.LastName; PhoneNumberTextbox.Value = prospectCustomer.CallBackPhoneNumber.ToString(); EmailTextbox.Value = prospectCustomer.Email.ToString(); ZipTextbox.Value = prospectCustomer.Address.ZipCode.Zip; } else { FirstNameTextbox.Value = FirstName; LastNameTextbox.Value = LastName; PhoneNumberTextbox.Value = CallBackNumber; ZipTextbox.Value = Zip; } } }
protected void Page_Load(object sender, EventArgs e) { Page.Title = "Add Primary Care Physician"; var obj = (CallCenter_CallCenterMaster1)Master; if (CustomerType == CustomerType.Existing) { obj.SetTitle("Existing Customer"); _pCustomerType.InnerText = "Add Primary Care Physician"; } else { obj.SetTitle("Register New Customer"); _pCustomerType.InnerText = "Add Primary Care Physician"; } obj.SetBreadCrumbRoot = "<a href=\"/CallCenter/CallCenterRepDashboard/Index\">Dashboard</a>"; obj.hideucsearch(); rbtnYes.Attributes["onClick"] = "return ShowPcP()"; rbtnNo.Attributes["onClick"] = "return HidePcp()"; if (rbtnYes.Checked) { divPcp.Visible = true; divPcp.Style["display"] = "block"; } if (!IsPostBack) { if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No") { divCall.Style.Add(HtmlTextWriterStyle.Display, "none"); divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden"); } else { var repository = new CallCenterCallRepository(); hfCallStartTime.Value = repository.GetCallStarttime(CallId); } FillPcpInfo(); UpdateCallQueueCustomers(); } }
protected void Page_Load(object sender, EventArgs e) { if (NotInCall) { CallPanel.Visible = false; } else { var callCenterCallRepo = new CallCenterCallRepository(); hfCallStartTime.Value = callCenterCallRepo.GetCallStarttime(CallId); } var obj = (CallCenter_CallCenterMaster1)Master; if (obj != null) { obj.HideBreadCrum(); } }
protected void Page_Load(object sender, EventArgs e) { Page.Title = "CallCenterRep Login Issues"; CallCenter_CallCenterMaster1 obj; obj = (CallCenter_CallCenterMaster1)this.Master; obj.SetTitle("CallCenterRep Login Issues"); obj.SetBreadCrumbRoot = "<a href=\"/CallCenter/CallCenterRepDashboard/Index\">Dashboard</a>"; if (!IsPostBack) { var callCenterCallRepo = new CallCenterCallRepository(); hfCallStartTime.Value = callCenterCallRepo.GetCallStarttime(CallId); if (ViewState["UrlReferer"] == null) { if (Request.UrlReferrer != null) { ViewState["UrlReferer"] = Request.UrlReferrer.PathAndQuery; } } SetCustomerDetails(); } }
protected void Page_Load(object sender, EventArgs e) { RegistrationFlow.CanSaveConsentInfo = true; var callCenterMasterPage = (CallCenter_CallCenterMaster1)Master; callCenterMasterPage.SetTitle("Customer Options"); callCenterMasterPage.SetBreadCrumbRoot = "<a href=\"/CallCenter/CallCenterRepDashboard/Index\">Dashboard</a>"; var repository = new CallCenterCallRepository(); ViewScriptDiv.Visible = false; if (!IsPostBack) { hfCallStartTime.Value = repository.GetCallStarttime(ExistingCallId); if (CustomerId > 0) { imgSymbol.ImageUrl = "~/App/Images/CCRep/page3symbol.gif"; divOptions.Style.Add(HtmlTextWriterStyle.Display, "block"); spSearchType.InnerText = "Existing Customer Options"; divNewOptions.Style.Add(HtmlTextWriterStyle.Display, "none"); var customerRepository = IoC.Resolve <ICustomerRepository>(); var customer = customerRepository.GetCustomer(CustomerId); customername.InnerHtml = "<span style=\"color: #F37C00\">" + HttpUtility.HtmlEncode(customer.Name.FullName) + "</span>, how may i help you?"; long?healthPlanId = null; if (!string.IsNullOrEmpty(customer.Tag))// && IsInboundCall { var corporateAccountRepository = IoC.Resolve <ICorporateAccountRepository>(); var corporateAccount = corporateAccountRepository.GetByTag(customer.Tag); if (corporateAccount != null && corporateAccount.IsHealthPlan) { healthPlanId = corporateAccount.Id; } if (IsInboundCall) { if (corporateAccount != null && corporateAccount.ShowCallCenterScript && corporateAccount.CallCenterScriptFileId > 0) { ViewScriptDiv.Visible = true; var fileRepository = IoC.Resolve <IUniqueItemRepository <File> >(); var mediaRepository = IoC.Resolve <IMediaRepository>(); var inboundCallScriptPdf = fileRepository.GetById(corporateAccount.CallCenterScriptFileId); var mediaLocation = mediaRepository.GetCallCenterScriptPdfFolderLocation(); RegistrationFlow.CallCenterScriptUrl = mediaLocation.Url + inboundCallScriptPdf.Path; } if (corporateAccount != null && corporateAccount.WarmTransfer) { var customerWarmTransfer = IoC.Resolve <ICustomerWarmTransferRepository>().GetByCustomerIdAndYear(CustomerId, DateTime.Today.Year); if (customerWarmTransfer != null && customerWarmTransfer.IsWarmTransfer.HasValue && customerWarmTransfer.IsWarmTransfer.Value) { showWarmTransferMessage.Style.Add(HtmlTextWriterStyle.Display, "block"); } } } } repository.UpdateCalledCustomerId(CustomerId, ExistingCallId, healthPlanId, customer.ProductTypeId); } else { imgSymbol.ImageUrl = "~/App/Images/CCRep/page2symbol.gif"; divOptions.Style.Add(HtmlTextWriterStyle.Display, "none"); divNewOptions.Style.Add(HtmlTextWriterStyle.Display, "block"); spSearchType.InnerText = "New Customer Options"; if (ProspectCustomerId > 0) { var prospectCustomerRepository = IoC.Resolve <IUniqueItemRepository <ProspectCustomer> >(); var prospectCustomer = prospectCustomerRepository.GetById(ProspectCustomerId); customername.InnerHtml = "<span style=\"color: #F37C00\">" + HttpUtility.HtmlEncode(prospectCustomer.FirstName) + " " + HttpUtility.HtmlEncode(prospectCustomer.LastName) + "</span>, how may i help you?"; } else { customername.InnerHtml = "<span style=\"color: #F37C00\">" + HttpUtility.HtmlEncode(FirstName) + " " + HttpUtility.HtmlEncode(LastName) + "</span>, how may i help you?"; } } // Coding if the call is for outbound // Set the call as outbound if (Request.QueryString["CallType"] != null) { if (Request.QueryString["CallType"].Equals("OutBound")) { spBtnSearchAgain.Style.Add(HtmlTextWriterStyle.Display, "none"); var callcenterDal = new CallCenterDAL(); List <EScript> outboundCallProspect; if (Request.QueryString["Source"] != null && Request.QueryString["Source"].ToLower() == "online") { int scriptTypeId = callcenterDal.GetScriptType("OutboundOnlineProspect", 2)[0].ScriptTypeID; outboundCallProspect = callcenterDal.GetScript(scriptTypeId.ToString(), 4); string script = outboundCallProspect[0].ScriptText.Replace("<<prospect>>", Server.UrlDecode(Request.QueryString["Name"])).Replace("<<employee>>", HttpUtility.HtmlEncode(IoC.Resolve <ISessionContext>().UserSession.UserName)); customername.InnerHtml = System.Web.Security.AntiXss.AntiXssEncoder.HtmlEncode(script, true); } else { int scriptTypeId = callcenterDal.GetScriptType("OutboundCallCenterProspect", 2)[0].ScriptTypeID; outboundCallProspect = callcenterDal.GetScript(scriptTypeId.ToString(), 4); string script = outboundCallProspect[0].ScriptText.Replace("<<prospect>>", Server.UrlDecode(Request.QueryString["Name"])).Replace("<<employee>>", HttpUtility.HtmlEncode(IoC.Resolve <ISessionContext>().UserSession.UserName)); customername.InnerHtml = System.Web.Security.AntiXss.AntiXssEncoder.HtmlEncode(script, true); } } } } }
protected void Page_Load(object sender, EventArgs e) { RegistrationFlow.CanSaveConsentInfo = false; SetTitle(); bool defaultBasePackage = false; FillClinicialQuestionnaireDiv.Visible = false; ClinicalQuestionTemplateId = 0; IsClinicalQuestionaireFilled = false; if (EventId > 0) { if (EventData != null) { EventType = EventData.EventType; var configurationSettingRepository = IoC.Resolve <IConfigurationSettingRepository>(); EnableAlaCarte = Convert.ToBoolean(configurationSettingRepository.GetConfigurationValue(ConfigurationSettingName.EnableAlaCarte)); if (EnableAlaCarte) { EnableAlaCarte = EventData.EnableAlaCarteCallCenter; } } if (AccountByEventId != null) { if (AccountByEventId.AskClinicalQuestions && AccountByEventId.ClinicalQuestionTemplateId.HasValue) { FillClinicialQuestionnaireDiv.Visible = true; ClinicalQuestionTemplateId = AccountByEventId.ClinicalQuestionTemplateId.Value; GetRecommendationText(); } defaultBasePackage = AccountByEventId.DefaultSelectionBasePackage; // for penguin integartion var settings = IoC.Resolve <ISettings>(); QuestionnaireType questionnaireType = QuestionnaireType.None; if (AccountByEventId != null && AccountByEventId.IsHealthPlan && EventData != null) { var accountHraChatQuestionnaireHistoryServices = IoC.Resolve <IAccountHraChatQuestionnaireHistoryServices>(); questionnaireType = accountHraChatQuestionnaireHistoryServices.QuestionnaireTypeByAccountIdandEventDate(AccountByEventId.Id, EventData.EventDate); } if (questionnaireType == QuestionnaireType.HraQuestionnaire) { var userSession = IoC.Resolve <ISessionContext>().UserSession; var token = (Session.SessionID + "_" + userSession.UserId + "_" + userSession.CurrentOrganizationRole.RoleId + "_" + userSession.CurrentOrganizationRole.OrganizationId).Encrypt(); HraQuestionerAppUrlWithoutVisit = settings.HraQuestionerAppUrl + "?userToken=" + HttpUtility.UrlEncode(token) + "&customerId=" + CustomerId + "&orgName=" + settings.OrganizationNameForHraQuestioner + "&tag=" + AccountByEventId.Tag; HraQuestionerAppUrl = HraQuestionerAppUrlWithoutVisit + "&visitId=" + (RegistrationFlow.AwvVisitId.HasValue ? RegistrationFlow.AwvVisitId.Value : 0); ChatQuestionerAppUrl = string.Empty; } else if (questionnaireType == QuestionnaireType.ChatQuestionnaire) { ChatQuestionerAppUrl = settings.HraQuestionerAppUrl; HraQuestionerAppUrl = string.Empty; } } } if (!IsPostBack) { if (RegistrationFlow != null && RegistrationFlow.IsRetest) { RetestNo.Checked = false; RetestYes.Checked = true; } else { RetestNo.Checked = true; RetestYes.Checked = false; } if (RegistrationFlow != null && RegistrationFlow.SingleTestOverride) { SingleTestOverrideYes.Checked = true; SingleTestOverrideNo.Checked = false; } else { SingleTestOverrideYes.Checked = false; SingleTestOverrideNo.Checked = true; } if (EventId != 0) { // Hack: This is done if the user hits back button on payment page, to get back to select package page. if (SourceCodeId > 0 && !string.IsNullOrEmpty(SourceCode)) { txtCouponCode.Text = SourceCode; } else if (RegistrationFlow != null) { txtCouponCode.Text = RegistrationFlow.CallSourceCode; } hfEventID.Value = EventId.ToString(); var eventCustomerQuestionAnswerService = IoC.Resolve <IEventCustomerQuestionAnswerService>(); hfQuestionAnsTestId.Value = eventCustomerQuestionAnswerService.GetQuestionAnswerTestIdString(CustomerId, EventId); } else { const string message = "Sorry, Event detail not found. <a href=\"RegCustomerSearchEvent.aspx\">Click here</a> to search event again "; DisplayErrorMessage(message); } if (CurrentProspectCustomer != null && CurrentProspectCustomer.Id > 0 && CurrentProspectCustomer.SourceCodeId != null && CurrentProspectCustomer.SourceCodeId.Value > 0) { ISourceCodeRepository sourceCodeRepository = new SourceCodeRepository(); var sourceCode = sourceCodeRepository.GetSourceCodeById(CurrentProspectCustomer.SourceCodeId.Value); if (sourceCode != null) { txtCouponCode.Text = sourceCode.CouponCode; } } IEventPackageRepository packageRepository = new EventPackageRepository(); var preApprovedPackageRepository = IoC.Resolve <IPreApprovedPackageRepository>(); if (AccountByEventId != null && AccountByEventId.AllowPreQualifiedTestOnly) { long preApprovedPackageId = preApprovedPackageRepository.CheckPreApprovedPackages(CustomerId); if (PackageId == 0 && preApprovedPackageId > 0 && (RegistrationFlow == null || !RegistrationFlow.SingleTestOverride) && (RegistrationFlow == null || string.IsNullOrEmpty(RegistrationFlow.DisqualifiedTest))) { var eventPackages = packageRepository.GetPackagesForEventByRole(EventId, (long)Roles.CallCenterRep); if (!eventPackages.IsNullOrEmpty()) { var preApprovedPackage = eventPackages.FirstOrDefault(x => x.PackageId == preApprovedPackageId); if (preApprovedPackage != null) { PackageId = preApprovedPackage.PackageId; TestIds = preApprovedPackage.Tests.Select(t => t.TestId).ToList(); } } } } if (defaultBasePackage && PackageId == 0 && (RegistrationFlow == null || !RegistrationFlow.SingleTestOverride) && (RegistrationFlow == null || string.IsNullOrEmpty(RegistrationFlow.DisqualifiedTest))) { var eventPackages = packageRepository.GetPackagesForEventByRole(EventId, (long)Roles.CallCenterRep) .OrderBy(p => p.Price); if (!eventPackages.IsNullOrEmpty()) { var lowestPricePackage = eventPackages.First(); PackageId = lowestPricePackage.PackageId; TestIds = lowestPricePackage.Tests.Select(t => t.TestId).ToList(); } } if (RegistrationFlow != null && !string.IsNullOrWhiteSpace(RegistrationFlow.DisqualifiedTest) && string.IsNullOrWhiteSpace(hfDisqualifedTest.Value)) { hfDisqualifedTest.Value = RegistrationFlow.DisqualifiedTest; } if (RegistrationFlow != null && !string.IsNullOrWhiteSpace(RegistrationFlow.QuestionIdAnswerTestId) && string.IsNullOrWhiteSpace(hfQuestionAnsTestId.Value)) { hfQuestionAnsTestId.Value = RegistrationFlow.QuestionIdAnswerTestId; } /*if (!DisqualifiedTestIds.IsNullOrEmpty()) * { * TestIds = TestIds.Where(x => !DisqualifiedTestIds.Contains(x)).ToList(); * }*/ ItemCartControl.EventId = EventId; ItemCartControl.RoleId = (long)Roles.CallCenterRep; ItemCartControl.PackageId = PackageId; ItemCartControl.TestIds = TestIds; if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No") { divCall.Style.Add(HtmlTextWriterStyle.Display, "none"); divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden"); } else { var repository = new CallCenterCallRepository(); hfCallStartTime.Value = repository.GetCallStarttime(CallId); } if (Request.UrlReferrer != null) { ViewState["UrlReferer"] = Request.UrlReferrer.PathAndQuery; } } if (Request.Params["__EVENTTARGET"] == "NextButton" && Request.Params["__EVENTARGUMENT"] == "Click") { NextButtonClick(); } }