aadddrr

ReportTaggingPOInternal

Aug 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.32 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=":rootform:comboPoInternalOu:comboPoInternalOu :rootform: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['ouBusinessUnitForPoInternal']}" />
  43.                     <h:outputText value="#{piece['docNoPoInternal']}" />
  44.                     <h:outputText value="#{piece['docNoPo']}" />                   
  45.                    
  46.                     <jl:comboBox id="comboPoInternalOu" value="#{filterBean.data['poInternalOu']}"
  47.                         taskName="system" comboName="authorizedOUMainBu"
  48.                         args=",,Y" itemLabel="#{item['code']} / #{item['name']}" />
  49.                     <p:inputText value="#{filterBean.data['poInternalNo']}" />
  50.                     <p:inputText value="#{filterBean.data['poNo']}" />
  51.  
  52.                     <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
  53.                     <h:outputText value="#{piece['docNoSo']}" />
  54.                     <h:outputText />
  55.                    
  56.                     <jl:comboBox id="comboSoOu" value="#{filterBean.data['soOu']}" taskName="system"
  57.                         comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"/>
  58.                     <p:inputText value="#{filterBean.data['soNo']}" />
  59.                     <h:outputText/>
  60.                    
  61.                     <p:spacer height="10px"/>
  62.                     <h:outputText/>
  63.                     <h:outputText/>
  64.                
  65.                 <p:commandButton icon="ui-icon ui-icon-search" id="searchBtn"
  66.                     value="#{piece['search']}" ajax="true"
  67.                     action="#{poInternalSoIgsTaggingController.doSearch()}"
  68.                     update=":rootform:gridPoInternalSoIgsTagging" />
  69.                 <p:defaultCommand target="searchBtn" />
  70.                 <h:outputText/>
  71.             </h:panelGrid>
  72.        
  73.         </j:authorize>
  74.                
  75.     </ui:define>
  76.    
  77.     <ui:define name="content">
  78.    
  79.         <j:authorize task="viewPoInternalSoIgsTagging">
  80.    
  81.             <p:spacer height="35px" width="0px"/>
  82.    
  83.             <p:commandButton value="#{piece['add']}"
  84.                 oncomplete="addItemDlg.show()" icon="ui-icon ui-icon-plus"
  85.                 rendered="#{auth.task('createPoInternalSoIgsTagging')}"
  86.                 update=":viewAddItem"
  87.                 actionListener="#{poInternalSoIgsTaggingController.initAdd()}" />
  88.    
  89.             <p:dataTable id="gridPoInternalSoIgsTagging"
  90.                 var="item" paginator="true" rows="25" lazy="true"
  91.                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
  92.                 rowsPerPageTemplate="25,50,100"
  93.                 rowKey="#{item['id']}" value="#{poInternalSoIgsTaggingController.model}" >
  94.                                    
  95.                 <p:column style="width:100px" headerText="#{piece['action']}">
  96.                     <p:commandLink id="btnEdit"
  97.                         oncomplete="editItemDlg.show()" update=":viewEditItem"
  98.                         actionListener="#{poInternalSoIgsTaggingController.initEdit(item)}"
  99.                         rendered="#{auth.task('createPoInternalSoIgsTagging')}" >
  100.                         <h:graphicImage library="images" name="common/edit.png"
  101.                                     title="#{piece['edit']}" />
  102.                     </p:commandLink>
  103.                     <p:spacer width="5px" />
  104.                     <p:commandLink id="btnRemove" onclick="confirmRemoveItemDlg.show()"
  105.                         actionListener="#{poInternalSoIgsTaggingController.initRemove(item)}"
  106.                         rendered="#{auth.task('removePoInternalSoIgsTagging')}" >
  107.                         <h:graphicImage library="images" name="common/delete.png"
  108.                             title="#{piece['remove']}" />
  109.                     </p:commandLink>
  110.                 </p:column>
  111.    
  112.                 <p:column headerText="#{piece['poInternalOu']}">
  113.                     <h:outputText value="#{item['poInternalOuCode']} - #{item['poInternalOuName']}" />
  114.                 </p:column>
  115.    
  116.                 <p:column headerText="#{piece['poInternalNo']}">
  117.                     <h:outputText value="#{item['poInternalNo']}" />
  118.                 </p:column>
  119.    
  120.                 <p:column headerText="#{piece['poNo']}">
  121.                     <h:outputText value="#{item['poNo']}" />
  122.                 </p:column>
  123.    
  124.                 <p:column headerText="#{piece['soOu']}">
  125.                     <h:outputText value="#{item['soOuCode']} - #{item['soOuName']}" />
  126.                 </p:column>
  127.    
  128.                 <p:column headerText="#{piece['soNo']}">
  129.                     <h:outputText value="#{item['soNo']}" />
  130.                 </p:column>
  131.                
  132.             </p:dataTable>
  133.            
  134.         </j:authorize>
  135.            
  136.         <p:confirmDialog header="#{piece['removeItem']}"
  137.             message="#{piece['areYouSure']}" widgetVar="confirmRemoveItemDlg" width="300">
  138.             <p:commandButton value="#{piece['yes']}"
  139.                 actionListener="#{poInternalSoIgsTaggingController.removeItem()}"
  140.                 update="gridPoInternalSoIgsTagging messages" oncomplete="confirmRemoveItemDlg.hide()" />
  141.             <p:commandButton value="#{piece['no']}" type="button"
  142.                 onclick="confirmRemoveItemDlg.hide()" />
  143.         </p:confirmDialog>
  144.            
  145.     </ui:define>
  146.    
  147.     <ui:define name="outsidePart">
  148.    
  149.         <p:dialog id="dlgAddItem" widgetVar="addItemDlg" modal="true"
  150.             header="#{piece['addTaggingPoInternalSoIgs']}" >
  151.             <h:form id="viewAddItem">
  152.                 <p:panel id="dlgViewAddItem">
  153.                        
  154.                     <p:messages id="messages" />
  155.                
  156.                     <h:panelGrid columns="3" style="width: 500px">
  157.  
  158.                         <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
  159.                         <h:outputText value="#{piece['docNoPoInternal']}" />
  160.                         <h:outputText value="#{piece['docNoPo']}" />                   
  161.                        
  162.                         <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
  163.                             taskName="system" comboName="authorizedOUMainBu"
  164.                             args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
  165.                             ajax="true"
  166.                             listener="#{poInternalSoIgsTaggingController.onPoInternalOuChanged}"
  167.                             update=":viewAddItem:comboPoInternal:comboPoInternal :viewAddItem:poNo :viewAddItem:messages" />
  168.                         <jl:autoComplete id="comboPoInternal"
  169.                             value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
  170.                             task="system" comboName="poInternalForPoInternalSoIgsTagging"
  171.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['poInternalOu']['id']},"
  172.                             itemLabel="#{item['docNo']}"
  173.                             label="docNo" styleClass="md" >
  174.                             <p:ajax event="itemSelect"
  175.                                 process=":rootform @this"
  176.                                 ajax="true"
  177.                                 listener="#{poInternalSoIgsTaggingController.onPoInternalChanged}"
  178.                                 update=":viewAddItem:poNo :viewAddItem:messages" />
  179.                         </jl:autoComplete>
  180.                         <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
  181.    
  182.                         <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
  183.                         <h:outputText value="#{piece['docNoSo']}" />
  184.                         <h:outputText />
  185.                        
  186.                         <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
  187.                             comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
  188.                             ajax="true"
  189.                             listener="#{poInternalSoIgsTaggingController.onSoOuChanged}"
  190.                             update=":viewAddItem:comboSo:comboSo :viewAddItem:messages" />
  191.                         <jl:autoComplete id="comboSo"
  192.                             value="#{poInternalSoIgsTaggingController.selected['so']}"
  193.                             task="system" comboName="salesOrderForPoInternalSoIgsTagging"
  194.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['soOu']['id']},"
  195.                             itemLabel="#{item['docNo']}"
  196.                             label="docNo" styleClass="md" >
  197.                             <p:ajax event="itemSelect"
  198.                                 process=":rootform @this"
  199.                                 ajax="true"
  200.                                 listener="#{poInternalSoIgsTaggingController.onSoChanged}"
  201.                                 update=":viewAddItem:messages" />
  202.                         </jl:autoComplete>
  203.                         <h:outputText/>
  204.                        
  205.                         <p:spacer height="10px"/>
  206.                         <h:outputText/>
  207.                         <h:outputText/>
  208.                        
  209.                     </h:panelGrid>
  210.                    
  211.                     <p:commandButton id="addBtn" value="#{piece['add']}"
  212.                         process=":viewAddItem:dlgViewAddItem"
  213.                         update=":rootform:gridPoInternalSoIgsTagging :rootform:messages :viewAddItem:messages"
  214.                         oncomplete="if(args.success){addItemDlg.hide()}"
  215.                         actionListener="#{poInternalSoIgsTaggingController.addItem()}" />
  216.                     <p:defaultCommand target="addBtn" />
  217.                     <p:commandButton id="closeBtn" value="#{piece['close']}"
  218.                         onclick="addItemDlg.hide()" />
  219.                            
  220.                 </p:panel>
  221.             </h:form>
  222.         </p:dialog>
  223.        
  224.         <p:dialog id="dlgEditItem" widgetVar="editItemDlg" modal="true"
  225.             header="#{piece['editTaggingPoInternalSoIgs']}" >
  226.             <h:form id="viewEditItem">
  227.            
  228.                 <p:panel id="dlgViewEditItem">
  229.                
  230.                     <p:messages id="messages"/>
  231.                
  232.                     <h:panelGrid columns="3" style="width: 500px">
  233.  
  234.                         <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
  235.                         <h:outputText value="#{piece['docNoPoInternal']}" />
  236.                         <h:outputText value="#{piece['docNoPo']}" />                   
  237.                        
  238.                         <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
  239.                             taskName="system" comboName="authorizedOUMainBu"
  240.                             args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
  241.                             ajax="true"
  242.                             listener="#{poInternalSoIgsTaggingController.onPoInternalOuChanged}"
  243.                             update=":viewEditItem:comboPoInternal:comboPoInternal :viewEditItem:poNo :viewEditItem:messages" />
  244.                         <jl:autoComplete id="comboPoInternal"
  245.                             value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
  246.                             task="system" comboName="poInternalForPoInternalSoIgsTagging"
  247.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['poInternalOu']['id']},"
  248.                             itemLabel="#{item['docNo']}"
  249.                             label="docNo" styleClass="md" >
  250.                             <p:ajax event="itemSelect"
  251.                                 process=":rootform @this"
  252.                                 ajax="true"
  253.                                 listener="#{poInternalSoIgsTaggingController.onPoInternalChanged}"
  254.                                 update=":viewEditItem:poNo :viewEditItem:messages" />
  255.                         </jl:autoComplete>
  256.                         <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
  257.    
  258.                         <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
  259.                         <h:outputText value="#{piece['docNoSo']}" />
  260.                         <h:outputText />
  261.                        
  262.                         <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
  263.                             comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
  264.                             ajax="true"
  265.                             listener="#{poInternalSoIgsTaggingController.onSoOuChanged}"
  266.                             update=":viewEditItem:comboSo:comboSo :viewEditItem:messages" />
  267.                         <jl:autoComplete id="comboSo"
  268.                             value="#{poInternalSoIgsTaggingController.selected['so']}"
  269.                             task="system" comboName="salesOrderForPoInternalSoIgsTagging"
  270.                             args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['soOu']['id']},"
  271.                             itemLabel="#{item['docNo']}"
  272.                             label="docNo" styleClass="md" >
  273.                             <p:ajax event="itemSelect"
  274.                                 process=":rootform @this"
  275.                                 ajax="true"
  276.                                 listener="#{poInternalSoIgsTaggingController.onSoChanged}"
  277.                                 update=":viewEditItem:messages" />
  278.                         </jl:autoComplete>
  279.                         <h:outputText/>
  280.                        
  281.                         <p:spacer height="10px"/>
  282.                         <h:outputText/>
  283.                         <h:outputText/>
  284.                        
  285.                     </h:panelGrid>
  286.                    
  287.                     <p:commandButton id="saveBtn" value="#{piece['save']}"
  288.                         process=":viewEditItem:dlgViewEditItem"
  289.                         update=":rootform:gridPoInternalSoIgsTagging :rootform:messages :viewEditItem:messages"
  290.                         oncomplete="if(args.success){editItemDlg.hide()}"
  291.                         actionListener="#{poInternalSoIgsTaggingController.editItem()}" />
  292.                     <p:defaultCommand target="saveBtn" />
  293.                     <p:commandButton id="closeBtn" value="#{piece['close']}"
  294.                         onclick="editItemDlg.hide()" />
  295.                            
  296.                 </p:panel>
  297.             </h:form>
  298.         </p:dialog>
  299.        
  300.     </ui:define>
  301.            
  302. </ui:composition>
  303. </html>
Add Comment
Please, Sign In to add comment