上一页 1 ··· 7 8 9 10 11

2013年8月9日

摘要: 1 public ActionResult Form(int? id) 2 { 3 QueryType(); 4 EntryModel model = new EntryModel(); 5 if (id != null) 6 { 7 model = business.Get(id.Value); 8 } 9 return View(model);10 }11 12 ... 阅读全文

posted @ 2013-08-09 09:12 !sylar 阅读(226) 评论(0) 推荐(0)

2013年8月2日

摘要: grid.Column("RoleId", "角色名称", (p) => { var role = string.Empty; if (p.RoleId == 1) { role = "普通用户"; } if (p.RoleId == 2) { role = "管理员"; } return role; }, "g-txt"), 阅读全文

posted @ 2013-08-02 17:12 !sylar 阅读(193) 评论(0) 推荐(0)

2013年7月15日

摘要: 11111 222222 33333 阅读全文

posted @ 2013-07-15 14:31 !sylar 阅读(258) 评论(0) 推荐(0)

2013年7月9日

摘要: @using Seyoit.Website.Config@using Seyoit.Website.Config.Navigation@{ var action = ViewContext.RouteData.Values["action"].ToString().ToLower(); var ctrl = ViewContext.RouteData.Values["controller"].ToString().ToLower(); string id = string.Empty; if (ViewContext.RouteData.Values.C 阅读全文

posted @ 2013-07-09 15:52 !sylar 阅读(564) 评论(0) 推荐(0)

摘要: ... 阅读全文

posted @ 2013-07-09 15:51 !sylar 阅读(240) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11