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
| <f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ice:outputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>TL Interface</title>
<link href="./xmlhttp/css/rime/rime.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<ice:form>
<f:loadBundle var="msg" basename="com.sungard.bundle.messagemission" />
<ice:panelCollapsible id="tab" expanded="true">
<f:facet name="header">
<ice:panelGroup>
<ice:outputText id="tabMission" value="#{msg.titre}" />
</ice:panelGroup>
</f:facet>
<ice:panelGrid columns="2">
<ice:outputLabel for="ddatetest" value="#{msg.dateDemande }" />
<ice:selectInputDate id="ddatetest"
value="#{missionBean.requestDate }" renderAsPopup="true"
readonly="true">
<f:convertDateTime pattern="dd/MM/yyyy" />
</ice:selectInputDate>
</ice:panelGrid>
<ice:panelGroup
style="width: 950px; margin-top: 0mm; margin-bottom: 0mm">
<ice:panelGrid columns="4" style="width: 720px; margin-bottom: 0mm">
<ice:outputLabel for="made" value="#{msg.faitePar}" />
<ice:inputText id="made" value="Requester"
style="width: 150px; margin-left: 7px" />
<ice:outputLabel for="object" value="#{msg.objet }" />
<ice:inputText id="object" style="width: 150px; margin-left: 7px"
value="#{missionBean.object }" />
<ice:outputLabel for="nature" value="#{msg.nature }" />
<ice:inputText id="nature" style="width: 150px; margin-left: 7px"
immediate="true" />
<ice:outputLabel for="account" value="Account" />
<ice:selectOneMenu id="account"
value="#{missionBean.selectedAccount }"
style="width: 160px; margin-left: 7px" onchange="submit()">
<f:selectItems value="#{missionBean.accounts}" />
</ice:selectOneMenu>
<ice:outputLabel for="formEmpName" value="#{msg.nomEmploye }" />
<ice:selectInputText id="formEmpName" rows="5"
value="#{missionBean.selectedEmployeeValue}"
valueChangeListener="#{missionBean.selectInputValueEmployeeChanged}"
listVar="emp"
listValue="#{missionBean.employeeMatchPossibilities}"
style="margin-bottom: 3mm;width: 160px; margin-left: 7px"
partialSubmit="true">
<f:facet name="selectInputText">
<ice:panelGrid columns="4"
columnClasses="NameCol,FirstNameCol,teamCol,teamAccountCol">
<ice:outputText value="#{emp.name}" />
<ice:outputText value="#{emp.first_name}" />
<ice:outputText value="#{emp.team.name}" />
<ice:outputText value="#{emp.team.account.name}" />
</ice:panelGrid>
</f:facet>
</ice:selectInputText>
<ice:outputLabel for="note" value="#{msg.description }" />
<ice:inputTextarea id="note" value="#{missionBean.description}"
style="width:315px;overflow: auto;margin-left: 7px">
</ice:inputTextarea>
</ice:panelGrid>
<ice:panelGrid columns="2" style="width: 600px; margin-top: 2mm">
<ice:panelGroup>
<ice:panelGrid columns="2" style="width: 150px; margin-top: 0mm">
<ice:outputLabel for="t_name" value="#{msg.equipe }" />
<ice:outputText id="t_name"
value="#{missionBean.selectedEmployee.team.name}" />
<ice:outputLabel for="a_name" value="#{msg.compte }" />
<ice:outputText id="a_name"
value="#{missionBean.selectedEmployee.team.account.name}" />
</ice:panelGrid>
</ice:panelGroup>
<ice:panelGroup>
</ice:panelGroup>
</ice:panelGrid>
<ice:outputLabel for="itineraire" value="#{msg.itin }" />
<ice:dataTable id="itineraire" value="#{missionBean.cities}"
var="city" varStatus="status">
<ice:column>
<f:facet name="header">
<ice:outputText value="#{msg.dep }" />
</f:facet>
<ice:selectInputText width="120" style="margin-bottom: 3mm"
rendered="#{(status.index==0 ? 'true' : (status.index==1 ? missionBean.rendered : 'true'))}"
readonly="true"
value="#{(status.index==0 ? city.name : (status.index==1 ? missionBean.selectedCity.name : (missionBean.rendered==true ? missionBean.selectedCity2.name : missionBean.selectedCity.name)))}" />
</ice:column>
<ice:column>
<f:facet name="header">
<ice:outputText value="#{msg.arr }" />
</f:facet>
<ice:selectInputText
rendered="#{(status.index==0 ? 'true' : 'false' )}"
id="formCityName" rows="5" width="120"
value="#{missionBean.selectedCityValue}"
valueChangeListener="#{missionBean.selectInputValueCityChanged}"
listVar="city" listValue="#{missionBean.cityMatchPossibilities}"
style="margin-bottom: 3mm">
<f:facet name="selectInputText">
<ice:panelGrid columns="1" columnClasses="cityCol">
<ice:outputText value="#{city.name}" />
</ice:panelGrid>
</f:facet>
</ice:selectInputText>
<ice:selectInputText
rendered="#{(status.index==1 and missionBean.rendered==true ? 'true' : 'false' )}"
id="formCityName2" rows="5" width="120"
value="#{missionBean.selectedCityValue2}"
valueChangeListener="#{missionBean.selectInputValueCityChanged2}"
listVar="cit" listValue="#{missionBean.cityMatchPossibilities}"
style="margin-bottom: 3mm">
<f:facet name="selectInputText">
<ice:panelGrid columns="1" columnClasses="cityCol">
<ice:outputText value="#{cit.name}" />
</ice:panelGrid>
</f:facet>
</ice:selectInputText>
<ice:selectInputText
rendered="#{(status.index==2 ? 'true' : 'false' )}"
value="#{(status.index==2 ? 'Tunis' : 'Jamais')}" readonly="true"
width="120" style="margin-bottom: 3mm" />
</ice:column>
<ice:column>
<f:facet name="header">
<ice:outputText value="#{msg.date }" />
</f:facet>
<ice:selectInputDate renderAsPopup="true"
rendered="#{(status.index==0 ? 'true' : (status.index==1 ? missionBean.rendered : 'true'))}"
value="#{stauts.index==0 ? missionBean.beginningDate : status.index==1 ? missionBean.beginningDate2 : missionBean.endDate }"
partialSubmit="true">
<f:convertDateTime pattern="dd/MM/yyyy" />
</ice:selectInputDate>
</ice:column>
<ice:column>
<f:facet name="header">
<ice:outputText value="#{msg.plages }" />
</f:facet>
<ice:selectOneMenu
rendered="#{(status.index==0 ? 'true' : (status.index==1 ? missionBean.rendered : 'true'))}"
value="#{stauts.index==0 ? missionBean.slotB : status.index==1 ? missionBean.slotB1 : missionBean.slotE }">
<f:selectItems value="#{missionBean.slots}" />
</ice:selectOneMenu>
</ice:column>
</ice:dataTable>
<ice:panelGrid columns="2" style="width: 290px;">
<ice:commandLink value="#{msg.add }"
actionListener="#{missionBean.add}" partialSubmit="true"
immediate="true" style="left: 2mm" />
<ice:commandLink value="#{msg.supp }"
actionListener="#{missionBean.remove}" partialSubmit="true"
immediate="true" style="left: 2mm" />
</ice:panelGrid>
<ice:outputLabel for="requisite" value="#{msg.req }" />
<ice:panelGrid id="requisite" columns="4">
<ice:outputLabel for="visa" value="#{msg.visa }" />
<ice:selectBooleanCheckbox id="visa"
value="#{missionBean.visa_required }"
valueChangeListener="#{missionBean.checkVisa}"
partialSubmit="true" immediate="true">
</ice:selectBooleanCheckbox>
<ice:outputLabel for="hotel" value="#{msg.hotel }" />
<ice:selectBooleanCheckbox id="hotel"
value="#{missionBean.hotel_required }"
valueChangeListener="#{missionBean.checkHotel}"
partialSubmit="true" immediate="true">
</ice:selectBooleanCheckbox>
</ice:panelGrid>
<ice:commandButton value="Submit"
actionListener="#{missionBean.submit}" partialSubmit="true" />
</ice:panelGroup>
</ice:panelCollapsible>
</ice:form>
</body>
</html>
</f:view> |
Partager