private NavigationTab BuildDiamondTab()
        {
            var diamondTab = new NavigationTab();

            diamondTab.Type = NagivationTabType.YourDiamond;

            diamondTab.ToolTipTitle = "Choose a Diamond";
            diamondTab.ToolTipBody =
                "Start by choosing your diamond following these steps:<br /> <ul> <li>1. Choose a diamond</li> <li>2. Choose a desired setting</li> <li>3. Review your purchase in the \"Your Order\" tab before checkout</li> </ul><br /> Note: In any given time you can Modify or View your selected diamond or setting.";

            if (customJewelPersistenceBase.DiamondID > 0)
            {

                diamondTab.Title = "Your Diamond";
                diamondTab.Amount = new Money(diamond.Price, Currency.Usd).Format("{1}{0:#,0}");
                diamondTab.HighlightState = "off";
                diamondTab.HasEditAndViewLinks = true;
                diamondTab.ViewRoute = webHelpers.RouteUrl("Diamond", CreatePersistenceRouteValuesDic());
                diamondTab.ModifyRoute = webHelpers.RouteUrl("DiamondSearch",CreatePersistenceRouteValuesDic());
                diamondTab.CssClass = "diamond";
                return diamondTab;
            }

            diamondTab.Title = "Choose Diamond";
            diamondTab.Amount = new Money(0, Currency.Usd).Format("{1}{0:#,0}");
            diamondTab.HighlightState = "off";
            diamondTab.CssClass = "diamond";

            return diamondTab;
        }
예제 #2
0
        private NavigationTab BuildSettingTab()
        {
            var settingTab = new NavigationTab();

            settingTab.Type = NagivationTabType.ChooseSetting;

            settingTab.ToolTipBody  = "Start by choosing your setting following these steps:<br> <ul> <li>1. Choose a setting</li> <li>2. Choose a desired diamond</li> <li>3. Review your purchase in the \"Your Order\" tab before checkout</li> </ul> <br> Note: In any given time you can Modify or View your selected setting or diamond.";
            settingTab.ToolTipTitle = "Choose a Setting";

            if (customJewelPersistenceBase.SettingID > 0)
            {
                settingTab.Title     = "Your Setting";
                settingTab.Amount    = new Money((decimal)setting.Price, Currency.Usd).Format("{1}{0:#,0}");
                settingTab.ViewRoute = webHelpers.RouteUrl("Setting",
                                                           CreatePersistenceRouteValuesDic());
                settingTab.ModifyRoute = webHelpers.RouteUrl("ChooseSetting",
                                                             CreatePersistenceRouteValuesDic());
                settingTab.HighlightState      = "off";
                settingTab.CssClass            = "setting";
                settingTab.HasEditAndViewLinks = true;

                return(settingTab);
            }

            settingTab.Title          = "Choose a Setting";
            settingTab.Amount         = new Money(0, Currency.Usd).Format("{1}{0:#,0}");;
            settingTab.HighlightState = "off";
            settingTab.CssClass       = "setting";

            return(settingTab);
        }
예제 #3
0
        private NavigationTab BuildDiamondTab()
        {
            var diamondTab = new NavigationTab();

            diamondTab.Type = NagivationTabType.YourDiamond;

            diamondTab.ToolTipTitle = "Choose a Diamond";
            diamondTab.ToolTipBody  =
                "Start by choosing your diamond following these steps:<br /> <ul> <li>1. Choose a diamond</li> <li>2. Choose a desired setting</li> <li>3. Review your purchase in the \"Your Order\" tab before checkout</li> </ul><br /> Note: In any given time you can Modify or View your selected diamond or setting.";


            if (customJewelPersistenceBase.DiamondID > 0)
            {
                diamondTab.Title               = "Your Diamond";
                diamondTab.Amount              = new Money(diamond.Price, Currency.Usd).Format("{1}{0:#,0}");
                diamondTab.HighlightState      = "off";
                diamondTab.HasEditAndViewLinks = true;
                diamondTab.ViewRoute           = webHelpers.RouteUrl("Diamond", CreatePersistenceRouteValuesDic());
                diamondTab.ModifyRoute         = webHelpers.RouteUrl("DiamondSearch", CreatePersistenceRouteValuesDic());
                diamondTab.CssClass            = "diamond";
                return(diamondTab);
            }

            diamondTab.Title          = "Choose Diamond";
            diamondTab.Amount         = new Money(0, Currency.Usd).Format("{1}{0:#,0}");
            diamondTab.HighlightState = "off";
            diamondTab.CssClass       = "diamond";


            return(diamondTab);
        }
