@model System.Data.DataTable @functions{ public string GetAllowAttach(string allowAttach) { switch (allowAttach) { case "0": return "不允许"; case "1": return "允许"; default: return ""; } } } @section head{流程列表 } @section content{ @foreach (DataRow dr in Model.Rows) { }
ID 流程名称 流程表单 允许附件 备注 操作
@dr["ID"] @dr["ProcedureName"] @dr["FormInfo"] @GetAllowAttach(DataConvert.CStr(dr["AllowAttach"])) @dr["Remind"] 新建@(dr["SponsorGroup"])
} @section script{ }