예제 #1
0
 public ActionResult RoleAdd(LigerGrid grid, FormCollection data, string id)
 {
     grid.ConvertParams(data);
     ViewBag.UserId = id;
     if (IsPost)
     {
         return(Json(SystemService.FunctionRoleService.RoleAddGrid("MDM", grid)));
     }
     return(View());
 }
        public ActionResult Export(LigerGrid grid, FormCollection data)
        {
            string strError = "";

            grid.ConvertParams(data);
            eContract.Common.ExcelConvertHelper.ExcelContext context = new ExcelConvertHelper.ExcelContext();
            if (SystemService.FunctionRoleService.ExportExcel(grid, ref context, ref strError))
            {
                return(Json(AjaxResult.Success()));
            }
            return(Json(AjaxResult.Error(strError)));
        }