@Override public boolean writeInitKucun() throws RemoteException { // TODO Auto-generated method stub try { Storing fs = new Storing(); Warningpo[] ap; ap = fs.AllSearch(); if (ap.length == 0) return false; else { for (int i = 0; i < ap.length; i++) { boolean a = fs.addInitKucun(ap[i]); if (a == false) return false; } HostLog.addMes("进行期初库存信息设置" + "\n"); return true; } } catch (Exception e) { e.printStackTrace(); } return false; }