private void outputOrgs(Properties ctx,PrintWriter out,int clientID,int orgID,boolean includeAny){
  MClient client=MClient.get(ctx,clientID);
  out.println("<orgs clientID='" + clientID + "'>");
  if (includeAny) {
    out.println("<org id='-1'");
    if (clientID == 0)     out.println(" selected='selected'");
    out.println(">ANY</org>");
  }
  if (client != null) {
    for (    MOrg org : MOrg.getOfClient(client)) {
      out.print("<org id='" + org.getAD_Org_ID() + "'");
      if (orgID == org.getAD_Org_ID())       out.print(" selected='selected'");
      out.println(">" + Util.maskHTML(org.getName()) + "</org>");
    }
  }
  out.println("</orgs>");
}

private void outputOrgs ( Properties ctx , PrintWriter out , int clientID , int orgID , boolean includeAny ) { MClient client = MClient . get ( ctx , clientID ) ; out . println ( "<orgs clientID='" + clientID + "'>" ) ; if ( includeAny ) { out . println ( "<org id='-1'" ) ; if ( clientID == 0 ) out . println ( " selected='selected'" ) ; out . println ( ">ANY</org>" ) ; } if ( client != null ) { for ( MOrg org : MOrg . getOfClient ( client ) ) { out . print ( "<org id='" + org . getAD_Org_ID ( ) + "'" ) ; if ( orgID == org . getAD_Org_ID ( ) ) out . print ( " selected='selected'" ) ; out . println ( ">" + Util . maskHTML ( org . getName ( ) ) + "</org>" ) ; } } out . println ( "</orgs>" ) ; }
output xml list of organizations
