예제 #1
0
  public ArrayList<RepoPositionVO> getRepoPositionList(String city) {
    try {
      RepoInfoPO po = repo.getRepo(IDKeeper.getOrgID());

      if (repo == null) return null;
      ArrayList<RepoPosition> positionList = po.getRepoPosition();

      if (positionList == null) return null;
      if (positionList.size() == 0) return null;

      ArrayList<RepoPositionVO> transList = new ArrayList<RepoPositionVO>();

      for (RepoPosition r : positionList) {
        RepoPositionVO vo =
            new RepoPositionVO(
                r.getOrderID(),
                r.getblock(),
                r.getrow(),
                r.getshelf(),
                r.getposition(),
                r.getIsUsed());

        transList.add(vo);
      }

      return transList;
    } catch (RemoteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      return null;
    }
  }
예제 #2
0
  public RepoCacheVO getRepoInfo(String city, String startDate, String endDate) {

    try {
      RepoCacheVO cache = new RepoCacheVO();
      RepoInfoPO po;

      int countImport = countInDoc(startDate, endDate);
      int countExport = countOutDoc(startDate, endDate);

      cache.setImportSum(countImport);
      cache.setExportSum(countExport);

      po = repo.getRepo(IDKeeper.getOrgID());
      if (repo == null) cache.setSum(0);
      else cache.setSum(po.getRepoSum());

      return cache;
    } catch (RemoteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      return null;
    }
  }