Пример #1
0
 public ResultMessage delete(String ID) {
   try {
     return expenseData.delete(ID);
   } catch (RemoteException e) {
     e.printStackTrace();
   }
   return ResultMessage.FAIL;
 }
Пример #2
0
 public ResultMessage update(ExpenseVO vo) {
   ExpensePO expensePO = FundTrans.convertVOtoPO(vo);
   try {
     return expenseData.modify(expensePO);
   } catch (RemoteException e) {
     e.printStackTrace();
   }
   return ResultMessage.FAIL;
 }
Пример #3
0
 public ArrayList<ExpenseVO> show() throws RemoteException {
   ArrayList<ExpensePO> pos = expenseData.find();
   ArrayList<ExpenseVO> vos = FundTrans.convertExpensePOstoVOs(pos);
   return vos;
 }
Пример #4
0
 public String getID() throws RemoteException {
   return expenseData.getID();
 }