Example #1
0
 public StorageListPO getStorageList(long storageListID) throws RemoteException {
   if (storageListType == POType.STORAGEINLIST) {
     chosenStorageList = (StorageListPO) storageData.search(POType.STORAGEINLIST, storageListID);
     return chosenStorageList;
   } else {
     chosenStorageList = (StorageListPO) storageData.search(POType.STORAGEOUTLIST, storageListID);
     return chosenStorageList;
   }
 }
Example #2
0
 public String[][] getBriefStorageList() throws RemoteException {
   checkedstorageList = storageData.getNewlyApprovedPO(storageListType, centerID);
   if (checkedstorageList == null) return null;
   System.out.println("Èë¿âµ¥ÊýÁ¿£º" + checkedstorageList.size());
   String[][] storageListInfo = new String[checkedstorageList.size()][2];
   for (int i = 0; i < checkedstorageList.size(); i++) {
     DataPO s = checkedstorageList.get(i);
     String[] info = new String[2];
     info[0] = s.getSerialNum() + "";
     info[1] = Timestamper.getTimeByDate(s.getGenDate());
     storageListInfo[i] = info;
   }
   return storageListInfo;
 }
Example #3
0
 public ResultMessage saveStorageInList(StorageInVO vo, long center) throws RemoteException {
   StorageInListPO storageInPO = new StorageInListPO(vo);
   storageInPO.setSerialNum(center * 10000 + storageInPO.getSerialNum());
   return storageData.add(storageInPO);
 }