Package modele

Examples of modele.RessourceUser


    String foot = "";

    head = "<form id='ressourceuserList'><table><caption class='titre'>Ressources par utilisateur</caption><thead><TR align='center'><TH>Ressource</TH><TH>Utilisateur</TH><TH>Action</TH></TR></thead><tbody>";

    ArrayList<RessourceUser> rusers = Dao.allRessourceUser();
    RessourceUser ru = null;
    if (rusers.size() > 0) {
      for (int i = 0; i < rusers.size(); i++) {
        ru = rusers.get(i);
        body = body
            + "<tr><td>"
            + Dao.getRessource(ru.getRessourceId())
                .getRessourceDescription()
            + "<input type='hidden' id=ucru"
            + i
            + " value="
            + ru.getUserCode()
            + ">"
            + "<input type='hidden' id=rru"
            + i
            + " value="
            + ru.getRessourceId()
            + ">"

            + "</td><td>"
            + Dao.getUser(ru.getUserCode()).getUserDescription()
            + "<td><input type='button'value='Supprimer' class='slick-black' id=ressourceuserDel"
            + i + " onclick = 'deleteRessourceuser(" + i
            + ")'></td></tr>";
      }
    }
View Full Code Here


    String sql = "CALL allRessourceuser()";
    ResultSet rs = execute(sql);
    if (rs != null) {
      try {
        while (rs.next()) {
          a.add(new RessourceUser(rs.getString(1), rs.getInt(2)));
        }
      } catch (SQLException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

TOP

Related Classes of modele.RessourceUser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.