public ResultMessage delete(String ID) { try { return expenseData.delete(ID); } catch (RemoteException e) { e.printStackTrace(); } return ResultMessage.FAIL; }
public ResultMessage update(ExpenseVO vo) { ExpensePO expensePO = FundTrans.convertVOtoPO(vo); try { return expenseData.modify(expensePO); } catch (RemoteException e) { e.printStackTrace(); } return ResultMessage.FAIL; }
public ArrayList<ExpenseVO> show() throws RemoteException { ArrayList<ExpensePO> pos = expenseData.find(); ArrayList<ExpenseVO> vos = FundTrans.convertExpensePOstoVOs(pos); return vos; }
public String getID() throws RemoteException { return expenseData.getID(); }