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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
|
<h:form id="gageForm">
<h:panelGrid>
<!-- Nature Gage Selection =============================================== -->
<h:panelGrid styleClass="panelStyleClass" width="730"
rendered="#{GagePage.showNatureGage}">
<h:outputText value="Choisir Nature de Gage: "
styleClass="panelTitleClass" />
<h:panelGrid
columnClasses="dynaGageAttTableC1,dynaGageAttTableC2,dynaGageAttTableC3"
columns="3" styleClass="panelStyleClass" cellspacing="0"
width="600">
<h:outputLabel for="natureGageInput">
<h:outputText value="Nature Element Garantie: "
styleClass="labelStyleClass" />
</h:outputLabel>
<h:selectOneMenu id="natureGageInput"
value="#{GagePage.natureGageId}" immediate="true"
onchange="return this.form.submit();"
valueChangeListener="#{GagePage.selectNatGageCombo}">
<f:selectItems value="#{GagePage.natureGageSelection}" />
</h:selectOneMenu>
<h:panelGroup />
</h:panelGrid>
<!-- input hidden to return natureGarantieId with the form -->
<h:inputHidden id="attributGageIdHidden"
value="#{GagePage.natureGageTO.natureGageDefaultId}" />
<h:panelGrid
columnClasses="dynaGageAttTableC1,dynaGageAttTableC2,dynaGageAttTableC3"
columns="4" styleClass="panelStyleClass" cellspacing="0"
width="650">
<h:outputLabel for="gageDefaultIdInput">
<h:outputText value="Identifiant par defaut: "
styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="gageDefaultIdInput" size="40"
value="#{GagePage.gageDefaultId}" styleClass="tableRows">
<f:validator validatorId="GageAttributValidator" />
<f:attribute name="attributGageId" value="attributGageIdHidden" />
</h:inputText>
<h:panelGroup>
<h:commandButton value="#{bundle.DISPLAY_BUTTON_CAPTION}"
action="#{GagePage.selectDefaultId}" />
</h:panelGroup>
<h:message for="gageDefaultIdInput" styleClass="error" />
</h:panelGrid>
</h:panelGrid>
<!-- Dynamic Attribut Gage ================================================= -->
<h:panelGrid columnClasses="evenColumn,oddColumn,oddColumn"
styleClass="panelStyleClass" cellspacing="0">
<h:panelGrid styleClass="panelStyleClass" width="730"
rendered="#{!GagePage.showGageAttList}">
<h:outputText value="Propriétés de Gage: "
styleClass="panelTitleClass" />
<h:dataTable value="#{GagePage.gageAttList}" var="gageAttList"
footerClass="tableFooterClass" cellspacing="1"
columnClasses="dynaGageAttTableC1,dynaGageAttTableC2,dynaGageAttTableC3"
width="400">
<!-- Column to display names of the attributs -->
<h:column>
<h:outputLabel for="gageAttributInput">
<h:outputText
value="#{gageAttList.attributGageName}: "
styleClass="labelStyleClass" style="margin-right: 40px" />
</h:outputLabel>
</h:column>
<!-- Column to display (hold) attributs values -->
<h:column>
<!-- if attirbut of type: Character -->
<h:panelGroup>
<h:inputHidden id="attributGageDataTypeHidden"
value="#{gageAttList.attributGageDataType}" />
<h:inputText id="gageAttributInput" size="40"
maxlength="#{gageAttList.attributGageSize}"
required="#{gageAttList.attributGageId == GagePage.natureGageTO.natureGageDefaultId}"
value="#{gageAttList.attributGageValue}"
styleClass="tableRows">
<f:validator validatorId="GageAttributTableValidator" />
<f:attribute name="attributGageDataType"
value="attributGageDataTypeHidden" />
</h:inputText>
<jp:popupCalendar for="gageAttributInput" format="dd/MM/yyyy"
locale="fr_FR"
rendered="#{gageAttList.attributGageDataType == 'DATE'}" />
</h:panelGroup>
</h:column>
<!-- Column to display error messages -->
<h:column>
<h:message for="gageAttributInput" styleClass="error" />
</h:column>
</h:dataTable>
<h:panelGrid
columnClasses="dynaGageAttTableC1,dynaGageAttTableC2,dynaGageAttTableC3"
columns="3" styleClass="panelStyleClass" cellspacing="0"
width="0%">
<h:outputLabel for="gageMntInput">
<h:outputText value="Montant" styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="gageMntInput" size="30" maxlength="9"
required="true" value="#{GagePage.gageMnt}" >
<f:validateLongRange minimum="1" />
</h:inputText>
<h:panelGrid columns="2">
<h:selectOneMenu id="gageMntDevInput"
value="#{GagePage.gagedevId}">
<f:selectItems value="#{GagePage.gagedev}" />
</h:selectOneMenu>
<h:message for="gageMntInput" styleClass="error" />
</h:panelGrid>
<h:outputLabel for="gagetauxdeviseInput">
<h:outputText value="Taux d'Echange"
styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="gagetauxdeviseInput" size="30" maxlength="9"
required="true" value="#{GagePage.tauxDevise}" >
<f:validator validatorId="TauxValidator" />
</h:inputText>
<h:message for="gagetauxdeviseInput" styleClass="error" />
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
<h:panelGroup rendered="#{GagePage.showGarantie}" >
<h:commandButton action="#{GagePage.addTiers}" image="#{facesContext.externalContext.requestContextPath}#{bundle.CLICK_IMG}"/>
<h:commandLink styleClass="commandLink" id="link2"
style="border-bottom-color: navy; border-color: navy; border-left-color: navy; border-right-color: navy; border-top-color: navy; font-style: normal; font-weight: bold; text-decoration: blink" action="#{GagePage.addTiers}">
<h:outputText id="text1" styleClass="outputText"
value="Affectation Garant/Contre Garant/Emetteur" style="font-style: normal; font-weight: bold; text-decoration: underline blink"></h:outputText>
</h:commandLink>
</h:panelGroup>
<h:panelGrid rendered="#{GagePage.schowTiers}"
columnClasses="evenColumn,oddColumn,oddColumn"
styleClass="panelStyleClass" cellspacing="0">
<h:panelGrid columnClasses="evenColumn,oddColumn,oddColumn"
columns="3" styleClass="panelStyleClass" cellspacing="0">
<h:outputLabel for="TypeId">
<h:outputText value="TypeId" styleClass="labelStyleClass" />
</h:outputLabel>
<h:panelGroup>
<h:selectOneMenu id="TypeId" value="#{GagePage.typeId}"
onchange="return this.form.submit();">
<f:selectItems value="#{GagePage.typeIdList}" />
</h:selectOneMenu>
<h:outputText value="#{GagePage.libeleTypeId}"
styleClass="labelStyleClass" />
</h:panelGroup>
<h:panelGroup/>
<h:outputLabel for="IdGarantInput">
<h:outputText value="Id" styleClass="labelStyleClass" />
</h:outputLabel>
<h:panelGroup>
<h:inputText id="IdGarantInput" size="50" maxlength="25"
value="#{GagePage.idGArant}">
</h:inputText>
<h:commandButton action="#{GagePage.chercheTiers}" value="Ajouter"
image="#{facesContext.externalContext.requestContextPath}/images/Recherche.gif" immediate="true"/>
</h:panelGroup>
<h:message styleClass="error" for="IdGarantInput"></h:message>
<h:outputLabel for="denominationInput">
<h:outputText value="Dénomination" styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="denominationInput" size="50" maxlength="50"
value="#{GagePage.denomination}">
</h:inputText>
<h:message for="denominationInput" styleClass="error" />
<h:outputLabel for="DateNaissance">
<h:outputText value="DateNaissance" styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="DateNaissance" size="30" maxlength="10"
value="#{GagePage.dateNaissance}">
<f:validator validatorId="DateValidator" />
</h:inputText>
<h:panelGroup>
<jp:popupCalendar for="DateNaissance" format="dd/MM/yyyy"
locale="fr_FR" />
<h:message for="DateNaissance" styleClass="error" />
</h:panelGroup>
<h:outputLabel for="Titre">
<h:outputText value="Titre" styleClass="labelStyleClass" />
</h:outputLabel>
<h:selectOneRadio id="Titre" value="#{GagePage.titre}"
styleClass="tableRows">
<TABLE align="left">
<TR>
<TD><f:selectItem itemValue="MR" itemLabel="MR" /></TD>
</TR>
<TR>
<TD><f:selectItem itemValue="MLLE" itemLabel="MLLE" /></TD>
</TR>
</TABLE>
</h:selectOneRadio>
<h:message for="Titre" styleClass="error" />
<h:outputLabel for="codeRegion">
<h:outputText value="Code Region Economique"
styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="codeRegion" size="30" maxlength="4"
value="#{GagePage.codeRegion}">
</h:inputText>
<h:message for="codeAgentEconomique" styleClass="error" />
<h:outputLabel for="codeRegion">
<h:outputText value="Code Agent Economique"
styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="codeAgentEconomique" size="30" maxlength="4"
value="#{GagePage.codeAgentEconomique}">
</h:inputText>
<h:message for="codeRegion" styleClass="error" />
<h:outputLabel for="Nature">
<h:outputText value="Nature" styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="Nature" size="30" maxlength="4"
value="#{GagePage.nature}">
</h:inputText>
<h:message for="Nature" styleClass="error" />
<h:outputLabel for="Notation">
<h:outputText value="Notation" styleClass="labelStyleClass" />
</h:outputLabel>
<h:inputText id="Notation" size="30" maxlength="4"
value="#{GagePage.notation}">
</h:inputText>
<h:message for="Notation" styleClass="error" />
<h:outputLabel for="Type">
<h:outputText value="Type" styleClass="labelStyleClass" />
</h:outputLabel>
<h:selectOneRadio id="Type" value="#{GagePage.type}"
styleClass="tableRows">
<TABLE align="left">
<TR>
<TD><f:selectItem itemValue="Garant" itemLabel="Garant" /></TD>
</TR>
<TR>
<TD><f:selectItem itemValue="Contre" itemLabel="Contre Garant" />
</TD>
</TR>
<TR>
<TD><f:selectItem itemValue="Emetteur" itemLabel="Emetteur" />
</TD>
</TR>
</TABLE>
</h:selectOneRadio>
<h:message for="Titre" styleClass="error" />
<h:commandButton action="#{GagePage.addGage}" value="Ajouter" />
</h:panelGrid>
</h:panelGrid>
<h:commandButton action="#{GagePage.addGage}" rendered="#{GagePage.showGarantie}"
value="Ajouter le Gage au panier" />
</h:form> |
Partager