Dynamicweb.eCommerce.Orders Namespace : Fee Class |
'Declaration
<SerializableAttribute()> Public Class Fee
[SerializableAttribute()] public class 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
Dynamicweb.eCommerce.Orders.Fee
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