Dynamicweb.eCommerce.Prices Namespace > PriceMatrix Class : addObjeckList Method |
class MyPage : System.Web.UI.Page { private Dynamicweb.eCommerce.Prices.PriceMatrix price; private void Page_Load(System.Object sender, System.EventArgs e) { price = (Dynamicweb.eCommerce.Prices.PriceMatrix)Session["Ecom.Backend.PriceMatrix"]; } public void generateMatrix() { System.Text.StringBuilder sb = new System.Text.StringBuilder(); System.Collections.DictionaryEntry Item = default(System.Collections.DictionaryEntry); SortedList sortedList = new SortedList(); if ((price.fieldList != null) && price.fieldList.Count > 0) { foreach (DictionaryEntry Item_loopVariable in price.fieldList) { Item = Item_loopVariable; if (Base.ChkNumber(Item.Value) > 0) { sortedList.Add(Base.ChkNumber(Item.Value), Item.Key.ToString()); } } } if ((sortedList != null) && sortedList.Count > 0) { foreach (DictionaryEntry Item_loopVariable in sortedList) { Item = Item_loopVariable; if (Base.ChkNumber(Item.Key) > 0) { price.addObjeckList(Item.Value.ToString(), Base.ChkNumber(Item.Key)); } } } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2