08 2013 档案

摘要:function GetCityByParentID() { $("#City").empty(); $.ajax({ url: '/Doctor/ChangeCity/' + $("#State").val(), type: "post", datatype: "json", success: function (data) { if (data.length == 0) { $("") ... 阅读全文

posted @ 2013-08-29 14:25 !sylar 阅读(290) 评论(0) 推荐(0) 编辑

摘要:页面JS代码 Controller里的代码 [HttpGet] public ActionResult Form(int? id) { QueryType(); EntryModel model = new EntryModel(); if (id != null) { model = business.Get(id.Value); } return View(model); } ... 阅读全文

posted @ 2013-08-23 14:52 !sylar 阅读(292) 评论(0) 推荐(0) 编辑

摘要:[HttpPost] public ActionResult Form(NewsModel model) { if (ModelState.IsValid) { if (model.Id == 0) { cmd.Add(model); } else { cmd.Update(model.Id... 阅读全文

posted @ 2013-08-23 14:46 !sylar 阅读(563) 评论(0) 推荐(0) 编辑

摘要:显示图片 grid.Column(null,"图片",format:p=>Html.Raw(string.Format("",p.ImageUrl)),style:"g-img"),日期格式: grid.Column("EditDate", "修改日期", (p) => string.Format("{0:yyyy/MM/dd}", p.EditDate), "g-date"), 字符串截取:grid.Column("Title&qu 阅读全文

posted @ 2013-08-09 09:16 !sylar 阅读(262) 评论(0) 推荐(0) 编辑

摘要: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 阅读(221) 评论(0) 推荐(0) 编辑

摘要: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 阅读(188) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示