Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:p="http://primefaces.org/ui" xmlns:j="http://jleaf.org/faces"
- xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents"
- xmlns:c="http://java.sun.com/jsp/jstl/core">
- <ui:composition template="/WEB-INF/layouts/base.xhtml">
- <ui:define name="headPart">
- <j:lang id="lang" prefix="org.jleaf.erp.master.web" />
- <link
- href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
- type="text/css" rel="stylesheet" />
- <title>#{piece['uploadSellPriceProduct']}</title>
- </ui:define>
- <ui:define name="contentPart">
- <div class="page_title">#{piece['uploadSellPriceProduct']}</div>
- #{uploadSellPriceProductController.init()}
- <p:panel>
- <j:authorize task="viewUploadSellPriceProduct" forbidden="true"></j:authorize>
- <ui:include src="includes/menuForSellPriceProduct.xhtml">
- <ui:param name="active" value="viewUploadResultSellPriceProduct"/>
- </ui:include>
- <p:spacer height="15"></p:spacer>
- <p:messages id="messages" />
- <h:panelGrid columns="2">
- <h:outputText value="#{piece['status']}" />
- <p:selectOneMenu value="#{filterBean.data['status']}">
- <f:selectItem itemLabel="ALL" itemValue="ALL" />
- <f:selectItem itemLabel="IN PROGRESS" itemValue="IN" />
- <f:selectItem itemLabel="ERRORS" itemValue="ERRORS" />
- <f:selectItem itemLabel="FAILS" itemValue="FAILS" />
- <f:selectItem itemLabel="DONE" itemValue="DONE" />
- </p:selectOneMenu>
- <h:outputText value="#{piece['dateFrom']}" />
- <h:panelGroup>
- <jl:datePicker value="#{filterBean.data['dateFrom']}" />
- <h:outputText value=" " />
- <h:outputText value="#{piece['to']}" />
- <h:outputText value=" " />
- <jl:datePicker value="#{filterBean.data['dateTo']}" />
- </h:panelGroup>
- <p:spacer height="15"></p:spacer>
- <p:commandButton id="btnSearch" value="#{piece['search']}"
- update=":rootform:grid"
- actionListener="#{uploadSellPriceProductController.doSearch()}" />
- <p:defaultCommand target="btnSearch" />
- </h:panelGrid>
- <p:dataTable id="grid" paginator="true" rows="25"
- paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
- rowsPerPageTemplate="25,50,100" lazy="true"
- value="#{uploadSellPriceProductController.model}" var="item">
- <p:column headerText="#{piece['dateTime']}">
- <h:outputText value="#{item['dateTime']}"
- converter="#{dateTimeConverter}" />
- </p:column>
- <p:column headerText="#{piece['user']}">
- <h:outputText value="#{item['username']}" />
- </p:column>
- <p:column headerText="#{piece['fileName']}">
- <h:outputText value="#{item['fileNameOnly']}" />
- </p:column>
- <p:column headerText="#{piece['status']}">
- <h:outputText value="#{item['status']}" />
- </p:column>
- <p:column>
- <p:commandButton value="#{piece['downloadAllData']}" ajax="false"
- actionListener="#{uploadSellPriceProductController.downloadAllData(item)}"
- rendered="#{(item['status'] != 'IN PROGRESS') and (item['status'] != 'IN QUEUE') and (item['status'] != 'ERRORS')}" />
- <p:commandButton value="#{piece['downloadFailData']}" ajax="false"
- actionListener="#{uploadSellPriceProductController.downloadFailData(item)}"
- rendered="#{item['status'] == 'FAILS'}" />
- <p:commandButton value="#{piece['downloadErrorData']}" ajax="false"
- actionListener="#{uploadSellPriceProductController.downloadErrorData(item)}"
- rendered="#{item['status'] == 'ERRORS'}" />
- </p:column>
- </p:dataTable>
- </p:panel>
- </ui:define>
- <ui:define name="outsidePart">
- </ui:define>
- </ui:composition>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment