Dynamicweb 8 Documentation
FeeCollection Class
Members  Example 

Represents a collection of fees
Object Model
FeeCollection ClassFee Class
Syntax
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
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Orders.FeeCollection

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

FeeCollection Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback