protected void BindGridViews()
        {
            LocalizationUtils.LocalizeGridView(VolumeDiscountsGridView, Localization);

            VolumeDiscountsGridView.DataSource = HccApp.CatalogServices.VolumeDiscounts.FindByProductId(ProductId);
            VolumeDiscountsGridView.DataBind();
        }
        public void LocalizeView()
        {
            txtNewName.Attributes.Add("placeholder", Localization.GetString("txtNewName.Placeholder"));

            var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile);

            LocalizationUtils.LocalizeGridView(gvItems, localization);
        }
        private void LocalizeView()
        {
            txtDisplayName.Attributes["placeholder"] = Localization.GetString("txtDisplayName.EmptyMessage");
            DisplayNameValidator.ErrorMessage        = Localization.GetString("DisplayNameValidator.ErrorMessage");

            var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile);

            LocalizationUtils.LocalizeGridView(gridTaxes, localization);
        }
Exemplo n.º 4
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            LocalizationUtils.LocalizeGridView(gvVendors, Localization);

            if (!Page.IsPostBack)
            {
                InitialBindData();
            }
        }
Exemplo n.º 5
0
        private void LoadPropertyLists()
        {
            var selectedProperties = HccApp.CatalogServices.ProductPropertiesFindForType(TypeId);

            LocalizationUtils.LocalizeGridView(gvProperties, Localization);

            gvProperties.DataSource = selectedProperties;
            gvProperties.DataBind();

            lstAvailableProperties.DataSource     = HccApp.CatalogServices.ProductPropertiesFindNotAssignedToType(TypeId);
            lstAvailableProperties.DataTextField  = "PropertyName";
            lstAvailableProperties.DataValueField = "Id";
            lstAvailableProperties.DataBind();
        }
Exemplo n.º 6
0
        private void LoadRoles()
        {
            var selRoles = HccApp.CatalogServices.CatalogRoles.FindByProductTypeId(new Guid(TypeId));

            ddlRoles.DataTextField  = "RoleName";
            ddlRoles.DataValueField = "RoleName";
            ddlRoles.DataSource     =
                DnnUserController.Instance.GetRoles().Where(r => !selRoles.Any(sr => sr.RoleName == r.RoleName));
            ddlRoles.DataBind();

            LocalizationUtils.LocalizeGridView(gvRoles, Localization);

            gvRoles.DataSource = selRoles;
            gvRoles.DataBind();
        }
Exemplo n.º 7
0
        protected void gvSubscriptions_DataBinding(object sender, EventArgs e)
        {
            // Check if column was found. Probably we are in PostBack and it's name was already translated
            var totalPayedColumn =
                gvSubscriptions.Columns
                .OfType <DataControlField>()
                .FirstOrDefault(c => c.HeaderText == "TotalPayed");

            if (totalPayedColumn != null)
            {
                totalPayedColumn.Visible = !EditMode;
            }

            LocalizationUtils.LocalizeGridView(gvSubscriptions, Localization);
        }
        private void LocalizeView()
        {
            txtShippingZoneName.Attributes["placeholder"] = Localization.GetString("NewZoneField.EmptyMessage");
            rfvShippingZoneName.ErrorMessage = Localization.GetString("NewZoneFieldValidator.ErrorMessage");
            HandlingFeeAmountCustomValidator.ErrorMessage =
                Localization.GetString("HandlingFeeAmountCustomValidator.ErrorMessage");

            if (rbtnHandlingMethod.Items.Count == 0)
            {
                rbtnHandlingMethod.Items.Add(new ListItem(Localization.GetString("PerItem"), "0"));
                rbtnHandlingMethod.Items.Add(new ListItem(Localization.GetString("PerOrder"), "1"));
            }

            var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile);

            LocalizationUtils.LocalizeGridView(gridZones, localization);
            LocalizationUtils.LocalizeGridView(gridMethods, localization);
        }
Exemplo n.º 9
0
        protected void gvItems_DataBinding(object sender, EventArgs e)
        {
            // Check if column was found. Probably we are in PostBack and it's name was already translated
            var shippingColumn =
                gvItems.Columns.OfType <DataControlField>().FirstOrDefault(c => c.HeaderText == "Shipping");

            if (shippingColumn != null)
            {
                shippingColumn.Visible = !EditMode;
            }

            var actionsColumn =
                gvItems.Columns.OfType <DataControlField>().FirstOrDefault(c => c.HeaderText == "Actions");

            if (actionsColumn != null)
            {
                actionsColumn.Visible = EditMode;
            }

            LocalizationUtils.LocalizeGridView(gvItems, Localization);
        }
        private void LocalizeView()
        {
            var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile);

            LocalizationUtils.LocalizeGridView(ProductsGridView, localization);
        }
Exemplo n.º 11
0
 private void LocalizeView()
 {
     LocalizationUtils.LocalizeGridView(gvOrders, Localization);
 }