Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }