obj.setFun(parent);
//layer
obj.setLayer((parentLevel + 1) + "");
obj.setLayerSeq((currentLayerSeq + 1) + "");
FunDao dao = new FunDao();
dao.create(obj);
} else {
FunDao dao = new FunDao();
dao.create(obj);
obj.setFun(obj);
obj.setLayer("0");
dao.update(obj);
}
refreshObjEntities();
}