Dynamicweb.eCommerce.Orders Namespace > OrderLineField Class > GetOrderLineFields Method : GetOrderLineFields() Method |
'Declaration
Public Overloads Shared Function GetOrderLineFields() As OrderLineFieldCollection
public static OrderLineFieldCollection GetOrderLineFields()
class GroupEditPage : System.Web.UI.Page { private string GetOrderlineFieldsLayer() { System.Text.StringBuilder sbReturn = new System.Text.StringBuilder(); OrderLineFieldCollection fields = OrderLineField.GetOrderLineFields(); sbReturn.Append("<div id=""OrderLineFieldLayer"" style=""position:absolute; display:none"">"); if( fields.Count > 0 ) { sbReturn.Append("<table style=""border:solid 1px #7F9DB9; background-color:#ffffff"" cellpadding=""0"" cellspacing=""0"">"); sbReturn.Append("<tr><td>"); sbReturn.Append("<div>"); } foreach( OrderLineField field in fields ) { sbReturn.AppendFormat("<table style=""cursor:hand"" cellpadding=""0"" cellspacing=""0"" onClick=""addOrderLineField('{0}','{1}');"" onmouseover=""mouseoverBox(this);"" onmouseout=""mouseoutBox(this);""><tr>" + " <td style=""height:20px; width:20px; background-color:#D4D0C8"" align=""center""><img src=""../images/arrow.gif"" border=0></td>" + " <td style=""PADDING-LEFT: 5px; ""> {2}</td>" + " <td style=""WIDTH:9px;""></td>" + "</tr></table>", Base.HtmlEncode(Base.JSEncode(field.SystemName)), Base.HtmlEncode(Base.JSEncode(field.Name)), Base.HtmlEncode(field.Name) ); } sbReturn.Append("</div>"); sbReturn.Append("</td></tr>"); sbReturn.Append("</table>"); return sbReturn.ToString(); } }
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