示例#1
0
 @Override
 public WarehouseWarningvo[] searchAllInitKucun() throws RemoteException {
   // TODO Auto-generated method stub
   Storing as = new Storing();
   Warningpo[] up;
   try {
     up = as.AllSearchInitkucun();
     if (up == null) return null;
     else {
       WarehouseWarningvo[] uv = new WarehouseWarningvo[up.length];
       for (int i = 0; i < up.length; i++) {
         WarehouseWarningvo s = up[i].getMes();
         uv[i] = s;
       }
       return uv;
     }
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return null;
 }
示例#2
0
  @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;
  }