private void outputWarehouses(Properties ctx,PrintWriter out,int orgID,int warehouseID,boolean includeAny){
  out.println("<warehouses orgID='" + orgID + "'>");
  if (includeAny) {
    out.println("<warehouse id='-1'");
    if (warehouseID == 0)     out.println(" selected='selected'");
    out.println(">ANY</warehouse>");
  }
  for (  MWarehouse warehouse : MWarehouse.getForOrg(ctx,orgID)) {
    out.print("<warehouse id='" + warehouse.getM_Warehouse_ID() + "'");
    if (warehouseID == warehouse.getM_Warehouse_ID())     out.print(" selected='selected'");
    out.println(">" + Util.maskHTML(warehouse.getName()) + "</warehouse>");
  }
  out.println("</warehouses>");
}

private void outputWarehouses ( Properties ctx , PrintWriter out , int orgID , int warehouseID , boolean includeAny ) { out . println ( "<warehouses orgID='" + orgID + "'>" ) ; if ( includeAny ) { out . println ( "<warehouse id='-1'" ) ; if ( warehouseID == 0 ) out . println ( " selected='selected'" ) ; out . println ( ">ANY</warehouse>" ) ; } for ( MWarehouse warehouse : MWarehouse . getForOrg ( ctx , orgID ) ) { out . print ( "<warehouse id='" + warehouse . getM_Warehouse_ID ( ) + "'" ) ; if ( warehouseID == warehouse . getM_Warehouse_ID ( ) ) out . print ( " selected='selected'" ) ; out . println ( ">" + Util . maskHTML ( warehouse . getName ( ) ) + "</warehouse>" ) ; } out . println ( "</warehouses>" ) ; }
output xml list of warehouses
