예제 #1
0
 /// <summary>
 /// Method Name: GetNextNavigationStepURL.
 /// Method Purpose:  Get Next Navigation Step URL.
 /// Author: Shady Yahia.
 /// Modification Date: April 28, 2011.
 /// </summary>
 protected override string GetNextNavigationStepURL(enumNavigationStep pNextNavigationStep)
 {
     if (pNextNavigationStep == enumNavigationStep.StepCardRegistration)
     {
         return("SOME URL");
     }
     if (pNextNavigationStep == enumNavigationStep.StepCardHolderInformation)
     {
         return("SOME URL");
     }
     else if (pNextNavigationStep == enumNavigationStep.StepLoginSelection)
     {
         return("SOME URL");
     }
     else if (pNextNavigationStep == enumNavigationStep.StepSignUp)
     {
         return("SOME URL");
     }
     else if (pNextNavigationStep == enumNavigationStep.StepSecurityInformation)
     {
         return("SOME URL");
     }
     else if (pNextNavigationStep == enumNavigationStep.StepConfirmation)
     {
         return("SOME URL");
     }
     else if (pNextNavigationStep == enumNavigationStep.StepHome)
     {
         return("~/Home.aspx");
     }
     else
     {
         return("~/FileNotFound.aspx");
     }
 }
예제 #2
0
        /// <summary>
        /// Method Name: GetNextNavigationStepURL. Method Purpose: Get next navigation step
        /// related URL. Author: Mena Armanyous. Modification Date: April 28, 2011.
        /// </summary>
        /// <param name="pNextNavigationStep"></param>
        protected override string GetNextNavigationStepURL(enumNavigationStep pNextNavigationStep)
        {
            try
            {
                switch (pNextNavigationStep)
                {
                case enumNavigationStep.StepCardPurchase:
                    return("SOME URL");

                case enumNavigationStep.StepLoginSelection:
                    return("SOME URL");

                case enumNavigationStep.StepContactInfomration:
                    return("SOME URL");

                case enumNavigationStep.StepSignUp:
                    return("SOME URL");

                case enumNavigationStep.StepSecurityInformation:
                    return("SOME URL");

                case enumNavigationStep.StepAddCard:
                    return("SOME URL");

                case enumNavigationStep.StepChildLoginSelection:
                    return("SOME URL");

                case enumNavigationStep.StepChildCardGuardian:
                    return("SOME URL");

                case enumNavigationStep.StepChildCardDetails:
                    return("SOME URL");

                case enumNavigationStep.StepHome:
                    return("~/Home.aspx");
                }
            }
            catch (Exception ex)
            {
                if (!ExceptionHandler.IsUserFriendly(ex))
                {
                    ex.Data.Add("CardPurchaseNavigation", "GetNextNavigationStepURL");
                    ExceptionHandler.LogException(ex);
                }
                else
                {
                    throw ex;
                }
            }
            return(string.Empty);
        }
예제 #3
0
 protected abstract enumNavigationStep GetNextNavigationStep();                              // Protected method used to get next navigation step number.
 protected abstract string GetNextNavigationStepURL(enumNavigationStep pCurrNavigationStep); // Protected method used to return next navigation step related URL.
