public void deleteSaleExpense(int seq) throws IOException {
   // ATTENTION: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     saleExpenseDao.deleteSaleExpense(transaction, seq);
     transaction.commit();
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
 public List<SaleExpenseDto> getBySalepersonId(String id) throws IOException {
   // TODO: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     List<SaleExpenseDto> all = saleExpenseDao.getBySalepersonId(transaction, id);
     transaction.commit();
     return all;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
 public int getSeq() throws IOException {
   // TODO: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     int seq = saleExpenseDao.getSeq(transaction);
     transaction.commit();
     return seq;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
 public SaleExpenseDto getSaleExpenseById(int seq) throws IOException {
   // ATTENTION: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     SaleExpenseDto result = saleExpenseDao.getSaleExpenseById(transaction, seq);
     transaction.commit();
     return result;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }