<%@ page language="C#" autoeventwireup="true" inherits="NSW.Web.Manager.Controls, qwt" enableviewstate="false" enableviewstatemac="false" %> <%System.Collections.Generic.List list = NVTools.XmlUtil.Deserialize();%> <%if (list.Count > 0) {%> <%}%> <% System.Data.DataTable dt = BlueCrystal.Data.DbSession.Default.FromSql("select * from tbnvcontrols where enable=1 order by orderid asc,inputtime asc").ToDataTable(); %> <%if (dt.Rows.Count > 0) {%> <%}%> <% Hashtable ht = NVEngine.NVTempHelp.VelocityContextSet; foreach (string key in ht.Keys) { object value = ht[key]; Type type = value.GetType(); //System.Reflection.PropertyInfo[] pis = type.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); //foreach (System.Reflection.PropertyInfo pi in pis) { // Response.Write("$" + key +"." + pi.Name + "
"); //} System.Reflection.MethodInfo[] mts = type.GetMethods(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); foreach (System.Reflection.MethodInfo mt in mts) { if (mt.Name.StartsWith("get_") || mt.Name.StartsWith("set_")) { continue; } Response.Write("$" + key + "." + mt.Name + "("); System.Reflection.ParameterInfo[] pins = mt.GetParameters(); int index = 0; foreach (System.Reflection.ParameterInfo pin in pins) { string pinType = pin.ParameterType.ToString(); int last = pinType.LastIndexOf("."); if (last > 0) { pinType = pinType.Substring(last + 1); } Response.Write(pinType + " " + pin.Name + ","); if (index < pins.Length) { Response.Write(pinType + " " + pin.Name); } index++; } Response.Write(")
"); } } %>
常用控件:
<%foreach (NVTools.XMLControl control in list) {%> <% }%>
<%foreach (NVTools.XMLControl control in list) {%>
控件名称:<%=control.Title %>
使用方法:

<%}%>
NVelocity控件库:
<%foreach (System.Data.DataRow row in dt.Rows) {%> <% }%>
<%foreach (System.Data.DataRow row in dt.Rows) {%>
" > 控件名称:<%=row["ID"] %>
使用方法:

<% }%>