예제 #4
0
        /// <summary>
        /// Method Name: GetNextNavigationStep.
        /// Method Purpose: Get next navigation step number.
        /// Author: Mena Armanyous.
        /// Modification Date: April 28, 2011.
        /// </summary>
        /// <returns>Return next navigation step number.</returns>
        protected override enumNavigationStep GetNextNavigationStep()
        {
            try
            {
                enumNavigationStep lStep = enumNavigationStep.None;
                switch (_NavigationState.NavigationStep)
                {
                case enumNavigationStep.StepHome:
                    return(enumNavigationStep.StepCardPurchase);

                case enumNavigationStep.StepCardPurchase:

                    if (_NavigationState.LoggedInUserGUID != Guid.Empty)
                    {
                        if (NavigationState.SB_Card.CardProfileCode == SWC.SC_CardProfile.PersonalizedChild)
                        {
                            lStep = enumNavigationStep.StepChildCardDetails;
                        }
                        else
                        {
                            lStep = enumNavigationStep.StepAddCard;
                        }
                    }
                    else if (NavigationState.SB_Card.CardProfileCode == SWC.SC_CardProfile.PersonalizedChild)
                    {
                        lStep = enumNavigationStep.StepChildLoginSelection;
                    }
                    else
                    {
                        lStep = enumNavigationStep.StepLoginSelection;
                    }
                    break;

                case enumNavigationStep.StepLoginSelection:
                    if (_NavigationState.LoginAction == enumLoginAction.Login)
                    {
                        lStep = enumNavigationStep.StepAddCard;
                    }
                    else if (_NavigationState.LoginAction == enumLoginAction.Discard)
                    {
                        lStep = enumNavigationStep.StepAddCard;
                    }
                    else if (NavigationState.LoginAction == enumLoginAction.Signup)
                    {
                        lStep = enumNavigationStep.StepSignUp;
                    }
                    break;

                case enumNavigationStep.StepChildLoginSelection:
                    if (_NavigationState.LoginAction == enumLoginAction.Login)
                    {
                        if (new SND.BusinessManagers.Domain.ConfigurationManager().IsChildPersonalizedVerificationProcessEnabled() &&
                            _NavigationState.SB_ShoppingBasket.SB_Cards.Count > 0)
                        {
                            lStep = enumNavigationStep.StepCardPurchase;
                        }
                        else
                        {
                            lStep = enumNavigationStep.StepChildCardDetails;
                        }
                    }
                    else if (NavigationState.LoginAction == enumLoginAction.Signup)
                    {
                        lStep = enumNavigationStep.StepSignUp;
                    }
                    break;

                case enumNavigationStep.StepSignUp:
                    lStep = enumNavigationStep.StepSecurityInformation;
                    break;

                case enumNavigationStep.StepSecurityInformation:
                    if (NavigationState.SB_Card.CardProfileCode == SWC.SC_CardProfile.PersonalizedChild)
                    {
                        lStep = enumNavigationStep.StepChildCardDetails;
                    }
                    else
                    {
                        lStep = enumNavigationStep.StepAddCard;
                    }
                    break;

                case enumNavigationStep.StepChildCardDetails:
                    lStep = enumNavigationStep.StepChildCardGuardian;
                    break;

                case enumNavigationStep.StepChildCardGuardian:
                    lStep = enumNavigationStep.StepAddCard;
                    break;
                }
                return(lStep);
            }
            catch (Exception ex)
            {
                if (!ExceptionHandler.IsUserFriendly(ex))
                {
                    ex.Data.Add("CardPurchaseNavigation", "GetNextNavigationStep");
                    ExceptionHandler.LogException(ex);
                }
                else
                {
                    throw ex;
                }
            }
            return(enumNavigationStep.None);
        }
        /// <summary>
        /// Method Name: GetNextNavigationStepURL.
        /// Method Purpose:  Get Next Navigation Step URL.
        /// Author: Shady Yahia.
        /// Modification Date: April 28, 2011. 
        /// </summary>
        protected override string GetNextNavigationStepURL(enumNavigationStep pNextNavigationStep)
        {
            if (pNextNavigationStep == enumNavigationStep.StepCardRegistration)
            {
                return "SOME URL";
            }
            if (pNextNavigationStep == enumNavigationStep.StepCardHolderInformation)
            {
                return "SOME URL";
            }
            else if (pNextNavigationStep == enumNavigationStep.StepLoginSelection)
            {
                return "SOME URL";
            }
            else if (pNextNavigationStep == enumNavigationStep.StepSignUp)
            {
                return "SOME URL";
            }
            else if (pNextNavigationStep == enumNavigationStep.StepSecurityInformation)
            {
                return "SOME URL";
            }
            else if (pNextNavigationStep == enumNavigationStep.StepConfirmation)
            {
                return "SOME URL";
            }
            else if (pNextNavigationStep == enumNavigationStep.StepHome)
            {

                return "~/Home.aspx";
            }
            else
            {
                return "~/FileNotFound.aspx";
            }
        }
        /// <summary>
        /// Method Name: GetNextNavigationStepURL. Method Purpose: Get next navigation step
        /// related URL. Author: Mena Armanyous. Modification Date: April 28, 2011.
        /// </summary>
        /// <param name="pNextNavigationStep"></param>
        protected override string GetNextNavigationStepURL(enumNavigationStep pNextNavigationStep)
        {
            try
            {
                switch (pNextNavigationStep)
                {
                    case enumNavigationStep.StepCardPurchase:
                        return "SOME URL";

                    case enumNavigationStep.StepLoginSelection:
                        return "SOME URL";

                    case enumNavigationStep.StepContactInfomration:
                        return "SOME URL";

                    case enumNavigationStep.StepSignUp:
                        return "SOME URL";

                    case enumNavigationStep.StepSecurityInformation:
                        return "SOME URL";

                    case enumNavigationStep.StepAddCard:
                        return "SOME URL";

                    case enumNavigationStep.StepChildLoginSelection:
                        return "SOME URL";

                    case enumNavigationStep.StepChildCardGuardian:
                        return "SOME URL";

                    case enumNavigationStep.StepChildCardDetails:
                        return "SOME URL";

                    case enumNavigationStep.StepHome:
                        return "~/Home.aspx";
                }
            }
            catch (Exception ex)
            {
                if (!ExceptionHandler.IsUserFriendly(ex))
                {
                    ex.Data.Add("CardPurchaseNavigation", "GetNextNavigationStepURL");
                    ExceptionHandler.LogException(ex);
                }
                else
                { throw ex; }
            }
            return string.Empty;
        }
 protected abstract string GetNextNavigationStepURL(enumNavigationStep pCurrNavigationStep);