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; } }
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; }
public ResultMessage saveStorageInList(StorageInVO vo, long center) throws RemoteException { StorageInListPO storageInPO = new StorageInListPO(vo); storageInPO.setSerialNum(center * 10000 + storageInPO.getSerialNum()); return storageData.add(storageInPO); }