@Override public CarMesManagevo[] searchAllInitCheliang() throws RemoteException { // TODO Auto-generated method stub BusinessHall as = new BusinessHall(); CarMespo[] up; try { up = as.AllSearchInitAccount(); if (up == null) return null; else { CarMesManagevo[] uv = new CarMesManagevo[up.length]; for (int i = 0; i < up.length; i++) { CarMesManagevo s = up[i].getCarMes(); uv[i] = s; } return uv; } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
@Override public boolean writeInitCheliang() throws RemoteException { // TODO Auto-generated method stub try { BusinessHall fs = new BusinessHall(); CarMespo[] ap; ap = fs.AllSearch(); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitCheliang(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初车辆信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }