@Override public void addBill( String name, String account, String organization, String staff, String vehicle, String store) { StartinfoPO spo = new StartinfoPO(name, account, organization, staff, vehicle, store); try { billData.insert(spo); } catch (Exception e) { e.printStackTrace(); } }
@Override public ArrayList<StartinfoVO> checkBill() { ArrayList<StartinfoVO> billist = new ArrayList<>(); try { ArrayList<StartinfoPO> stp = billData.find(); for (StartinfoPO sp : stp) { StartinfoVO sv = new StartinfoVO( sp.getName(), sp.getAccount(), sp.getOrganization(), sp.getStaff(), sp.getVehicle(), sp.getStore()); billist.add(sv); } } catch (Exception e) { e.printStackTrace(); } return billist; }