예제 #1
0
 /**
  * @param req
  * @return
  * @throws FragmentEventException
  */
 public HtmlFragmentResponse editFinancial(HtmlFragmentRequest req) throws FragmentEventException {
   HtmlFragmentResponse res = getResponse();
   MessageWidget message = null;
   try {
     FinancialBean bean = (FinancialBean) req.getForm("financial");
     boolean isSuccess = finService.updateFinancial(bean.getFinancial());
     if (isSuccess) {
       message = new DefaultMessageWidget("修改监管机构成功");
       message.setNavTabId(getName());
     } else {
       message = new DefaultMessageWidget("修改监管机构失败");
       message.fail();
     }
     res.addMessage(message);
   } catch (Exception e) {
     log.error(e.getMessage(), e);
     throw new FragmentEventException(e);
   }
   return res;
 }