public ActionResult SaveForm(string keyValue, DataSetEntity ds) { if (ds.ItemStyle.Trim().Length > 0) { ds.ItemStyle = HttpUtility.UrlDecode(ds.ItemStyle); } scoresetbll.SaveForm(keyValue, ds); return(Success("操作成功。")); }
/// <summary> /// 保存角色表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="roleEntity">角色实体</param> /// <returns></returns> public void SaveForm(string keyValue, DataSetEntity ds) { try { service.SaveForm(keyValue, ds); } catch (Exception) { throw; } }
public ActionResult SaveForm(string keyValue, DataSetEntity ds) { if (!string.IsNullOrWhiteSpace(ds.DeptCode)) { ds.DeptCode = string.Format(",{0},", ds.DeptCode.Trim(',')); } if (ds.ItemStyle.Trim().Length > 0) { ds.ItemStyle = HttpUtility.UrlDecode(ds.ItemStyle); } scoresetbll.SaveForm(keyValue, ds); return(Success("操作成功。")); }