Beispiel #1
0
        private void LoadServiceCodes()
        {
            var ups = AvailableServices.FindById(ShippingMethod.ShippingProviderId, HccApp.CurrentStore);

            ShippingTypesRadioButtonList.DataSource     = ups.ListAllServiceCodes();
            ShippingTypesRadioButtonList.DataTextField  = "DisplayName";
            ShippingTypesRadioButtonList.DataValueField = "Code";
            ShippingTypesRadioButtonList.DataBind();
        }
Beispiel #2
0
        private void LoadServiceCodes()
        {
            ShippingTypesRadioButtonList.Items.Clear();

            var ups = AvailableServices.FindById(ShippingMethod.ShippingProviderId, HccApp.CurrentStore);

            ShippingTypesRadioButtonList.DataSource     = ups.ListAllServiceCodes();
            ShippingTypesRadioButtonList.DataTextField  = "DisplayName";
            ShippingTypesRadioButtonList.DataValueField = "Code";
            ShippingTypesRadioButtonList.DataBind();

            if (IsNew || ShippingTypesRadioButtonList.SelectedIndex == -1)
            {
                ShippingTypesRadioButtonList.Items[0].Selected = true;
            }
        }