Dynamicweb.eCommerce.Orders Namespace : FeeCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class FeeCollection Inherits System.Collections.ObjectModel.Collection(Of Fee)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class FeeCollection : System.Collections.ObjectModel.Collection<Fee>
class MyPage : System.Web.UI.Page { public String GetFeeData() { System.Text.StringBuilder feeStr = new System.Text.StringBuilder(); feeStr.Append("<table>") FeeCollection dwFees = Fee.GetFees("PAY", payId); foreach( Fee dwFee in dwFees ) { String selA = "selected"; String selB = ""; String FeeValue = Dynamicweb.eCommerce.Common.Application.DefaultCurrency.Format(dwFee.ValueAmount, False); if(dwFee.Type == 1) { //Percent selA = ""; selB = "selected"; FeeValue = dwFee.ValueAmount.ToString(Base.GetCulture()); } feeStr.Append("<tr>"); feeStr.Append("<td><input type=""text"" value=""" + FeeValue + """></td>"); feeStr.Append("<td><select><option value=""0"" " + selA + ">$</option><option value=""1"" " + selB + ">%</option></select></td>"); feeStr.Append("</tr>"); } feeStr.Append("</table>") return feeStr.ToString(); } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Orders.FeeCollection
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