return result;
}// ;
public IResult loadFunc(IRequest request) throws CapException {
AjaxFormResult result = new AjaxFormResult();
String sysType = request.get("sysType");
String level = request.get("level");
List<Function> functions = functionSetService.findFunctionBySysTypeAndLevel(sysType,
level);
if (!CollectionUtils.isEmpty(functions)) {
JSONArray funcArray = new JSONArray();
for (Function func : functions) {
funcArray.add(func.toJSONObject(
CapEntityUtil.getColumnName(func), null));
}
result.set("functions", funcArray.toString());
}
return result;
}// ;