protected string GetExpireDate(string isExpirable, object expireDate) { if (!ConvertUtilities.ToBoolean(isExpirable)) { return("-"); } else { return(String.Format("{0:dd} {0:MMM} {0:yyyy}", (DateTime)expireDate)); } }
protected void uxIsSQLAuthenticationDrop_SelectedIndexChanged(object sender, EventArgs e) { if (ConvertUtilities.ToBoolean(uxIsSQLAuthenticationDrop.SelectedValue)) { uxLoginDetailPanel.Visible = true; } else { uxLoginDetailPanel.Visible = false; } }
protected bool ShowStock(object useInventory, object HasOptionStock) { if (!ConvertUtilities.ToBoolean(useInventory) || ConvertUtilities.ToBoolean(HasOptionStock)) { return(false); } else { return(true); } }
protected string GetStockText(string sumStock, object isGiftCertificate, object useInventory) { if (!ConvertUtilities.ToBoolean(useInventory)) { return("-"); } else { return(sumStock); } }
protected string GetStateText(object stateCode, object isDefaultCountry, object isDefaultstate) { if (!ConvertUtilities.ToBoolean(isDefaultCountry) && ConvertUtilities.ToBoolean(isDefaultstate)) { return("All other state"); } else { return(stateCode.ToString()); } }
protected bool CanPayCommission(object paymentStatus, object pending) { if (ConvertUtilities.ToBoolean(paymentStatus) || ConvertUtilities.ToBoolean(pending)) { return(false); } else { return(true); } }
private DiscountGroup GetDiscountGroupFromGrid(DiscountGroup discountGroup, GridViewRow row) { string uxGroupNameText = ((TextBox)row.FindControl("uxGroupNameText")).Text; string uxDiscountType = ((DropDownList)row.FindControl("uxDiscountTypeDrop")).SelectedValue; string uxProductOptionDiscount = ((DropDownList)row.FindControl("uxProductOptionDiscount")).SelectedValue; discountGroup.GroupName = uxGroupNameText; discountGroup.DiscountType = GetDiscountType(uxDiscountType); discountGroup.ProductOptionDiscount = ConvertUtilities.ToBoolean(uxProductOptionDiscount); return(discountGroup); }
protected void Page_Load(object sender, EventArgs e) { if (!ConvertUtilities.ToBoolean(DataAccessContext.Configurations.GetValue("FBLikeButton"))) { uxFBLikeButtonFrame.Visible = false; } else { uxFBLikeButtonFrame.Attributes["src"] = GetLikeButtonCode(); uxGplusButton.InnerHtml = GetGooglePlusCode(); } }
private void AddItemToShoppingCart(DataListItem item, out string errorMessage) { Components_OptionGroupDetails uxOptionGroupDetails = (Components_OptionGroupDetails)item.FindControl("uxOptionGroupDetails"); Components_GiftCertificateDetails uxGiftCertificateDetails = (Components_GiftCertificateDetails)item.FindControl("uxGiftCertificateDetails"); TextBox uxEnterAmountText = (TextBox)item.FindControl("uxEnterAmountText"); TextBox uxQuantityText = (TextBox)item.FindControl("uxQuantityText"); decimal customPrice = decimal.Divide(decimal.Parse(uxEnterAmountText.Text), Convert.ToDecimal(StoreContext.Currency.ConversionRate)); CartAddItemService addToCartService = new CartAddItemService( StoreContext.Culture, StoreContext.ShoppingCart); int currentStock; string errorOptionName; bool stockOK = addToCartService.AddToCart( CurrentProduct, uxOptionGroupDetails.GetSelectedOptions(), ProductKitItemValueCollection.Null, ConvertUtilities.ToInt32(uxQuantityText.Text), uxGiftCertificateDetails.GetCartItemGiftDetails(), customPrice, out errorOptionName, out currentStock); if (stockOK) { errorMessage = String.Empty; bool enableNotification = ConvertUtilities.ToBoolean(DataAccessContext.Configurations.GetValue("EnableAddToCartNotification", StoreContext.CurrentStore)); if (UrlManager.IsMobileDevice(Request)) { enableNotification = false; } if (enableNotification) { uxAddToCartNotification.Show(CurrentProduct, ConvertUtilities.ToInt32(uxQuantityText.Text), customPrice, uxGiftCertificateDetails.GetCartItemGiftDetails(), uxOptionGroupDetails.GetSelectedOptions(), ProductKitItemValueCollection.Null); uxAddtoCartUpdate.Update(); } else { Response.Redirect("ShoppingCart.aspx"); } } else { DisplayOutOfStockError(currentStock, errorOptionName, out errorMessage); } }
private ShippingOption SetUpShippingOption(ShippingOption shippingOption) { shippingOption.ShippingName = uxShippingNameText.Text; shippingOption.FreeShipping = ConvertUtilities.ToBoolean(uxFreeShippingDrop.SelectedValue); shippingOption.FreeShippingValue = ConvertUtilities.ToDecimal(uxFreeShippingValueText.Text); shippingOption.FixedShippingCost = ConvertUtilities.ToDecimal(uxFixCostText.Text); shippingOption.ShippingCostFirstItem = ConvertUtilities.ToDecimal(uxFirstItemText.Text); shippingOption.ShippingCostNextItem = ConvertUtilities.ToDecimal(uxNextItemText.Text); shippingOption.IsEnabled = ConvertUtilities.ToBoolean(uxIsEnabledDrop.SelectedValue); shippingOption.HandlingFee = ConvertUtilities.ToDecimal(uxHandlingFeeText.Text); shippingOption.AllowedType = GetAllowedType(); return(shippingOption); }
protected string GetZipText(object zipCode, object isDefaultCountry, object isDefaultstate, object isDefaultZip) { if (!ConvertUtilities.ToBoolean(isDefaultCountry) && !ConvertUtilities.ToBoolean(isDefaultstate) && ConvertUtilities.ToBoolean(isDefaultZip)) { return("All other zip"); } else { return(zipCode.ToString()); } }
protected bool IsShowCustomPrice(object isCustomPrice, object isCallForPrice) { if (ConvertUtilities.ToBoolean(isCallForPrice)) { return(false); } if (ConvertUtilities.ToBoolean(isCustomPrice)) { return(true); } return(false); }
private void PopulateControls() { uxContentMenuNavListTop.Controls.Clear(); DataTable menuTable = AdminMenuAdvancedAccessCache.Instance.GetAllByAdminID( AdminConfig.CurrentCultureID, DataAccessContext.AdminRepository.GetIDFromUserName(Page.User.Identity.Name), "SortOrder", FlagFilter.ShowAll); DataRow[] parentRows = menuTable.Select("ParentMenuKey = '' OR ParentMenuKey is null", "SortOrder"); if (parentRows.Length > 0) { uxContentMenuNavListTop.Items.Add(GetMenuItem("DefaultMain", true)); for (int i = 0; i < parentRows.Length; i++) { if (!IsDisabledMenu(parentRows[i]["MenuKey"].ToString(), excludeParentMenus)) { bool parentViewMode = ConvertUtilities.ToBoolean(parentRows[i]["ViewMode"]); MenuItem parentItem = GetMenuItem(parentRows[i]["MenuKey"].ToString(), parentViewMode); DataRow[] childRows = menuTable.Select("ParentMenuKey = '" + parentRows[i]["MenuKey"].ToString() + "' ", "SortOrder"); if (childRows.Length > 0) { for (int j = 0; j < childRows.Length; j++) { bool viewPermission = ConvertUtilities.ToBoolean(childRows[j]["ViewMode"]); if (viewPermission && !IsDisabledMenu(childRows[j]["MenuKey"].ToString(), excludeMenus)) { MenuItem childrenItem = GetMenuItem(childRows[j]["MenuKey"].ToString(), viewPermission); if (childRows[j]["MenuKey"].ToString().CompareTo("News") != 0) { parentItem.ChildItems.Add(childrenItem); } } } } if (parentItem.ChildItems.Count == 0 && !parentViewMode) { continue; } uxContentMenuNavListTop.Items.Add(parentItem); uxContentMenuNavListTop.Orientation = Orientation.Horizontal; } } } }
private Customer SetUpCustomer() { Customer customer = new Customer(); customer.UserName = uxUserName.Text.Trim(); customer.BillingAddress = new Address(uxFirstName.Text, uxLastName.Text, uxCompany.Text, uxAddress1.Text, uxAddress2.Text, uxCity.Text, uxCountryState.CurrentState, uxZip.Text, uxCountryState.CurrentCountry, uxPhone.Text, uxFax.Text); customer.Email = uxEmail.Text.Trim(); customer.UseBillingAsShipping = uxUseBillingAsShipping.Checked; ShippingAddress shippingAddress = new ShippingAddress(new Address( uxShippingFirstName.Text, uxShippingLastName.Text, uxShippingCompany.Text, uxShippingAddress1.Text, uxShippingAddress2.Text, uxShippingCity.Text, uxShippingCountryState.CurrentState, uxShippingZip.Text, uxShippingCountryState.CurrentCountry, uxShippingPhone.Text, uxShippingFax.Text), ConvertUtilities.ToBoolean(uxShippingResidentialDrop.SelectedValue)); shippingAddress.AliasName = uxShippingFirstName.Text + " " + uxShippingLastName.Text + " " + uxShippingAddress1.Text; if (uxUseBillingAsShipping.Checked) { shippingAddress.IsSameAsBillingAddress = true; } else { shippingAddress.IsSameAsBillingAddress = false; } customer.ShippingAddresses.Add(shippingAddress); if (!IsCustomerAutoApprove) { customer.IsEnabled = false; } String storeID = new StoreRetriever().GetStore().StoreID; IList <String> storeIDList = new List <String>(); storeIDList.Add(storeID); customer.StoreIDs = storeIDList; return(customer); }
private void Update() { GiftCertificate giftCertificate = DataAccessContext.GiftCertificateRepository.GetOne(GiftCertificateCode); giftCertificate.GiftValue = ConvertUtilities.ToDecimal(uxGiftValueText.Text); giftCertificate.RemainValue = ConvertUtilities.ToDecimal(uxRemainValueText.Text); giftCertificate.Recipient = uxRecipientText.Text; giftCertificate.PersonalNote = uxPersonalNote.Text; giftCertificate.IsExpirable = ConvertUtilities.ToBoolean(uxIsExpireCheck.Checked); giftCertificate.ExpireDate = uxDateCalendarPopup.SelectedDate; giftCertificate.NeedPhysical = ConvertUtilities.ToBoolean(uxNeedPhysicalCheck.Checked); giftCertificate.IsActive = ConvertUtilities.ToBoolean(uxIsActiveCheck.Checked); DataAccessContext.GiftCertificateRepository.Update(giftCertificate); }
public void Update(Store store) { if (uxWidgetTypeDrop.SelectedValue.Equals("Default")) { uxWidgetCustomCodeText.Text = ""; string defaultCode = GetDefaultCode(); widget = new Widget(_style, defaultCode, uxWidgetParameterText.Text); } else { uxWidgetParameterText.Text = ""; widget = new Widget(_style, uxWidgetCustomCodeText.Text); } widget.Enabled = ConvertUtilities.ToBoolean(uxWidgetEnableDrop.SelectedValue); widget.SaveConfig(store); }
protected bool IsAuthorizedToViewPrice(Product product) { bool show = true; if (ConvertUtilities.ToBoolean(product.IsCallForPrice)) { return(false); } if (DataAccessContext.Configurations.GetBoolValue("PriceRequireLogin") && !Page.User.Identity.IsAuthenticated) { show = false; } return(show); }
public void PopulateControls() { uxDownloadCountUnlimitDrop.SelectedValue = DataAccessContext.Configurations.GetValue("IsUnlimitDownload"); uxNumberOfDownloadCountText.Text = DataAccessContext.Configurations.GetValue("NumberOfDownloadCount"); if (ConvertUtilities.ToBoolean(DataAccessContext.Configurations.GetValue("IsUnlimitDownload"))) { uxNumberOfDownloadCountPanel.Visible = false; } else { uxNumberOfDownloadCountPanel.Visible = true; } }
public Product Setup(Culture culture) { if (ConvertUtilities.ToBoolean(uxIsGiftCertificateDrop.SelectedValue)) { GiftCertificateProduct giftProduct = new GiftCertificateProduct(culture); giftProduct.GiftAmount = ConvertUtilities.ToDecimal(uxGiftAmountText.Text); giftProduct.ExpireType = GetExpireType(); giftProduct.FixedExpireDate = GetGiftFixedExpirationDate(); giftProduct.NumberOfDays = ConvertUtilities.ToInt32(uxNumberOfDayText.Text); giftProduct.IsElectronic = uxIsElectronicCheck.Checked; return(giftProduct); } else { return(new Product(culture)); } }
private void UpdateShippingAddress() { Customer customer = DataAccessContext.CustomerRepository.GetOne(CustomerID); for (int i = 0; i < customer.ShippingAddresses.Count; i++) { if (customer.ShippingAddresses[i].ShippingAddressID == ShippingAddressID) { customer.ShippingAddresses[i] = new ShippingAddress(new Address( uxShippingFirstName.Text, uxShippingLastName.Text, uxShippingCompany.Text, uxShippingAddress1.Text, uxShippingAddress2.Text, uxShippingCity.Text, uxShippingCountryState.CurrentState, uxShippingZip.Text, uxShippingCountryState.CurrentCountry, uxShippingPhone.Text, uxShippingFax.Text), ConvertUtilities.ToBoolean(uxShippingResidentialDrop.SelectedValue)); if (uxShippingAliasName.Text.Length > 50) { customer.ShippingAddresses[i].AliasName = uxShippingAliasName.Text.Substring(0, 50); } else { customer.ShippingAddresses[i].AliasName = uxShippingAliasName.Text; } customer.ShippingAddresses[i].ShippingAddressID = ShippingAddressID; if (uxUseBillingAsShipping.Checked) { customer.ShippingAddresses[i].IsSameAsBillingAddress = true; } else { customer.ShippingAddresses[i].IsSameAsBillingAddress = false; } } } customer = DataAccessContext.CustomerRepository.Save(customer); }
private void AddItemToShoppingCart() { OptionItemValueCollection selectedOptions = uxOptionGroupDetails.GetSelectedOptions(); ProductKitItemValueCollection selectedKits = uxProductKitGroupDetails.GetSelectedProductKitItems(); CartItemGiftDetails giftDetails = CreateGiftDetails(); decimal customPrice = decimal.Parse(uxEnterAmountText.Text); customPrice = decimal.Divide(customPrice, Convert.ToDecimal(StoreContext.Currency.ConversionRate)); CartAddItemService addToCartService = new CartAddItemService( StoreContext.Culture, StoreContext.ShoppingCart); int currentStock; string errorOptionName; bool stockOK = addToCartService.AddToCart( CurrentProduct, selectedOptions, selectedKits, ConvertUtilities.ToInt32(uxQuantityText.Text), giftDetails, customPrice, out errorOptionName, out currentStock); if (stockOK) { bool enableNotification = ConvertUtilities.ToBoolean(DataAccessContext.Configurations.GetValue("EnableAddToCartNotification", StoreContext.CurrentStore)); if (UrlManager.IsMobileDevice(Request)) { enableNotification = false; } if (enableNotification) { uxAddToCartNotification.Show(CurrentProduct, ConvertUtilities.ToInt32(uxQuantityText.Text), customPrice, giftDetails, selectedOptions, selectedKits); } else { Response.Redirect("ShoppingCart.aspx"); } } else { DisplayOutOfStockError(currentStock, errorOptionName); } }
public Product Setup(Product product) { if (ConvertUtilities.ToBoolean(uxIsRecurringDrop.SelectedValue)) { ProductRecurring recurring = new ProductRecurring(); recurring.RecurringInterval = ConvertUtilities.ToInt32(uxIntervalText.Text); recurring.RecurringIntervalUnit = uxIntervalUnitDrop.SelectedValue; recurring.RecurringNumberOfCycles = ConvertUtilities.ToInt32(uxIntervalNumberCycleText.Text); recurring.RecurringNumberOfTrialCycles = ConvertUtilities.ToInt32(uxTrialNumberCycleText.Text); recurring.RecurringTrialAmount = ConvertUtilities.ToDecimal(uxTrialAmountText.Text); product.ProductRecurring = recurring; } product.IsRecurring = ConvertUtilities.ToBoolean(uxIsRecurringDrop.SelectedValue); return(product); }
private void PopulateContentPagesRange() { int all = GetAllContentsInCurrentStore().Count; uxContentStartText.Text = "1"; uxContentEndText.Text = all.ToString(); uxAllContentLabel.Text = all.ToString(); if (ConvertUtilities.ToBoolean(uxSiteMapIncludesContentsDropDown.SelectedValue)) { uxContentRangePanel.Visible = true; } else { uxContentRangePanel.Visible = false; } }
private Category SetUpCategory(Category category) { category.Name = uxNameText.Text; category.Description = uxDescriptionText.Text; category.ImageFile = uxImageText.Text; category.ParentCategoryID = SetParentCategoryID(); category.DiscountGroupID = ConvertUtilities.ToInt32(uxQuantityDiscount.DiscountGounpID); category.IsEnabled = uxIsEnabledCheck.Checked; category.Other1 = uxOtherOneText.Text; category.Other2 = uxOtherTwoText.Text; category.Other3 = uxOtherThreeText.Text; category.Other4 = uxOtherFourText.Text; category.Other5 = uxOtherFiveText.Text; category.MetaKeyword = uxMetaKeywordText.Text; category.MetaDescription = uxMetaDescriptionText.Text; category.CategoryListLayoutPath = uxCategoryLayoutDrop.SelectedValue; category.ProductListLayoutPath = uxProductListLayoutDrop.SelectedValue; category.RootID = RootCategoryID; category.ImageAlt = uxImgAlternateTextbox.Text; category.ImageTitle = uxImgTitleTextbox.Text; category.IsAnchor = uxIsAnchorCheck.Checked; category.IsShowNewArrival = uxIsShowNewArrivalCheck.Checked; category.NewArrivalAmount = ConvertUtilities.ToInt32(uxNewArrivalAmountText.Text); if (!ConvertUtilities.ToBoolean(uxLayoutOverrideDrop.SelectedValue)) { category.ProductListLayoutPath = String.Empty; category.CategoryListLayoutPath = String.Empty; } else { if (uxLayoutTypeRadioButtonList.SelectedValue == "Category") { category.ProductListLayoutPath = String.Empty; category.CategoryListLayoutPath = uxCategoryLayoutDrop.SelectedValue; } else { category.ProductListLayoutPath = uxProductListLayoutDrop.SelectedValue; category.CategoryListLayoutPath = String.Empty; } } return(category); }
private void SetShippingAddress() { Address billingAddress = new Address( uxFirstName.Text, uxLastName.Text, uxCompany.Text, uxAddress1.Text, uxAddress2.Text, uxCity.Text, uxStateList.CurrentSelected, uxZip.Text, uxCountryList.CurrentSelected, uxPhone.Text, uxFax.Text); bool showShippingAddress = true; Address address = new Address(); if (uxUseBillingAsShipping.Checked) { CheckUseBillingAsShipping(); address = billingAddress; } else { address = new Address( uxShippingFirstName.Text, uxShippingLastName.Text, uxShippingCompany.Text, uxShippingAddress1.Text, uxShippingAddress2.Text, uxShippingCity.Text, uxShippingStateList.CurrentSelected, uxShippingZip.Text, uxShippingCountryList.CurrentSelected, uxShippingPhone.Text, uxShippingFax.Text ); } StoreContext.CheckoutDetails.ShippingAddress = new ShippingAddress( address, ConvertUtilities.ToBoolean(uxShippingResidentialDrop.SelectedValue)); StoreContext.CheckoutDetails.SetShowShippingAddress(showShippingAddress); }
private Department SetUpDepartment(Department department) { department.Name = uxNameText.Text; department.Description = uxDescriptionText.Text; department.ImageFile = uxImageText.Text; department.ParentDepartmentID = SetParentDepartmentID(); department.DiscountGroupID = ConvertUtilities.ToInt32(uxQuantityDiscount.DiscountGounpID); department.IsEnabled = uxIsEnabledCheck.Checked; department.Other1 = uxOtherOneText.Text; department.Other2 = uxOtherTwoText.Text; department.Other3 = uxOtherThreeText.Text; department.Other4 = uxOtherFourText.Text; department.Other5 = uxOtherFiveText.Text; department.MetaKeyword = uxMetaKeywordText.Text; department.MetaDescription = uxMetaDescriptionText.Text; department.DepartmentListLayoutPath = uxDepartmentLayoutDrop.SelectedValue; department.ProductListLayoutPath = uxProductListLayoutDrop.SelectedValue; department.RootID = RootDepartmentID; department.ImageAlt = uxImgAlternateTextbox.Text; department.ImageTitle = uxImgTitleTextbox.Text; department.IsAnchor = uxIsAnchorCheck.Checked; department.IsShowNewArrival = uxIsShowNewArrivalCheck.Checked; department.NewArrivalAmount = ConvertUtilities.ToInt32(uxNewArrivalAmountText.Text); if (!ConvertUtilities.ToBoolean(uxLayoutOverrideDrop.SelectedValue)) { department.ProductListLayoutPath = String.Empty; department.DepartmentListLayoutPath = String.Empty; } else { if (uxLayoutTypeRadioButtonList.SelectedValue == "Department") { department.ProductListLayoutPath = String.Empty; department.DepartmentListLayoutPath = uxDepartmentLayoutDrop.SelectedValue; } else { department.ProductListLayoutPath = uxProductListLayoutDrop.SelectedValue; department.DepartmentListLayoutPath = String.Empty; } } return(department); }
public Product Setup(Product product) { product.ProductKits.Clear(); if (ConvertUtilities.ToBoolean(uxIsProductKitDrop.SelectedValue)) { foreach (string groupID in uxMultiProductKitGroup.ConvertToProductKitGroupIDs()) { ProductKit productKit = new ProductKit(CurrentCulture); productKit.ProductKitGroupID = groupID; product.ProductKits.Add(productKit); } } product.IsProductKit = ConvertUtilities.ToBoolean(uxIsProductKitDrop.SelectedValue); return(product); }
protected string GetCountryText(object countryCode, object isDefaultCountry) { if (ConvertUtilities.ToBoolean(isDefaultCountry)) { IList <TaxClassRule> list = DataAccessContext.TaxClassRepository.GetTaxClassRulesByTaxClassID(TaxClassID); if (list.Count == 1) { return("Everywhere in the world"); } else { return("The rest of the world"); } } else { return(countryCode.ToString()); } }
public void PopulateControls() { uxRetailPriceModeDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("RetailPriceMode").ToString(); uxShowSkuModeDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("ShowSkuMode").ToString(); uxDisplayOptionDrop.SelectedValue = DataAccessContext.Configurations.GetValue("IsDisplayOptionInProductList"); uxIsDiscountAllCustomerDrop.SelectedValue = DataAccessContext.Configurations.GetValue("IsDiscountAllCustomer"); uxSiteMapEnabledDrop.SelectedValue = DataAccessContext.Configurations.GetValue("SiteMapEnabled"); uxLogoInvoiceImageText.Text = DataAccessContext.Configurations.GetValue("LogoInvoiceImage"); uxShippingAddDrop.SelectedValue = DataAccessContext.Configurations.GetValue("ShippingAddressMode").ToString(); uxIgnoreProductFixedShippingDrop.SelectedValue = DataAccessContext.Configurations.GetValue("RTShippingIgnoreFixedShippingCost"); uxQuantityDiscountDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("QuantityDiscountSeparateOption").ToString(); uxHandlingFeeEnabledDrop.SelectedValue = DataAccessContext.Configurations.GetValue("HandlingFeeEnabled"); uxLanguageMenuDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("LanguageMenuDisplayMode"); uxOutOfStockValueText.Text = DataAccessContext.Configurations.GetValue("OutOfStockValue"); uxModeCatalogDrop.SelectedValue = DataAccessContext.Configurations.GetValue("IsCatalogMode"); uxUseInventoryControlDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("UseStockControl").ToString(); uxDisplayRemainingQuantityDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("ShowQuantity").ToString(); PopulateSiteMapConfig(); uxVevoPayConfigPanel.Visible = ConvertUtilities.ToBoolean(DataAccessContext.Configurations.GetValue("VevoPayPADSSMode")); uxPaymentSSLEnabledDrop.SelectedValue = DataAccessContext.Configurations.GetValue("PaymentSSLEnabled"); uxVevoPayPADSSModeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("VevoPayPADSSMode"); uxWeightUnitDrop.SelectedValue = DataAccessContext.Configurations.GetValue("WeightUnit"); uxAdminSSLDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableAdminSSL").ToString(); uxCouponEnabledDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CouponEnabled"); uxFaceBookLikeButtonDrop.SelectedValue = DataAccessContext.Configurations.GetValue("FBLikeButton"); uxCustomerAutoApproveDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CustomerAutoApprove"); uxPaymentAppText.PopulateControls(); uxPolicyAgreementControl.PopulateControls(); uxCanonicalizationControl.PopulateControls(); }
private void SortDataBySortOrder() { DataRow[] dataRows = _tempImageSource.Select("", "SortOrder"); for (int i = 0; i < dataRows.Length; i++) { CreateRow( _imageSource, dataRows[i]["ProductImageID"].ToString(), ConvertUtilities.ToInt32(dataRows[i]["ProductID"]), dataRows[i]["RegularImage"].ToString(), dataRows[i]["LargeImage"].ToString(), dataRows[i]["ThumbnailImage"].ToString(), ConvertUtilities.ToInt32(dataRows[i]["ImageSize"]), ConvertUtilities.ToInt32(dataRows[i]["SortOrder"]), ConvertUtilities.ToBoolean(dataRows[i]["IsZoom"]), ConvertUtilities.ToBoolean(dataRows[i]["IsEnlarge"]), ConvertUtilities.ToInt32(dataRows[i]["ImageWidth"]), ConvertUtilities.ToInt32(dataRows[i]["ImageHeight"]), dataRows[i]["AltTag"].ToString(), dataRows[i]["TitleTag"].ToString() ); } }