コード例 #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;
 }
コード例 #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;
 }