@using DataLineM.Models @using System.Web.Mvc.Html @using DataLineM.Helpers @helper Detail(string a,string b){ @b } @helper NodeDesc(DataNodeModel mod) { } @helper NodeAttrs(DataNodeModel mod) { if (@mod.Attrs != null){ @foreach(DataNodeAttrModel att in @mod.Attrs){ }
-- @att.AttrName @att.AttrValue
} } @helper NodeCalcs(DataNodeModel mod){ if (@mod.Calcs != null){ @foreach(DataNodeCalcModel cal in @mod.Calcs){ }
编号表达式结果
@cal.ExpID @cal.Express
} } @helper NodeDetail(DataNodeModel mod,bool bShowCalc) {

节点编号 @mod.NodeID

@NodeDesc(mod)

属性列表:

@NodeAttrs(mod) if (bShowCalc){

表达式:编辑

@NodeCalcs(mod) } }