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">
- <ui:composition template="/WEB-INF/layouts/browse.xhtml">
- <ui:define name="headPart">
- <j:lang id="lang" prefix="org.jleaf.erp.fin.web" />
- <title>#{piece['taggingPoInternalSoIgs']}</title>
- <script>
- $(document).ready(function() {
- doSelectOu();
- });
- </script>
- </ui:define>
- <ui:define name="pageTitle">
- <span>#{piece['taggingPoInternalSoIgs']}</span>
- </ui:define>
- <ui:define name="filter">
- <input type="hidden" value="#{poInternalSoIgsTaggingController}" />
- <p:remoteCommand name="doSelectOu" process=":rootform:comboPoInternalOu:comboPoInternalOu :rootform:comboSoOu:comboSoOu" />
- <ui:include src="includes/menuForPoInternalSoIgsTagging.xhtml">
- <ui:param name="active" value="taggingPoInternalSoIgs" />
- </ui:include>
- <j:authorize task="viewPoInternalSoIgsTagging">
- <p:messages id="messages" autoUpdate="true" />
- <h:panelGrid columns="3">
- <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
- <h:outputText value="#{piece['docNoPoInternal']}" />
- <h:outputText value="#{piece['docNoPo']}" />
- <jl:comboBox id="comboPoInternalOu" value="#{filterBean.data['poInternalOu']}"
- taskName="system" comboName="authorizedOUMainBu"
- args=",,Y" itemLabel="#{item['code']} / #{item['name']}" />
- <p:inputText value="#{filterBean.data['poInternalNo']}" />
- <p:inputText value="#{filterBean.data['poNo']}" />
- <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
- <h:outputText value="#{piece['docNoSo']}" />
- <h:outputText />
- <jl:comboBox id="comboSoOu" value="#{filterBean.data['soOu']}" taskName="system"
- comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"/>
- <p:inputText value="#{filterBean.data['soNo']}" />
- <h:outputText/>
- <p:spacer height="10px"/>
- <h:outputText/>
- <h:outputText/>
- <p:commandButton icon="ui-icon ui-icon-search" id="searchBtn"
- value="#{piece['search']}" ajax="true"
- action="#{poInternalSoIgsTaggingController.doSearch()}"
- update=":rootform:gridPoInternalSoIgsTagging" />
- <p:defaultCommand target="searchBtn" />
- <h:outputText/>
- </h:panelGrid>
- </j:authorize>
- </ui:define>
- <ui:define name="content">
- <j:authorize task="viewPoInternalSoIgsTagging">
- <p:spacer height="35px" width="0px"/>
- <p:commandButton value="#{piece['add']}"
- oncomplete="addItemDlg.show()" icon="ui-icon ui-icon-plus"
- rendered="#{auth.task('createPoInternalSoIgsTagging')}"
- update=":viewAddItem"
- actionListener="#{poInternalSoIgsTaggingController.initAdd()}" />
- <p:dataTable id="gridPoInternalSoIgsTagging"
- var="item" paginator="true" rows="25" lazy="true"
- paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
- rowsPerPageTemplate="25,50,100"
- rowKey="#{item['id']}" value="#{poInternalSoIgsTaggingController.model}" >
- <p:column style="width:100px" headerText="#{piece['action']}">
- <p:commandLink id="btnEdit"
- oncomplete="editItemDlg.show()" update=":viewEditItem"
- actionListener="#{poInternalSoIgsTaggingController.initEdit(item)}"
- rendered="#{auth.task('createPoInternalSoIgsTagging')}" >
- <h:graphicImage library="images" name="common/edit.png"
- title="#{piece['edit']}" />
- </p:commandLink>
- <p:spacer width="5px" />
- <p:commandLink id="btnRemove" onclick="confirmRemoveItemDlg.show()"
- actionListener="#{poInternalSoIgsTaggingController.initRemove(item)}"
- rendered="#{auth.task('removePoInternalSoIgsTagging')}" >
- <h:graphicImage library="images" name="common/delete.png"
- title="#{piece['remove']}" />
- </p:commandLink>
- </p:column>
- <p:column headerText="#{piece['poInternalOu']}">
- <h:outputText value="#{item['poInternalOuCode']} - #{item['poInternalOuName']}" />
- </p:column>
- <p:column headerText="#{piece['poInternalNo']}">
- <h:outputText value="#{item['poInternalNo']}" />
- </p:column>
- <p:column headerText="#{piece['poNo']}">
- <h:outputText value="#{item['poNo']}" />
- </p:column>
- <p:column headerText="#{piece['soOu']}">
- <h:outputText value="#{item['soOuCode']} - #{item['soOuName']}" />
- </p:column>
- <p:column headerText="#{piece['soNo']}">
- <h:outputText value="#{item['soNo']}" />
- </p:column>
- </p:dataTable>
- </j:authorize>
- <p:confirmDialog header="#{piece['removeItem']}"
- message="#{piece['areYouSure']}" widgetVar="confirmRemoveItemDlg" width="300">
- <p:commandButton value="#{piece['yes']}"
- actionListener="#{poInternalSoIgsTaggingController.removeItem()}"
- update="gridPoInternalSoIgsTagging messages" oncomplete="confirmRemoveItemDlg.hide()" />
- <p:commandButton value="#{piece['no']}" type="button"
- onclick="confirmRemoveItemDlg.hide()" />
- </p:confirmDialog>
- </ui:define>
- <ui:define name="outsidePart">
- <p:dialog id="dlgAddItem" widgetVar="addItemDlg" modal="true"
- header="#{piece['addTaggingPoInternalSoIgs']}" >
- <h:form id="viewAddItem">
- <p:panel id="dlgViewAddItem">
- <p:messages id="messages" />
- <h:panelGrid columns="3" style="width: 500px">
- <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
- <h:outputText value="#{piece['docNoPoInternal']}" />
- <h:outputText value="#{piece['docNoPo']}" />
- <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
- taskName="system" comboName="authorizedOUMainBu"
- args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onPoInternalOuChanged}"
- update=":viewAddItem:comboPoInternal:comboPoInternal :viewAddItem:poNo :viewAddItem:messages" />
- <jl:autoComplete id="comboPoInternal"
- value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
- task="system" comboName="poInternalForPoInternalSoIgsTagging"
- args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['poInternalOu']['id']},"
- itemLabel="#{item['docNo']}"
- label="docNo" styleClass="md" >
- <p:ajax event="itemSelect"
- process=":rootform @this"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onPoInternalChanged}"
- update=":viewAddItem:poNo :viewAddItem:messages" />
- </jl:autoComplete>
- <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
- <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
- <h:outputText value="#{piece['docNoSo']}" />
- <h:outputText />
- <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
- comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onSoOuChanged}"
- update=":viewAddItem:comboSo:comboSo :viewAddItem:messages" />
- <jl:autoComplete id="comboSo"
- value="#{poInternalSoIgsTaggingController.selected['so']}"
- task="system" comboName="salesOrderForPoInternalSoIgsTagging"
- args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['soOu']['id']},"
- itemLabel="#{item['docNo']}"
- label="docNo" styleClass="md" >
- <p:ajax event="itemSelect"
- process=":rootform @this"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onSoChanged}"
- update=":viewAddItem:messages" />
- </jl:autoComplete>
- <h:outputText/>
- <p:spacer height="10px"/>
- <h:outputText/>
- <h:outputText/>
- </h:panelGrid>
- <p:commandButton id="addBtn" value="#{piece['add']}"
- process=":viewAddItem:dlgViewAddItem"
- update=":rootform:gridPoInternalSoIgsTagging :rootform:messages :viewAddItem:messages"
- oncomplete="if(args.success){addItemDlg.hide()}"
- actionListener="#{poInternalSoIgsTaggingController.addItem()}" />
- <p:defaultCommand target="addBtn" />
- <p:commandButton id="closeBtn" value="#{piece['close']}"
- onclick="addItemDlg.hide()" />
- </p:panel>
- </h:form>
- </p:dialog>
- <p:dialog id="dlgEditItem" widgetVar="editItemDlg" modal="true"
- header="#{piece['editTaggingPoInternalSoIgs']}" >
- <h:form id="viewEditItem">
- <p:panel id="dlgViewEditItem">
- <p:messages id="messages"/>
- <h:panelGrid columns="3" style="width: 500px">
- <h:outputText value="#{piece['ouBusinessUnitForPoInternal']}" />
- <h:outputText value="#{piece['docNoPoInternal']}" />
- <h:outputText value="#{piece['docNoPo']}" />
- <jl:comboBox id="comboPoInternalOu" value="#{poInternalSoIgsTaggingController.selected['poInternalOu']}"
- taskName="system" comboName="authorizedOUMainBu"
- args=",,Y" itemLabel="#{item['code']} / #{item['name']}"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onPoInternalOuChanged}"
- update=":viewEditItem:comboPoInternal:comboPoInternal :viewEditItem:poNo :viewEditItem:messages" />
- <jl:autoComplete id="comboPoInternal"
- value="#{poInternalSoIgsTaggingController.selected['poInternal']}"
- task="system" comboName="poInternalForPoInternalSoIgsTagging"
- args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['poInternalOu']['id']},"
- itemLabel="#{item['docNo']}"
- label="docNo" styleClass="md" >
- <p:ajax event="itemSelect"
- process=":rootform @this"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onPoInternalChanged}"
- update=":viewEditItem:poNo :viewEditItem:messages" />
- </jl:autoComplete>
- <p:inputText value="#{poInternalSoIgsTaggingController.selected['poInternal']['poNo']}" readonly="true" id="poNo" />
- <h:outputText value="#{piece['ouBusinessUnitForSo']}" />
- <h:outputText value="#{piece['docNoSo']}" />
- <h:outputText />
- <jl:comboBox id="comboSoOu" value="#{poInternalSoIgsTaggingController.selected['soOu']}" taskName="system"
- comboName="authorizedOUMainBuOrBranch" args=",,Y" itemLabel="#{item['name']}"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onSoOuChanged}"
- update=":viewEditItem:comboSo:comboSo :viewEditItem:messages" />
- <jl:autoComplete id="comboSo"
- value="#{poInternalSoIgsTaggingController.selected['so']}"
- task="system" comboName="salesOrderForPoInternalSoIgsTagging"
- args="#{loginController.getCurrentTenantId()},#{poInternalSoIgsTaggingController.selected['soOu']['id']},"
- itemLabel="#{item['docNo']}"
- label="docNo" styleClass="md" >
- <p:ajax event="itemSelect"
- process=":rootform @this"
- ajax="true"
- listener="#{poInternalSoIgsTaggingController.onSoChanged}"
- update=":viewEditItem:messages" />
- </jl:autoComplete>
- <h:outputText/>
- <p:spacer height="10px"/>
- <h:outputText/>
- <h:outputText/>
- </h:panelGrid>
- <p:commandButton id="saveBtn" value="#{piece['save']}"
- process=":viewEditItem:dlgViewEditItem"
- update=":rootform:gridPoInternalSoIgsTagging :rootform:messages :viewEditItem:messages"
- oncomplete="if(args.success){editItemDlg.hide()}"
- actionListener="#{poInternalSoIgsTaggingController.editItem()}" />
- <p:defaultCommand target="saveBtn" />
- <p:commandButton id="closeBtn" value="#{piece['close']}"
- onclick="editItemDlg.hide()" />
- </p:panel>
- </h:form>
- </p:dialog>
- </ui:define>
- </ui:composition>
- </html>
Add Comment
Please, Sign In to add comment