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
|
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="authz"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>e-Flight</title>
<link href="../../css/report-status.css" rel="stylesheet" type="text/css">
<link href="../../css/layout.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript" language="JavaScript">
function unCheckFINBoxes(){
alert('unCheckFINBoxes');
}
function unCheckOPSBoxes(){
alert('unCheckOPSBoxes');
}
</script>
</head>
<body>
<f:view>
<rich:messages />
<h:form id="form">
<rich:panel header="Get e-Flight Report List">
<h:panelGrid columns="3">
<h:panelGrid columns="2">
<h:outputLabel value="Inbound" />
<authz:authorize ifAllGranted="ROLE_EXPORT">
<h:selectBooleanCheckbox disabled="true" />
</authz:authorize>
<authz:authorize ifNotGranted="ROLE_EXPORT">
<h:selectBooleanCheckbox value="#{manageReportBean.inbound}" />
</authz:authorize>
<h:outputLabel value="Outbound" />
<authz:authorize ifAllGranted="ROLE_IMPORT">
<h:selectBooleanCheckbox disabled="true" />
</authz:authorize>
<authz:authorize ifNotGranted="ROLE_IMPORT">
<h:selectBooleanCheckbox value="#{manageReportBean.outbound}" />
</authz:authorize>
</h:panelGrid>
<h:panelGrid columns="2">
<h:outputLabel />
<h:outputLabel value="Station" />
<h:outputLabel />
<h:selectOneMenu value="#{manageReportBean.selectedStation}">
<f:selectItems value="#{manageReportBean.listItemsStations}"/>
</h:selectOneMenu>
<h:outputLabel />
<h:outputLabel value="Flight date" />
<h:outputLabel for="flightDateFrom" value="From" />
<rich:calendar id="flightDateFrom" value="#{manageReportBean.fromDate}" enableManualInput="true" datePattern="dd-MM-yyyy" />
<h:outputLabel for="flightDateTo" value="To" />
<rich:calendar id="flightDateTo" value="#{manageReportBean.toDate}" enableManualInput="true" datePattern="dd-MM-yyyy" />
</h:panelGrid>
<h:panelGrid columns="3">
<h:outputLabel />
<h:outputLabel value="OPS" />
<h:outputLabel value="FIN" />
<h:outputLabel value="Late" />
<h:selectBooleanCheckbox id="opsLate" value="#{manageReportBean.opsLate}" onchange="unCheckFINBoxes()" />
<h:selectBooleanCheckbox id="finLate" value="#{manageReportBean.finLate}" onchange="unCheckOPSBoxes()" />
<h:outputLabel value="New" />
<h:selectBooleanCheckbox id="opsNew" value="#{manageReportBean.opsNew}" onchange="unCheckFINBoxes()" />
<h:selectBooleanCheckbox id="finNew" value="#{manageReportBean.finNew}" onchange="unCheckOPSBoxes()" />
<h:outputLabel value="Open" />
<h:selectBooleanCheckbox id="opsOpen" value="#{manageReportBean.opsOpen}" onchange="unCheckFINBoxes()" />
<h:selectBooleanCheckbox id="finOpen" value="#{manageReportBean.finOpen}" onchange="unCheckOPSBoxes()" />
<h:outputLabel value="Closed" />
<h:selectBooleanCheckbox id="opsClosed" value="#{manageReportBean.opsClosed}" onchange="unCheckFINBoxes()" />
<h:selectBooleanCheckbox id="finClosed" value="#{manageReportBean.finClosed}" onchange="unCheckOPSBoxes()" />
</h:panelGrid>
</h:panelGrid>
<h:commandButton value="Search" action="#{manageReportBean.search}" />
<br /><br />
<rich:dataTable var="report" value="#{manageReportBean.reports}" rendered="#{manageReportBean.reports.rowCount > 0}">
<rich:column>
<f:facet name="header">
<h:outputText value="Flight Number(In)" />
</f:facet>
<h:outputText value="#{report.flightIn.flightNumber}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="A/C Reg.(In)" />
</f:facet>
<h:outputText value="#{report.flightIn.acRegistration}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Flight Number(Out)" />
</f:facet>
<h:outputText value="#{report.flightOut.flightNumber}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="A/C Reg.(Out)" />
</f:facet>
<h:outputText value="#{report.flightOut.acRegistration}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Report" />
</f:facet>
<h:outputText value="#{report.type}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Status" />
</f:facet>
<h:outputText value="#{report.status}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Station" />
</f:facet>
<h:outputText value="#{report.station.code}" styleClass="#{report.status}" />
</rich:column>
<rich:column>
<h:commandLink value="Select" action="#{manageReportBean.pickup}" />
<h:outputText value=" " />
<h:commandLink value="Update" action="#{manageReportBean.editFromList}" rendered="#{(report.status == 'open' || report.status == 'closed') && (!(report.type == 'fin' && report.status == 'closed'))}" />
</rich:column>
</rich:dataTable>
</rich:panel>
</h:form>
</f:view>
</body>
</html> |
Partager