Пример #1
0
 public static bool ShouldHide_CalloutHeading_And_RegisterWithGp_MoreInfoPage(OutcomeGroup outcomeGroup)
 {
     return(
         outcomeGroup.Equals(OutcomeGroup.GP) ||
         outcomeGroup.Equals(OutcomeGroup.ItkPrimaryCareNer)
         );
 }
Пример #2
0
        private string GetServiceTypeAliasHtml(OutcomeGroup outcomeGroup)
        {
            if (IsPharmacyCASCallback() && outcomeGroup.IsPharmacy)
            {
                return(GetServiceTypePharmacyCASAliasHtml());
            }

            var serviceTypeAlias = IsCallbackServiceNotOfferingCallback ? PublicName : ServiceTypeAlias;

            return(string.Format("<b class=\"service-details__alias\">{0}</b>", WebUtility.HtmlDecode(serviceTypeAlias)));
        }
Пример #3
0
        public string GetOtherServicesServiceDisplayHtml(OutcomeGroup outcomeGroup)
        {
            var serviceDisplayHtml = GetServiceTypeAliasHtml(outcomeGroup);

            if (IsCallbackServiceNotOfferingCallback && !ShouldShowAddress)
            {
                return(serviceDisplayHtml);
            }

            serviceDisplayHtml += GetOtherServicesSecondLineHtml();
            return(serviceDisplayHtml);
        }
Пример #4
0
        private static OutcomeGroup BuildOutcomeGroup(QuestionWithAnswers questionWithAnswers)
        {
            var mappedOutcomeGroup = new OutcomeGroup();

            if (questionWithAnswers.Group != null)
            {
                mappedOutcomeGroup = questionWithAnswers.Group;
                //this needs to be mapped better, ultimately this should be data driven from data layers so the above line is all that's needed.
                var outcomeGroup = OutcomeGroup.OutcomeGroups[questionWithAnswers.Group.Id];
                mappedOutcomeGroup.Label = outcomeGroup.Label;
                mappedOutcomeGroup.ITK   = outcomeGroup.ITK;
            }
            return(mappedOutcomeGroup);
        }
Пример #5
0
        public string GetServiceDisplayHtml(OutcomeGroup outcomeGroup)
        {
            var serviceDisplayHtml = GetServiceTypeAliasHtml(outcomeGroup);

            if (IsCallbackServiceOfferingCallback && !IsOohService)
            {
                return(serviceDisplayHtml);
            }

            serviceDisplayHtml += GetServiceNameHtml();

            if (!ShouldShowAddress)
            {
                return(serviceDisplayHtml);
            }

            serviceDisplayHtml += GetServiceAddressHtml();
            return(serviceDisplayHtml);
        }
 public string GetCallbackDuplicateViewName(OutcomeGroup outcomeGroup)
 {
     return(outcomeGroup.Is999NonUrgent ? "Call999_DuplicateBookingFailure" : "DuplicateBookingFailure");
 }
 public string GetServiceUnavailableViewName(OutcomeGroup outcomeGroup)
 {
     return(outcomeGroup.Is999NonUrgent ? "Call999_ServiceBookingUnavailable" : "ServiceBookingUnavailable");
 }
 public string GetCallbackFailureViewName(OutcomeGroup outcomeGroup)
 {
     return(outcomeGroup.Is999NonUrgent ? "Call999_ServiceBookingFailure" : "ServiceBookingFailure");
 }
 public string GetCallbackConfirmationViewName(OutcomeGroup outcomeGroup)
 {
     return(outcomeGroup.Is999NonUrgent ? "Call_999_Callback_Confirmation" : "Confirmation");
 }