Merge origin/master
Conflicts: nbproject/project.properties src/java/bean/Pompier.java src/java/servlet/PompierServlet.java src/java/util/TrmtDate.java web/WEB-INF/jspf/formulairePompier.jspf web/WEB-INF/jspf/header.jspf web/WEB-INF/web.xml
This commit is contained in:
parent
03780acc84
commit
fb1699b16f
@ -36,7 +36,7 @@ public class gardeMySQL {
|
|||||||
int indiceDateFin = lesDates.length - 1;
|
int indiceDateFin = lesDates.length - 1;
|
||||||
Pompier lePompier;
|
Pompier lePompier;
|
||||||
PompierMySQL pm = new PompierMySQL();
|
PompierMySQL pm = new PompierMySQL();
|
||||||
ArrayList<Pompier> lesPompiers = pm.readLesPompiersCaserne(idCaserne);
|
ArrayList<Pompier> lesPompiers = pm.readLesPomprangeiersCaserne(idCaserne);
|
||||||
for (Pompier unPompier : lesPompiers) {
|
for (Pompier unPompier : lesPompiers) {
|
||||||
for (Calendar uneDate : lesDates) {
|
for (Calendar uneDate : lesDates) {
|
||||||
for (int unePeriode : lesPeriodes) {
|
for (int unePeriode : lesPeriodes) {
|
||||||
|
@ -91,7 +91,7 @@ public class GardesServlet extends HttpServlet {
|
|||||||
maSession.setAttribute("lesCouleurs", lesCouleurs);
|
maSession.setAttribute("lesCouleurs", lesCouleurs);
|
||||||
|
|
||||||
/* Affichage de la page de ventilation */
|
/* Affichage de la page de ventilation */
|
||||||
getServletContext().getRequestDispatcher("/WEB-INF/feuilleGardesJSP.jsp").forward(request, response);
|
getServletContext().getRequestDispatcher("/WEB-INF/feuilleGardes.jsp").forward(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -47,6 +47,14 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<div id="legendCouleur">
|
||||||
|
|
||||||
|
<span style="background-color: white">Dispo</span>
|
||||||
|
<span style="background-color: gray">Indispo</span>
|
||||||
|
<span style="background-color: yellow">Au travail</span>
|
||||||
|
<span>De garde : X</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -127,48 +127,51 @@
|
|||||||
</div><!-- fin ligne observation -->
|
</div><!-- fin ligne observation -->
|
||||||
</div> <!-- fin observation -->
|
</div> <!-- fin observation -->
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
|
||||||
<!-- tab disp -->
|
<!-- tab disp -->
|
||||||
<div>
|
<div>
|
||||||
<label for="tDisp">Disponibilitées</label>
|
<label for="tDisp">Disponibilitées</label>
|
||||||
<table border="1" cellspacing="3" cellpadding="1" class="table table-striped">
|
<table border="1" cellspacing="3" cellpadding="1" class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<c:forEach items="${sessionScope.lesDatesEnString}" var="uneDate" varStatus="status">
|
|
||||||
|
<c:forEach items="${sessionScope.lesDatesEnString}" var="uneDate" varStatus="status">
|
||||||
<th colspan="2" class="text-center">${uneDate}</th>
|
<th colspan="2" class="text-center">${uneDate}</th>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<c:forEach var="i" begin="0" end="4" step="1">
|
<c:forEach var="i" begin="0" end="4" step="1">
|
||||||
<c:forEach items="${sessionScope.lesPeriodes}" var="uneP" varStatus="status">
|
<c:forEach items="${sessionScope.lesPeriodes}" var="uneP" varStatus="status">
|
||||||
<td class="text-center">${uneP}</td>
|
<th class="text-center">${uneP}</th>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<c:set var="oldId" value="-1" scope="page"/>
|
<c:set var="oldId" value="-1" scope="page"/>
|
||||||
<tr>
|
<tr>
|
||||||
<c:forEach items="${sessionScope.lesVentilInit}" var="ventil" varStatus="status">
|
<c:forEach items="${sessionScope.lesVentilInit}" var="ventil" varStatus="status">
|
||||||
<c:set var="newId" value="${gardes.getPompier().getId()}" scope="page"/>
|
<c:set var="newId" value="${gardes.getPompier().getId()}" scope="page"/>
|
||||||
<c:if test="${oldId != newId}" var="test" scope="page">
|
<c:if test="${oldId != newId}" var="test" scope="page">
|
||||||
</tr> <tr>
|
</tr> <tr>
|
||||||
<td>${ventil.getSalarie().getId()}</td>
|
|
||||||
<td>${ventil.getSalarie().getNom()} ${ventil.getSalarie().getPrenom()}</td>
|
|
||||||
<c:set var="oldId" value="${newId}" scope="page"/>
|
<c:set var="oldId" value="${newId}" scope="page"/>
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:set var="act" value="${gardes.getDisponibilite()}" scope="page"/>
|
<c:set var="act" value="${gardes.getDisponibilite()}" scope="page"/>
|
||||||
<td><input type="text" value="${act}" name="lesAct" class="ztVentil ${sessionScope.lesCouleurs[act]}" readonly/></td>
|
<td><input type="text" value="${act}" name="lesAct" class="ztVentil ${sessionScope.lesCouleurs[act]}" readonly/></td>
|
||||||
|
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="legendCouleur">
|
<div id="legendCouleur">
|
||||||
|
|
||||||
<span style="background-color: white">Dispo</span>
|
<span style="background-color: white">Dispo</span>
|
||||||
<span style="background-color: gray">Indispo</span>
|
<span style="background-color: gray">Indispo</span>
|
||||||
<span style="background-color: yellow">Au travail</span>
|
<span style="background-color: yellow">Au travail</span>
|
||||||
|
<span>De garde : X</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,3 +84,30 @@ aside, #btAfficherPompier {
|
|||||||
select[readonly] {
|
select[readonly] {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
.blanc {
|
||||||
|
background-color: white;
|
||||||
|
color: white;
|
||||||
|
border-color : white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gris {
|
||||||
|
background-color: gray;
|
||||||
|
color: gray;
|
||||||
|
border-color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jaune {
|
||||||
|
background-color: yellow;
|
||||||
|
color: yellow;
|
||||||
|
border-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ztVentil {
|
||||||
|
width : 40%;
|
||||||
|
border: 3px solid;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ztVentil:hover {
|
||||||
|
border-color: grey;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user