示例#1
0
  public Collection<Bill> getByClientID(int clientID) {
    Collection<Bill> all = _gateway.getAll();
    ArrayList<Bill> results = new ArrayList<Bill>();
    Client client;

    for (Bill q : all) {
      client = q.getClient();

      if (client != null && client.getID() == clientID) {
        results.add(q);
      }
    }

    return results;
  }
示例#2
0
 public Collection<Bill> getAll() {
   return _gateway.getAll();
 }
 public Collection<Package> getProductPackageList() {
   return _gateway.getAll();
 }