widana

Untitled

Jan 29th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5. xmlns:ui="http://java.sun.com/jsf/facelets"
  6. xmlns:f="http://java.sun.com/jsf/core"
  7. xmlns:h="http://java.sun.com/jsf/html"
  8. xmlns:p="http://primefaces.org/ui" xmlns:j="http://jleaf.org/faces"
  9. xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents"
  10. xmlns:c="http://java.sun.com/jsp/jstl/core">
  11.  
  12. <ui:composition template="/WEB-INF/layouts/base.xhtml">
  13. <ui:define name="headPart">
  14. <j:lang id="lang" prefix="org.jleaf.erp.master.web" />
  15. <link
  16. href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
  17. type="text/css" rel="stylesheet" />
  18. <title>#{piece['uploadSellPriceProduct']}</title>
  19. </ui:define>
  20. <ui:define name="contentPart">
  21. <div class="page_title">#{piece['uploadSellPriceProduct']}</div>
  22. #{uploadSellPriceProductController.init()}
  23. <p:panel>
  24.  
  25. <j:authorize task="viewUploadSellPriceProduct" forbidden="true"></j:authorize>
  26.  
  27. <ui:include src="includes/menuForSellPriceProduct.xhtml">
  28. <ui:param name="active" value="viewUploadResultSellPriceProduct"/>
  29. </ui:include>
  30.  
  31. <p:spacer height="15"></p:spacer>
  32.  
  33. <p:messages id="messages" />
  34.  
  35. <h:panelGrid columns="2">
  36. <h:outputText value="#{piece['status']}" />
  37. <p:selectOneMenu value="#{filterBean.data['status']}">
  38. <f:selectItem itemLabel="ALL" itemValue="ALL" />
  39. <f:selectItem itemLabel="IN PROGRESS" itemValue="IN" />
  40. <f:selectItem itemLabel="ERRORS" itemValue="ERRORS" />
  41. <f:selectItem itemLabel="FAILS" itemValue="FAILS" />
  42. <f:selectItem itemLabel="DONE" itemValue="DONE" />
  43. </p:selectOneMenu>
  44.  
  45. <h:outputText value="#{piece['dateFrom']}" />
  46. <h:panelGroup>
  47. <jl:datePicker value="#{filterBean.data['dateFrom']}" />
  48. <h:outputText value=" " />
  49. <h:outputText value="#{piece['to']}" />
  50. <h:outputText value=" " />
  51. <jl:datePicker value="#{filterBean.data['dateTo']}" />
  52. </h:panelGroup>
  53. <p:spacer height="15"></p:spacer>
  54.  
  55. <p:commandButton id="btnSearch" value="#{piece['search']}"
  56. update=":rootform:grid"
  57. actionListener="#{uploadSellPriceProductController.doSearch()}" />
  58. <p:defaultCommand target="btnSearch" />
  59. </h:panelGrid>
  60.  
  61. <p:dataTable id="grid" paginator="true" rows="25"
  62. paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
  63. rowsPerPageTemplate="25,50,100" lazy="true"
  64. value="#{uploadSellPriceProductController.model}" var="item">
  65. <p:column headerText="#{piece['dateTime']}">
  66. <h:outputText value="#{item['dateTime']}"
  67. converter="#{dateTimeConverter}" />
  68. </p:column>
  69.  
  70. <p:column headerText="#{piece['user']}">
  71. <h:outputText value="#{item['username']}" />
  72. </p:column>
  73.  
  74. <p:column headerText="#{piece['fileName']}">
  75. <h:outputText value="#{item['fileNameOnly']}" />
  76. </p:column>
  77.  
  78. <p:column headerText="#{piece['status']}">
  79. <h:outputText value="#{item['status']}" />
  80. </p:column>
  81.  
  82. <p:column>
  83. <p:commandButton value="#{piece['downloadAllData']}" ajax="false"
  84. actionListener="#{uploadSellPriceProductController.downloadAllData(item)}"
  85. rendered="#{(item['status'] != 'IN PROGRESS') and (item['status'] != 'IN QUEUE') and (item['status'] != 'ERRORS')}" />
  86. <p:commandButton value="#{piece['downloadFailData']}" ajax="false"
  87. actionListener="#{uploadSellPriceProductController.downloadFailData(item)}"
  88. rendered="#{item['status'] == 'FAILS'}" />
  89. <p:commandButton value="#{piece['downloadErrorData']}" ajax="false"
  90. actionListener="#{uploadSellPriceProductController.downloadErrorData(item)}"
  91. rendered="#{item['status'] == 'ERRORS'}" />
  92. </p:column>
  93. </p:dataTable>
  94.  
  95. </p:panel>
  96.  
  97. </ui:define>
  98.  
  99. <ui:define name="outsidePart">
  100.  
  101. </ui:define>
  102.  
  103. </ui:composition>
  104. </html>
Advertisement
Add Comment
Please, Sign In to add comment