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("操作成功。"));
 }
Example #2
0
 /// <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;
     }
 }
Example #3
0
 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("操作成功。"));
 }