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
|
<p:dialog widgetVar="eventDialog" header="Crétaion d'avis" showEffect="clip" hideEffect="clip" modal="true" style="font-size: 13px">
<form id="formulaire">
<h:panelGrid columns="2" id="eventDetails">
<h:outputText value="Type d'avis : " />
<p:selectOneRadio value="#{mBSchedule.typeAvis}" layout="pageDirection" style="margin-bottom: 10px" >
<f:selectItem itemLabel="Avis légale" itemValue="legale" />
<f:selectItem itemLabel="Avis de vente" itemValue="vente" />
<p:ajax event="change" update="formulaire:langues">
</p:selectOneRadio>
<h:panelGrid columns="2" id="langues" rendered="#{mBSchedule.typeAvis == 'vente'}">
<h:outputText value="Langue d'avis : " />
<p:selectManyCheckbox value="#{mBSchedule.liste_langue}" layout="pageDirection" style="margin-bottom: 10px">
<f:selectItem itemLabel="Français" itemValue="f" />
<f:selectItem itemLabel="Arabe" itemValue="a" />
</p:selectManyCheckbox>
</h:panelGrid>
</h:panelGrid>
<hr/>
<h:panelGrid columns="2" id="bcexistant" >
<h:outputText value="Associé l'avis a un bon de commande : " />
<p:selectOneRadio value="#{mBSchedule.typeAvis}" layout="pageDirection" style="margin-bottom: 10px" >
<f:selectItem itemLabel="Existant " itemValue="existant" />
<f:selectItem itemLabel="Nouveau " itemValue="nouveau" />
</p:selectOneRadio>
<h:panelGrid columns="2" id="listbc" >
<h:outputText value="Bon de Commande " />
<p:selectOneMenu id="langue" value="#{mBSchedule.bc}">
<f:selectItems value="#{mBSchedule.bcs}" var="bc" itemLabel="#{bc.nom}" itemValue="#{bc.id}"/>
</p:selectOneMenu>
</h:panelGrid>
</h:panelGrid>
<hr/>
<p:commandButton value="Valider" action="#{mBSchedule.valider}" style="font-size: 12px"/>
</form>
</p:dialog> |
Partager