Advertisement
aadddrr

Untitled

Aug 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.37 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" xmlns:ui="http://java.sun.com/jsf/facelets"
  5.     xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"
  6.     xmlns:j="http://jleaf.org/faces" xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents">
  7.  
  8. <ui:composition template="/WEB-INF/layouts/base.xhtml">
  9.     <ui:define name="headPart">
  10.         <link href="${request.contextPath}/jleaf.resource/org/jleaf/erp/fin/web/resources/css/style.css" type="text/css"
  11.             rel="stylesheet" />
  12.  
  13.         <j:lang id="lang" prefix="org.jleaf.erp.fin.web" />
  14.  
  15.         <title>#{piece['reportTaggingPoInternalSoIgs']}</title>
  16.         <script src="${request.contextPath}/jleaf.resource/org/jleaf/erp/fin/web/resources/js/general.js" />
  17.         <script>
  18.             $(document).ready(function() {
  19.                 doSelectOu();
  20.             });
  21.         </script>
  22.     </ui:define>
  23.     <ui:define name="contentPart">
  24.    
  25.         <j:authorize task="downloadReportTaggingPoInternalSoIgs" forbidden="true">
  26.  
  27.             <input type="hidden" value="#{reportTaggingPoInternalSoIgsController}" />
  28.  
  29.             <div class="page_title">
  30.                 <span>#{piece['reportTaggingPoInternalSoIgs']}</span>
  31.             </div>
  32.  
  33.             <p:messages id="messages" autoUpdate="true" />
  34.  
  35.             <p:remoteCommand name="doSelectOu" process=":rootform:comboPoInternalOu:comboPoInternalOu :rootform:comboSoOu:comboSoOu" />
  36.  
  37.             <p:spacer height="10px" />
  38.  
  39.             <p:panel>
  40.  
  41.                 <h:panelGrid columns="4" style="width: 500px">
  42.                
  43.                     <h:outputText value="#{piece['filterBy']}" />
  44.                     <h:outputText/>
  45.                     <h:outputText/>
  46.                     <h:outputText/>
  47.                    
  48.                     <p:selectOneMenu id="filterBy" value="#{filterBean.data['filterBy']}">
  49.                         <f:selectItem itemValue="PO Internal" itemLabel="#{piece['poInternal']}" />
  50.                         <f:selectItem itemValue="Sales Order" itemLabel="#{piece['salesOrder']}" />
  51.                         <p:ajax ajax="true"
  52.                             listener="#{reportTaggingPoInternalSoIgsController.onFilterByChanged}"
  53.                             update=":rootform:ou"/>
  54.                     </p:selectOneMenu>
  55.                     <h:outputText/>
  56.                     <h:outputText/>
  57.                     <h:outputText/>
  58.  
  59.                     <h:outputText value="#{piece['ouBusinessUnit']}" />
  60.                     <h:outputText value="#{piece['docNo']}" />
  61.                     <h:outputText value="#{piece['year']}" />                  
  62.                     <h:outputText value="#{piece['month']}" />                 
  63.                    
  64.                     <h:panelGrid columns="2" id="ou">
  65.                         <jl:comboBox id="comboPoInternalOu" value="#{filterBean.data['poInternalOu']}"
  66.                             taskName="system" comboName="authorizedOUMainBu"
  67.                             args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
  68.                             rendered="#{filterBean.data['filterBy'] == 'PO Internal'}" />
  69.                         <jl:comboBox id="comboSoOu" value="#{filterBean.data['soOu']}" taskName="system"
  70.                             comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
  71.                             rendered="#{filterBean.data['filterBy'] == 'Sales Order'}" />
  72.                     </h:panelGrid>
  73.                     <p:inputText value="#{filterBean.data['docNo']}" />
  74.                     <p:spinner id="year" size="4" maxlength="4" value="#{filterBean.data['year']}" min="1900" max="2999"/>
  75.                     <p:selectOneMenu id="month" value="#{filterBean.data['month']}">
  76.                         <f:selectItem itemValue="01" itemLabel="#{piece['january']}" />
  77.                         <f:selectItem itemValue="02" itemLabel="#{piece['february']}" />
  78.                         <f:selectItem itemValue="03" itemLabel="#{piece['march']}" />
  79.                         <f:selectItem itemValue="04" itemLabel="#{piece['april']}" />
  80.                         <f:selectItem itemValue="05" itemLabel="#{piece['may']}" />
  81.                         <f:selectItem itemValue="06" itemLabel="#{piece['june']}" />
  82.                         <f:selectItem itemValue="07" itemLabel="#{piece['july']}" />
  83.                         <f:selectItem itemValue="08" itemLabel="#{piece['august']}" />
  84.                         <f:selectItem itemValue="09" itemLabel="#{piece['september']}" />
  85.                         <f:selectItem itemValue="10" itemLabel="#{piece['october']}" />
  86.                         <f:selectItem itemValue="11" itemLabel="#{piece['november']}" />
  87.                         <f:selectItem itemValue="12" itemLabel="#{piece['december']}" />
  88.                     </p:selectOneMenu>
  89.                    
  90.                     <p:spacer height="10px"/>
  91.                     <h:outputText/>
  92.                     <h:outputText/>
  93.                     <h:outputText/>
  94.                    
  95.                     <p:commandButton value="#{piece['download']}" actionListener="#{reportTaggingPoInternalSoIgsController.doDownload()}"
  96.                         ajax="true" />
  97.                    
  98.                     <h:outputText />
  99.  
  100.                 </h:panelGrid>
  101.             </p:panel>
  102.        
  103.         </j:authorize>
  104.        
  105.     </ui:define>
  106. </ui:composition>
  107. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement