Dynamicweb 8 Documentation
Fee Class
Members  Example 

Represents information about a fee.
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class Fee 
[SerializableAttribute()] 
public class Fee 
Example
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();
     }
 }
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Orders.Fee

Requirements

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

See Also

Reference

Fee Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback