Exemplo n.º 1
0
 @UrlMapping(value = "/incomeDelete", type = ReturnType.JSON)
 public DataInfoBean delete() {
   DataInfoBean info = AtheneUtils.getInfo();
   try {
     incomeProxy.delete();
   } catch (Exception e) {
     log.error("delete income error", e);
     info.setException(e);
   }
   return info;
 }
Exemplo n.º 2
0
 @UrlMapping(value = "/incomeSave", type = ReturnType.JSON)
 public DataInfoBean save() {
   DataInfoBean info = null;
   try {
     info = incomeValidation.simpleValidate();
     if (info.hasError()) return info;
     incomeProxy.save();
   } catch (Exception e) {
     log.error("save income error", e);
     info.setException(e);
   }
   return info;
 }