public List<Vehicle> update(String formNo, Vehicle v) { List<Vehicle> results = new ArrayList<>(); try { v.setUser(UISetting.getSystemUser()); v.setLocation(UISetting.getStoreLocation()); v.setStation(UISetting.getComputerName()); UISetting.getVehicleService().update(v); results = UISetting.getVehicleService().findByAsset(formNo); } catch (Exception ex) { UIValidator.log(ex, VehicleAssetsController.class); } return results; }
public List<Vehicle> findByFormNo(String formNo) { List<Vehicle> results = new ArrayList<>(); try { results = UISetting.getVehicleService().findByAsset(formNo); } catch (Exception ex) { UIValidator.log(ex, VehicleAssetsController.class); } return results; }