public void SetGroupDiscountRule(
            int size, 
            GroupSizeOption sizeOrMore, 
            double discountPrice, 
            DiscountType type, 
            AdditionalRegOption additionalOrAll, 
            int? additionalNumber)
        {
            // Enable group discount rule
            this.SetEnableRule(true);

            // Set group size
            this.SetRuleGroupSize(size, sizeOrMore);

            // Set group discount
            this.SetDiscount(discountPrice, type);

            if (sizeOrMore == GroupSizeOption.JustSize)
            {
                this.SetAdditionalRegOption(additionalOrAll, additionalNumber);
            }

            this.SaveAndClose();
        }
        public void SetAdditionalRegOption(AdditionalRegOption additionalOrAll, int? additionalNumber)
        {
            UIUtil.DefaultProvider.SelectWithText("ctl00_cphDialog_AdditionalAllDropDownList", additionalOrAll.ToString(), LocateBy.Id);

            if (additionalOrAll == AdditionalRegOption.Additional)
            {
                UIUtil.DefaultProvider.TypeRADNumericById("ctl00_cphDialog_EffectedSizeTextBox", additionalNumber);
            }
        }