Advertisement
aadddrr

Untitled

Feb 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.77 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.  
  11.  
  12.     <ui:composition template="/WEB-INF/layouts/browse.xhtml">
  13.    
  14.     <ui:define name="headPart">
  15.         <j:lang id="lang" prefix="org.jleaf.erp.fin.web" />
  16.         <title>#{piece['taggingPoInternalSoIgs']}</title>
  17.        
  18.         <script>
  19.             $(document).ready(function() {
  20.                 doSelectOu();
  21.             });
  22.         </script>
  23.     </ui:define>
  24.    
  25.     <ui:define name="pageTitle">
  26.         <span>#{piece['taggingPoInternalSoIgs']}</span>
  27.     </ui:define>
  28.    
  29.     <ui:define name="filter">
  30.         <input type="hidden" value="#{poInternalSoIgsTaggingController}" />
  31.         <p:remoteCommand name="doSelectOu" process=":viewAddItem:comboPoInternalOu:comboPoInternalOu :viewAddItem:comboSoOu:comboSoOu :viewEditItem:comboPoInternalOu:comboPoInternalOu :viewEditItem:comboSoOu:comboSoOu" />  
  32.            
  33.         <ui:include src="includes/menuForPoInternalSoIgsTagging.xhtml">
  34.             <ui:param name="active" value="taggingPoInternalSoIgs" />
  35.         </ui:include>  
  36.        
  37.         <j:authorize task="viewPoInternalSoIgsTagging">
  38.        
  39.             <p:messages id="messages" autoUpdate="true" />
  40.            
  41.             <h:panelGrid columns="3">
  42.                 <h:outputText value="#{piece['docNoPoInternal']}" />
  43.                 <h:outputText value="#{piece['docNoPo']}" />
  44.                 <h:outputText value="#{piece['docNoSo']}" />
  45.                
  46.                 <p:inputText styleClass="sm" value="#{filterBean.data['poInternalNo']}"/>
  47.                 <p:inputText styleClass="sm" value="#{filterBean.data['poNo']}"/>
  48.                 <p:inputText styleClass="sm" value="#{filterBean.data['soNo']}"/>
  49.                
  50.                 <p:commandButton icon="ui-icon ui-icon-search" id="searchBtn"
  51.                     value="#{piece['search']}" ajax="true"
  52.                     action="#{poInternalSoIgsTaggingController.doSearch()}"
  53.                     update=":rootform:gridPoInternalSoIgsTagging" />
  54.                 <p:defaultCommand target="searchBtn" />
  55.                 <h:outputText/>
  56.             </h:panelGrid>
  57.        
  58.         </j:authorize>
  59.                
  60.     </ui:define>
  61.    
  62.     <ui:define name="content">
  63.    
  64.         <j:authorize task="viewPoInternalSoIgsTagging">
  65.    
  66.             <p:commandButton value="#{piece['add']}"
  67.                 oncomplete="addItemDlg.show()" icon="ui-icon ui-icon-plus"
  68.                 rendered="#{auth.task('createPoInternalSoIgsTagging')}"
  69.                 update=":viewAddItem"
  70.                 actionListener="#{poInternalSoIgsTaggingController.initAdd()}" />
  71.    
  72.             <p:dataTable id="gridPoInternalSoIgsTagging"
  73.                 var="item" paginator="true" rows="25" lazy="true"
  74.                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
  75.                 rowsPerPageTemplate="25,50,100"
  76.                 rowKey="#{item['id']}" value="#{poInternalSoIgsTaggingController.model}" >
  77.                                    
  78.                 <p:column style="width:100px" headerText="#{piece['action']}">
  79.                     <p:commandLink id="btnEdit"
  80.                         oncomplete="editItemDlg.show()" update=":viewEditItem"
  81.                         actionListener="#{poInternalSoIgsTaggingController.initEdit(item)}"
  82.                         rendered="#{auth.task('createPoInternalSoIgsTagging')}" >
  83.                         <h:graphicImage library="images" name="common/edit.png"
  84.                                     title="#{piece['edit']}" />
  85.                     </p:commandLink>
  86.                     <p:spacer width="5px" />
  87.                     <p:commandLink id="btnRemove" onclick="confirmRemoveItemDlg.show()"
  88.                         actionListener="#{poInternalSoIgsTaggingController.initRemove(item)}"
  89.                         rendered="#{auth.task('removePoInternalSoIgsTagging')}" >
  90.                         <h:graphicImage library="images" name="common/delete.png"
  91.                             title="#{piece['remove']}" />
  92.                     </p:commandLink>
  93.                 </p:column>
  94.    
  95.                 <p:column headerText="#{piece['poInternalOu']}">
  96.                     <h:outputText value="#{item['poInternalOuCode'] - item['poInternalOuName']}" />
  97.                 </p:column>
  98.    
  99.                 <p:column headerText="#{piece['poInternalNo']}">
  100.                     <h:outputText value="#{item['poInternalNo']}" />
  101.                 </p:column>
  102.    
  103.                 <p:column headerText="#{piece['poNo']}">
  104.                     <h:outputText value="#{item['poNo']}" />
  105.                 </p:column>
  106.    
  107.                 <p:column headerText="#{piece['soOu']}">
  108.                     <h:outputText value="#{item['soOuCode'] - item['soOuName']}" />
  109.                 </p:column>
  110.    
  111.                 <p:column headerText="#{piece['soNo']}">
  112.                     <h:outputText value="#{item['soNo']}" />
  113.                 </p:column>
  114.                
  115.             </p:dataTable>
  116.            
  117.         </j:authorize>
  118.            
  119.         <p:confirmDialog header="#{piece['removeItem']}"
  120.             message="#{piece['areYouSure']}" widgetVar="confirmRemoveItemDlg" width="300">
  121.             <p:commandButton value="#{piece['yes']}"
  122.                 actionListener="#{poInternalSoIgsTaggingController.removeItem()}"
  123.                 update="gridPoInternalSoIgsTagging messages" oncomplete="confirmRemoveItemDlg.hide()" />
  124.             <p:commandButton value="#{piece['no']}" type="button"
  125.                 onclick="confirmRemoveItemDlg.hide()" />
  126.         </p:confirmDialog>
  127.            
  128.     </ui:define>
  129.    
  130.     <ui:define name="outsidePart">
  131.    
  132.         <p:dialog id="dlgAddItem" widgetVar="addItemDlg" modal="true"
  133.             header="#{piece['addTaggingPoInternalSoIgs']}" >
  134.             <h:form id="viewAddItem">
  135.                 <p:panel id="dlgViewAddItem">
  136.                     <h:panelGrid columns="3" style="width: 500px">
  137.  
  138.                         <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
  139.                         <h:outputText value="#{piece['docNoPoInternal']}" />
  140.                         <h:outputText value="#{piece['docNoPo']}" />                   
  141.                        
  142.                         <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
  143.                             taskName="system" comboName="authorizedOUMainBu"
  144.                             args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
  145.                             ajax="true"
  146.                             listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  147.                             update=":viewAddItem:comboPoInternal:comboPoInternal" />
  148.                         <jl:autoComplete id="comboPoInternal"
  149.                             value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
  150.                             task="system" comboName="poInternalForPoInternalSoIgsTagging"
  151.                             args="#{loginController.getCurrentTenantId()},10,"
  152.                             itemLabel="#{item['docNo']}"
  153.                             label="docNo" styleClass="md" >
  154.                             <p:ajax event="itemSelect"
  155.                                 process=":rootform @this"
  156.                                 ajax="true"
  157.                                 listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  158.                                 update=":viewAddItem:poNo" />
  159.                         </jl:autoComplete>
  160.                         <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
  161.    
  162.                         <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
  163.                         <h:outputText value="#{piece['docNoSo']}" />
  164.                         <h:outputText />
  165.                        
  166.                         <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
  167.                             comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
  168.                             ajax="true"
  169.                             listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  170.                             update=":viewAddItem:comboSo:comboSo" />
  171.                         <jl:autoComplete id="comboSo"
  172.                             value="#{poInternalSoIgsTaggingController.selected['so']}"
  173.                             task="system" comboName="salesOrderForPoInternalSoIgsTagging"
  174.                             args="#{loginController.getCurrentTenantId()},10,"
  175.                             itemLabel="#{item['docNo']}"
  176.                             label="docNo" styleClass="md" >
  177.                         </jl:autoComplete>
  178.                         <h:outputText/>
  179.                        
  180.                     </h:panelGrid>
  181.                    
  182.                     <p:spacer height="35"/>
  183.                    
  184.                     <p:commandButton id="addBtn" value="#{piece['add']}"
  185.                         update=":rootform:gridPoInternalSoIgsTagging :rootform:messages"
  186.                         oncomplete="if(args.success){addItemDlg.hide()}"
  187.                         actionListener="#{poInternalSoIgsTaggingController.addItem()}" />
  188.                     <p:defaultCommand target="addBtn" />
  189.                     <p:commandButton id="closeBtn" value="#{piece['close']}"
  190.                         onclick="addItemDlg.hide()" />
  191.                            
  192.                 </p:panel>
  193.             </h:form>
  194.         </p:dialog>
  195.        
  196.         <p:dialog id="dlgEditItem" widgetVar="editItemDlg" modal="true"
  197.             header="#{piece['editTaggingPoInternalSoIgs']}" >
  198.             <h:form id="viewEditItem">
  199.                 <p:panel id="dlgViewEditItem">
  200.                     <h:panelGrid columns="3" style="width: 500px">
  201.  
  202.                         <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
  203.                         <h:outputText value="#{piece['docNoPoInternal']}" />
  204.                         <h:outputText value="#{piece['docNoPo']}" />                   
  205.                        
  206.                         <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
  207.                             taskName="system" comboName="authorizedOUMainBu"
  208.                             args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
  209.                             listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  210.                             update=":viewEditItem:comboPoInternal:comboPoInternal" />
  211.                         <jl:autoComplete id="comboPoInternal"
  212.                             value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
  213.                             task="system" comboName="poInternalForPoInternalSoIgsTagging"
  214.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['poInternalOu']['id']},"
  215.                             itemLabel="#{item['docNo']}"
  216.                             label="docNo" styleClass="md" >
  217.                             <p:ajax event="itemSelect"
  218.                                 process=":rootform @this"
  219.                                 ajax="true"
  220.                                 listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  221.                                 update=":viewEditItem:poNo" />
  222.                         </jl:autoComplete>
  223.                         <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
  224.    
  225.                         <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
  226.                         <h:outputText value="#{piece['docNoSo']}" />
  227.                         <h:outputText />
  228.                        
  229.                         <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
  230.                             comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
  231.                             listener="#{poInternalSoIgsTaggingController.onFilterChanged}"
  232.                             update=":viewEditItem:comboSo:comboSo" />
  233.                         <jl:autoComplete id="comboSo"
  234.                             value="#{poInternalSoIgsTaggingController.selected['so']}"
  235.                             task="system" comboName="salesOrderForPoInternalSoIgsTagging"
  236.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['soOu']['id']},"
  237.                             itemLabel="#{item['docNo']}"
  238.                             label="docNo" styleClass="md" >
  239.                         </jl:autoComplete>
  240.                         <h:outputText/>
  241.                        
  242.                         <p:spacer height="10px"/>
  243.                         <h:outputText/>
  244.                         <h:outputText/>
  245.                        
  246.                     </h:panelGrid>
  247.                    
  248.                     <p:spacer height="35"/>
  249.                    
  250.                     <p:commandButton id="saveBtn" value="#{piece['save']}"
  251.                         update=":rootform:gridPoInternalSoIgsTagging :rootform:messages"
  252.                         oncomplete="if(args.success){editItemDlg.hide()}"
  253.                         actionListener="#{poInternalSoIgsTaggingController.editItem()}" />
  254.                     <p:defaultCommand target="saveBtn" />
  255.                     <p:commandButton id="closeBtn" value="#{piece['close']}"
  256.                         onclick="editItemDlg.hide()" />
  257.                            
  258.                 </p:panel>
  259.             </h:form>
  260.         </p:dialog>
  261.        
  262.     </ui:define>
  263.            
  264. </ui:composition>
  265. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement