1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
<!-- Import nécessaire -->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@ taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="css.css" />
<!-- Titre en haut de la page -->
<title>THOT : Gate1</title>
</head>
<body>
<f:view>
<!-- L'en-tête -->
<div id="logoThales" ></div>
<div id="entete">
<strong class="important">TH</strong>alès <strong class="important">O</strong>util de sous-<strong class="important">T</strong>raitance <img src="img/thot.jpg" style="position:absolute;top:5px;left:1050px;" width=35 height=7%>
</div>
<!-- Partie connexion avec la date -->
<div id="connexion">
<h:form>
<strong><h:outputText value="#{connexionBean.utilisateur.nom}" /><rich:spacer width="5" /><h:outputText value="#{connexionBean.utilisateur.prenom}" /> | <h:outputLink value="modifierCompte.jsf"><h:outputText value="Compte" /></h:outputLink> | <h:commandLink action="#{connexionBean.deconnexion}" immediate="true" value="Déconnexion" /> | <script type="text/javascript" src="date.js"></script></strong>
</h:form>
</div>
<!-- Le menu -->
<div id="menu">
<f:subview id="menuSub">
<%@include file="menu.jsp" %>
</f:subview>
</div>
<!-- Le corps -->
<div id="action">
</div>
<div id="corps">
<div id="Gate1">
<!-- Titre de la page -->
<h2>Gate 1</h2>
<!-- Espace de 10px entre le titre et le formulaire -->
<rich:spacer height="10px" />
<!--<rich:panel header="Gate 1" style="margin-left:0px;background-color:#ffffff;width:900px;" >-->
<!-- Début du formulaire -->
<h:form id="BesoinForm">
<h:outputLabel><font><h:outputText value="Affaire : "/></font></h:outputLabel>
<!-- Choisir une affaire dans la liste déroulante -->
<h:selectOneMenu id="affaire" value="#{Gate1Bean.idAffaire}" >
<f:selectItems value="#{Gate1Bean.listAffaire}" />
<a4j:support event="onchange" actionListener="#{Gate1Bean.affaireByID}" reRender="projet" />
</h:selectOneMenu>
<h:outputLabel><font><h:outputText value="Sous-ensemble : "/></font></h:outputLabel>
<h:selectOneMenu id="projet" value="#{Gate1Bean.idProjet}" >
<f:selectItem itemValue="0" itemLabel="Choisir un projet"/>
<f:selectItems value="#{Gate1Bean.listProjettrie}"/>
<a4j:support event="onchange" actionListener="#{Gate1Bean.projetByID}" reRender="besoinSelectMenu" />
</h:selectOneMenu>
<h:outputLabel><font><h:outputText value="Selection du Besoin : "/></font></h:outputLabel>
<h:selectOneMenu id="besoinSelectMenu" value="#{Gate1Bean.id}" converter="javax.faces.Integer">
<f:selectItem itemValue="0" itemLabel="Choisir un besoin"/>
<f:selectItems value="#{Gate1Bean.listBesointrie}" />
<a4j:support event="onchange" actionListener="#{Gate1Bean.besoinByID}" reRender="tableFournisseur,dateRAO,dateURM,validationGate,dateGate1" />
</h:selectOneMenu>
<h:message showDetail="true" style="color: red; text-decoration: none;" id="messageBesoin" for="besoinSelectMenu" />
<!--<h:outputText id="sow" value="#{Gate1Bean.besoin.sow.numSOW}"/>-->
<rich:spacer height="30px" />
<hr>
<!--<rich:panel id="valueBesoin" style="background-color:#ffffff;">-->
<h:panelGrid columns="3" >
<!-- Date URM -->
<h:outputLabel><font><h:outputText value="Date URM demandée: "/></font></h:outputLabel>
<rich:calendar enableManualInput="true" id="dateURM" datePattern="dd/MM/yyyy" value="#{Gate1Bean.besoin.dateurm}" />
<h:message style="color: red; text-decoration: none;" for="dateURM" />
<!-- Fin Date URM -->
<!-- Date RAO -->
<h:outputLabel><font><h:outputText value="Date Remise d'appel d'offre demandée : "/></font></h:outputLabel>
<rich:calendar enableManualInput="true" id="dateRAO" datePattern="dd/MM/yyyy" value="#{Gate1Bean.besoin.daterao}" />
<h:message style="color: red; text-decoration: none;" for="dateRAO" />
<!-- Fin Date RAO
<!-- Code pour joindre un PVET -->
<h:outputLabel><font><h:outputText value="PVET : "/></font></h:outputLabel>
<h:commandButton id="ajouterPJ" action="#{Gate1Bean.upload}" value="Upload" />
<h:commandButton value="Download" action="#{Gate1Bean.doTestStream}"/>
<h:message style="color: red; text-decoration: none;" for="ajouterPJ" />
<!-- Fin code pour joindre un PVET -->
</h:panelGrid>
<hr>
<h:panelGrid columns="5" >
<!-- Code des Fournisseurs consultés -->
<h:outputLabel><font><h:outputText value="Fournisseurs consultés :"/></font></h:outputLabel>
<h:selectOneMenu id="fournisseurListe" value="#{Gate1Bean.idFournisseur}" >
<f:selectItem itemLabel="Choisir un fournisseur" itemValue="0" />
<f:selectItems value="#{Gate1Bean.listFournisseur}" />
</h:selectOneMenu>
<a4j:commandButton id="CBAjouterfournisseur" action="#{Gate1Bean.ajouterFourn}" value="Ajouter fournisseur" reRender="tableFournisseur"/>
<a4j:commandButton id="CBSupprimerfournisseur" action="#{Gate1Bean.supprimerFourn}" value="Supprimer dernier fournisseur" reRender="tableFournisseur"/>
<a4j:commandButton id="CBViderlistefournisseur" action="#{Gate1Bean.viderFourn}" value="Vider table" reRender="tableFournisseur"/>
</h:panelGrid>
<!-- Tableau -->
<rich:scrollableDataTable value="#{Gate1Bean.fournisseurConsulte}"
var="fournisseurConsulte"
id="tableFournisseur"
width="150px"
height="150px">
<rich:column width="150px">
<f:facet name="header">
<h:outputText value="Nom fournisseur" />
</f:facet>
<h:outputText value="#{fournisseurConsulte.id.fournisseur.nom}" />
</rich:column>
</rich:scrollableDataTable>
<!-- Fin du tableau -->
<hr>
<h:outputLabel><font><h:outputText value="Validation de la Gate 1 : "/></font></h:outputLabel>
<h:selectBooleanCheckbox id="validationGate" value="#{Gate1Bean.validationGate}" immediate="true" onclick="submit()" valueChangeListener="#{Gate1Bean.onIsDetailsChange}" title = "cliquez dessus pour sélectionner ou désélectionnez "/>
<h:message style="color: green; text-decoration: none;" for="validationGate" />
<!-- Date Gate1 : Par defaut c'est la date du jour, elle est modifiable par l'utilisateur -->
<h:outputLabel><font><h:outputText value="Date Gate 1 : " rendered="#{Gate1Bean.validationGate}"/></font></h:outputLabel>
<rich:calendar enableManualInput="true" id="dateGate1" datePattern="dd/MM/yyyy" value="#{Gate1Bean.besoin.dategate1}" rendered="#{Gate1Bean.validationGate}"/>
<h:message style="color: red; text-decoration: none;" for="dateGate1" />
<!-- Fin Date Gate1 -->
<h:message showDetail="true" style="color: red; text-decoration: none;margin-left:100px;" id="registerError" for="cBValider"/><br />
<rich:spacer height="50" />
<h:panelGroup style="margin-left:160px;">
<h:commandButton id="cBValider" action="#{Gate1Bean.valider}" value="OK" /><rich:spacer width="10px" />
<a4j:commandButton action="#{Gate1Bean.annuler}" value="Annuler" reRender="BesoinForm"/>
</h:panelGroup>
<!--</rich:panel>-->
</h:form>
<!--</rich:panel>-->
<rich:spacer height="50" />
</div>
</div>
<div id="footer">
<hr />
© réservés
</div>
</f:view>
</body>
</html> |
Partager