/// <summary>
 /// 用户拖动排序
 /// </summary>
 /// <returns></returns>
 public JsonResult SortUserData(string ids)
 {
     try
     {
         var result = SqlHelper.ExecuteSql(QuerySuite.SortSql(ids, "SysUser", "orderNo", "userID"));
         return(Json(new { Code = 0, Msg = "保存成功" }));
     }
     catch (Exception ex)
     {
         LogHelper.SaveLog(ex);
         return(Json(new { Code = 1, Msg = "服务器异常,请联系管理员!" }));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 排序页面操作
 /// </summary>
 /// <returns></returns>
 public JsonResult SortOperationData(string IDs)
 {
     try
     {
         var result = SqlHelper.ExecuteSql(QuerySuite.SortSql(IDs, "SysOperation", "orderNo", "id"));
         return(Json(new { Code = 0, Msg = "删除成功!" }));
     }
     catch (Exception ex)
     {
         LogHelper.SaveLog(ex);
         return(Json(new { Code = 1, Msg = "服务器异常,请联系管理员!" }));
     }
 }