public long[] getOrderID() {

    if (storageListType == POType.STORAGEINLIST) {
      StorageInListPO in = (StorageInListPO) chosenStorageList;
      ArrayList<Long> id = in.getOrder();
      long[] ids = new long[id.size()];
      for (int i = 0; i < ids.length; i++) {
        ids[i] = id.get(i);
      }
      return ids;
    } else {
      StorageOutListPO out = (StorageOutListPO) chosenStorageList;
      return out.getOrder();
    }
  }
 public ResultMessage saveStorageInList(StorageInVO vo, long center) throws RemoteException {
   StorageInListPO storageInPO = new StorageInListPO(vo);
   storageInPO.setSerialNum(center * 10000 + storageInPO.getSerialNum());
   return storageData.add(storageInPO);
 }