150 lines
No EOL
5.1 KiB
HTML
150 lines
No EOL
5.1 KiB
HTML
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
|
template="/layout/template.xhtml">
|
|
|
|
|
|
<h:head>
|
|
<!-- init search controller -->
|
|
<f:metadata>
|
|
<f:viewAction action="#{searchController.init()}" />
|
|
<f:viewAction action="#{customSearchController.init()}" />
|
|
</f:metadata>
|
|
</h:head>
|
|
|
|
|
|
<ui:define name="scripts">
|
|
<script type="text/javascript"
|
|
src="#{facesContext.externalContext.requestContextPath}/js/imixs-office.worklist.js?build=#{app.application_build_timestamp}"></script>
|
|
<script type="text/javascript"
|
|
src="#{facesContext.externalContext.requestContextPath}/js/imixs-office.worklist.custom.js?build=#{app.application_build_timestamp}"></script>
|
|
</ui:define>
|
|
|
|
|
|
|
|
<ui:define name="content">
|
|
<f:view>
|
|
<h:form>
|
|
<ui:param name="searchresult" value="#{viewHandler.getData(searchController)}"></ui:param>
|
|
<ui:param name="searchresultCount" value="#{searchController.getCount()}"></ui:param>
|
|
<h:panelGroup styleClass="imixs-view imixs-search" layout="block" id="serach_view">
|
|
|
|
|
|
<div class="imixs-header">
|
|
<h1 id="worklist-title">
|
|
Rechnungscontrolling - Archiv
|
|
</h1>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="imixs-body">
|
|
<!-- *** Header **** -->
|
|
<ui:fragment rendered="#{empty searchController.defaultQuery}">
|
|
<div class="imixs-header" style="">
|
|
<!-- *** Header **** -->
|
|
<ui:include src="/pages/workitems/agl_archive_filter.xhtml" />
|
|
</div>
|
|
</ui:fragment>
|
|
|
|
|
|
<div class="imixs-view-submit-panel">
|
|
<!-- Search Button and Search Order -->
|
|
|
|
|
|
<h:commandButton value="#{message.search}"
|
|
action="#{customSearchController.refreshAGLArchive()}">
|
|
<f:ajax render="@form" execute="@form" onevent="updateSearchForm" />
|
|
</h:commandButton>
|
|
<h:commandButton value="#{message.reset}" action="#{customSearchController.resetSearch()}">
|
|
<f:ajax render="@form" execute="@form" onevent="updateSearchForm" />
|
|
</h:commandButton>
|
|
|
|
<!-- Sort Order -->
|
|
<div style="float: right; padding: 0 10px;"
|
|
class="pull-right ui-button ui-widget ui-state-default ui-corner-all">
|
|
<h:outputText title="#{message['worklist.sortorder_help']}"
|
|
value="#{message['worklist.sortorder']}: " />
|
|
<h:selectOneMenu style="background:#fff;"
|
|
value="#{searchController.searchFilter.item['sortorder']}">
|
|
<f:selectItem itemValue="" itemLabel="#{message['worklist.sortorder_relevance']}" />
|
|
<f:selectItem itemValue="1" itemLabel="#{message['worklist.sortorder_newest']}" />
|
|
<f:selectItem itemValue="2" itemLabel="#{message['worklist.sortorder_oldest']}" />
|
|
<f:ajax event="change" render="@form"
|
|
listener="#{customSearchController.refreshSearch}"
|
|
onevent="imixsOfficeMain.layoutAjaxEvent" />
|
|
</h:selectOneMenu>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<ui:param name="noresult"
|
|
value="#{(empty searchresult) and (empty searchController.searchFilter.item['phrase'])}">
|
|
</ui:param>
|
|
|
|
<ui:fragment rendered="#{!noresult}">
|
|
<h:panelGroup layout="block" id="worklist-body">
|
|
|
|
|
|
<div class="search-result-summary">#{message.total_result} #{searchresultCount}
|
|
#{message.serach_hits}</div>
|
|
|
|
<!-- display search result -->
|
|
<ui:repeat var="workitem" value="#{searchresult}">
|
|
<ui:include src="worklist_viewentry.xhtml">
|
|
<ui:param name="workitem" value="#{workitem}" />
|
|
</ui:include>
|
|
</ui:repeat>
|
|
|
|
|
|
<!-- display empty search result -->
|
|
<h:panelGroup
|
|
rendered="#{(empty searchresult) and (empty facesContext.maximumSeverity)}">
|
|
<h2>#{message.empty_worklist}</h2>
|
|
</h:panelGroup>
|
|
|
|
|
|
<!-- display parsing error -->
|
|
<h:panelGroup rendered="#{! empty facesContext.maximumSeverity}" styleClass="ui-widget">
|
|
<div class="ui-state-error"
|
|
style="padding: .7em; margin-bottom: .7em; border: none;">
|
|
<h3>
|
|
<span class="typcn typcn-warning-outline"></span>
|
|
#{message.search_error_title}
|
|
</h3>
|
|
<p>
|
|
<h:messages globalOnly="true" />
|
|
</p>
|
|
</div>
|
|
</h:panelGroup>
|
|
</h:panelGroup>
|
|
|
|
|
|
<div class="imixs-footer">
|
|
<h:commandButton actionListener="#{viewHandler.back(searchController)}"
|
|
disabled="#{searchController.pageIndex==0}" value="#{message.prev}">
|
|
<f:ajax render="serach_view"
|
|
onevent="function(data) { imixsOfficeMain.layoutAjaxEvent(data, '#{component.parent.parent.clientId}') }" />
|
|
</h:commandButton>
|
|
<h:commandButton actionListener="#{viewHandler.forward(searchController)}"
|
|
disabled="#{searchController.endOfList}" value="#{message.next}">
|
|
|
|
<f:ajax render="serach_view"
|
|
onevent="function(data) { imixsOfficeMain.layoutAjaxEvent(data, '#{component.parent.parent.clientId}') }" />
|
|
|
|
</h:commandButton>
|
|
</div>
|
|
|
|
</ui:fragment>
|
|
|
|
</div>
|
|
</h:panelGroup>
|
|
|
|
</h:form>
|
|
</f:view>
|
|
|
|
|
|
|
|
|
|
</ui:define>
|
|
</ui:composition> |