@using DataLineM.Models
@using System.Web.Mvc.Html
@using DataLineM.Helpers
@helper Detail(string a,string b){
@b
}
@helper NodeDesc(DataNodeModel mod)
{
- 业务名 @mod.BllName
- 布署IP @mod.RunIP
- 布署路径 @mod.RunFullPath
- 程序键 @mod.RunProgKey
}
@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)
}
}