예제 #4
0
        private NavigationTab BuildFinalTab()
        {
            var finalTab = new NavigationTab();

            finalTab.Type = NagivationTabType.YourOrder;

            decimal price = 0;

            finalTab.ToolTipBody =
                "Review the diamond and the setting you have selected before proceeding to checkout.";
            finalTab.ToolTipTitle = "Your Order";

            if (customJewelPersistenceBase.DiamondID > 0)
            {
                price += diamond.Price;
            }
            if (customJewelPersistenceBase.SettingID > 0)
            {
                price += (decimal)setting.Price;
            }
            finalTab.Title          = "Your Order";
            finalTab.Amount         = new Money(price, Currency.Usd).Format("{1}{0:#,0}");
            finalTab.HighlightState = "off";
            finalTab.CssClass       = "end";


            return(finalTab);
        }
예제 #5
0
        private NavigationTab ForEachTabEvaluateTheHighlightCSSClass(NavigationTab x)
        {
            if (x.Type == this.nagivationTabType)
            {
                x.HighlightState = "on";
            }

            return(x);
        }
        private NavigationTab ForEachTabEvaluateTheHighlightCSSClass(NavigationTab x)
        {
            if (x.Type == this.nagivationTabType)
            {
                x.HighlightState = "on";
            }

            return x;
        }
        private NavigationTab BuildSettingTab()
        {
            var settingTab = new NavigationTab();

            settingTab.Type = NagivationTabType.ChooseSetting;

            settingTab.ToolTipBody = "Start by choosing your setting following these steps:<br> <ul> <li>1. Choose a setting</li> <li>2. Choose a desired diamond</li> <li>3. Review your purchase in the \"Your Order\" tab before checkout</li> </ul> <br> Note: In any given time you can Modify or View your selected setting or diamond.";
            settingTab.ToolTipTitle = "Choose a Setting";

            if (customJewelPersistenceBase.SettingID > 0)
            {
                settingTab.Title = "Your Setting";
                settingTab.Amount = new Money((decimal)setting.Price, Currency.Usd).Format("{1}{0:#,0}");
                settingTab.ViewRoute = webHelpers.RouteUrl("Setting",
                                                           CreatePersistenceRouteValuesDic());
                settingTab.ModifyRoute = webHelpers.RouteUrl("ChooseSetting",
                                                           CreatePersistenceRouteValuesDic());
                settingTab.HighlightState = "off";
                settingTab.CssClass = "setting";
                settingTab.HasEditAndViewLinks = true;

                return settingTab;
            }

            settingTab.Title = "Choose a Setting";
            settingTab.Amount = new Money(0, Currency.Usd).Format("{1}{0:#,0}"); ;
            settingTab.HighlightState = "off";
            settingTab.CssClass = "setting";

            return settingTab;
        }
        private NavigationTab BuildFinalTab()
        {
            var finalTab = new NavigationTab();

            finalTab.Type = NagivationTabType.YourOrder;

            decimal price = 0;

            finalTab.ToolTipBody =
                "Review the diamond and the setting you have selected before proceeding to checkout.";
            finalTab.ToolTipTitle = "Your Order";

            if (customJewelPersistenceBase.DiamondID>0)
            {
                price += diamond.Price;
            }
            if (customJewelPersistenceBase.SettingID>0)
            {
                price += (decimal)setting.Price;
            }
            finalTab.Title = "Your Order";
            finalTab.Amount = new Money(price, Currency.Usd).Format("{1}{0:#,0}");
            finalTab.HighlightState = "off";
            finalTab.CssClass = "end";

            return finalTab;
        }