<?xml version="1.0" encoding="UTF-8"?>
<?jaxfront version=2.50;time=2008-12-09 12:05:33.915;xui=po.xui;xsd=po.xsd;include-pdf=po_PDF.xui;xml=po.xml;?>
<XUI xmlns="http://www.jaxfront.com/xui"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jaxfront.com/xui xui.xsd">
<global>
<style>
<label>
<width>0.2</width>
</label>
<component>
<width>0.8</width>
</component>
<editorPanel>
<showStatusBar>false</showStatusBar>
</editorPanel>
<navigationTree>
<visible>false</visible>
</navigationTree>
</style>
</global>
<component xpath="/purchaseOrder">
<style>
<mode childrenView="tab">
<message/>
</mode>
<layout>
<table>
<row>24.0,,</row>
<row>24.0,,</row>
<row>2.0,,</row>
<row>-2.0,,</row>
<row>10.0,,</row>
<column>,,</column>
<column>,,</column>
<column>,,</column>
<column>,,</column>
<column>,,</column>
<cell dimension="1,0,F,B">
<type>
<xpath>./@orderDate</xpath>
</type>
</cell>
<cell dimension="0,0,F,C">
<type>
<label xpath="./@orderDate"/>
</type>
</cell>
<cell dimension="1,1,F,B">
<type>
<xpath>./deliveryOption</xpath>
</type>
</cell>
<cell dimension="0,1,F,C">
<type>
<label xpath="./deliveryOption"/>
</type>
</cell>
<cell dimension="3,1,F,B,4,1">
<type>
<xpath>./email</xpath>
</type>
</cell>
<cell dimension="2,1,F,C">
<type>
<label xpath="./email"/>
</type>
</cell>
<cell dimension="3,0,F,B">
<type>
<xpath>./express</xpath>
</type>
</cell>
<cell dimension="2,0,F,C">
<type>
<label xpath="./express"/>
</type>
</cell>
<cell dimension="1,3,F,B,4,3">
<type>
<xpath>./comment</xpath>
</type>
</cell>
<cell dimension="0,3,F,T">
<type>
<label xpath="./comment"/>
</type>
</cell>
</table>
</layout>
</style>
</component>
<component xpath="global:SKU">
<style>
<mode isRequired="true">
<message/>
</mode>
</style>
</component>
<component xpath="global:commentType">
<style>
<leaf>
<component multiLine="5"/>
</leaf>
</style>
</component>
<component xpath="/purchaseOrder/billTo"/>
<component xpath="/purchaseOrder/comment">
<style>
<leaf>
<component multiLine="5"/>
</leaf>
</style>
</component>
<component xpath="/purchaseOrder/deliveryOption">
<style>
<leaf>
<component>
<value>
<enumeration>
<codeSet name="deliveryOption">
<url>po.codes</url>
</codeSet>
</enumeration>
</value>
</component>
</leaf>
</style>
<behaviour>
<rule>
<event/>
<condition useInverse="true">
<formulaExpression>nodeValue(".") == "A"</formulaExpression>
</condition>
<action>
<mainAction target="../email">
<uiAction methodName="setVisible">
<param name="param (0)" type="boolean" value="true"/>
</uiAction>
</mainAction>
<inverseAction target="../email">
<uiAction methodName="setVisible">
<param name="param (0)" type="boolean" value="false"/>
</uiAction>
</inverseAction>
</action>
</rule>
</behaviour>
</component>
<component xpath="/purchaseOrder/email">
<behaviour>
<rule>
<event doesConcernNoneSerializableSource="false"/>
<condition showError="true" useInverse="true">
<formulaExpression>!(contains(nodeValue("."), "@") && contains(nodeValue("."), "."))</formulaExpression>
<message>
<classification>warning</classification>
</message>
</condition>
</rule>
</behaviour>
</component>
<component xpath="/purchaseOrder/express">
<style>
<leaf>
<component booleanVisualizer="radioButton"/>
</leaf>
</style>
<behaviour>
<rule>
<event>
<trigger>domInitialized</trigger>
<trigger>propertyChange</trigger>
</event>
<condition useInverse="true">
<formulaExpression>nodeValue(".") == true</formulaExpression>
</condition>
<action>
<mainAction target="../billTo">
<uiAction methodName="setVisible">
<param name="param (0)" type="boolean" value="false"/>
</uiAction>
</mainAction>
</action>
</rule>
</behaviour>
</component>
<component xpath="/purchaseOrder/item">
<style>
<treeEntry>
<occurrence>
<visibility>
<always/>
</visibility>
</occurrence>
</treeEntry>
<layout>
<table>
<row>,,C</row>
<row>,,C</row>
<row>,,C</row>
<column>,,</column>
<column>,,</column>
<column>2.0,,</column>
<column>,,</column>
<column>,,</column>
<column>,,</column>
<cell dimension="1,0,F,C">
<type>
<xpath>./product/@partNum</xpath>
</type>
</cell>
<cell dimension="0,0,F,C">
<type>
<label xpath="./product/@partNum"/>
</type>
</cell>
<cell dimension="3,0,F,C,4,0">
<type>
<xpath>./product/productName</xpath>
</type>
</cell>
<cell dimension="1,1,F,C">
<type>
<xpath>./product/quantity</xpath>
</type>
</cell>
<cell dimension="0,1,F,C">
<type>
<label xpath="./product/quantity"/>
</type>
</cell>
<cell dimension="4,1,F,C">
<type>
<xpath>./product/price</xpath>
</type>
</cell>
<cell dimension="3,1,F,C">
<type>
<label xpath="./product/price"/>
</type>
</cell>
<cell dimension="1,2,F,C">
<type>
<xpath>./shipDate</xpath>
</type>
</cell>
<cell dimension="0,2,F,C">
<type>
<label xpath="./shipDate"/>
</type>
</cell>
</table>
</layout>
</style>
</component>
<component xpath="/purchaseOrder/item[list]">
<style>
<mode viewHolder="parent">
<message/>
</mode>
<list>
<table>
<lineInfo>
<formulaExpression>nodeValue("./product/@partNum")
</formulaExpression>
</lineInfo>
<lineInfo width="80">
<formulaExpression>nodeValue("./product/quantity")</formulaExpression>
</lineInfo>
<lineInfo width="50">
<formulaExpression>nodeValue("./product/price")</formulaExpression>
</lineInfo>
<lineInfo width="70">
<formulaExpression>format(nodeValue("./product/price") * nodeValue("./product/quantity"), "$ #,###.##")</formulaExpression>
</lineInfo>
</table>
</list>
<printing listPrintMode="table"/>
</style>
</component>
<component xpath="/purchaseOrder/paymentMethod">
<style>
<treeEntry>
<occurrence>
<visibility>
<always/>
</visibility>
</occurrence>
</treeEntry>
<choice type="radioButton"/>
</style>
</component>
<component xpath="/purchaseOrder/shipTo">
<style>
<treeEntry>
<popUpClass>com.jaxfront.demo.ui.beans.TestPopUpMenu</popUpClass>
<occurrence>
<visibility>
<always/>
</visibility>
</occurrence>
</treeEntry>
<layout>
<table>
<row>,,C</row>
<row>,,C</row>
<row>,,C</row>
<row>,,C</row>
<column>,L,C</column>
<column>0.1,,C</column>
<column>2.0,,</column>
<column>0.4,,C</column>
<column>0.3,,C</column>
<cell dimension="1,0,F,B,4,0">
<type>
<xpath>./name</xpath>
</type>
</cell>
<cell dimension="0,0,L,T">
<type>
<label text="name" xpath="./name"/>
</type>
</cell>
<cell dimension="1,1,F,C,4,1">
<type>
<xpath>./street</xpath>
</type>
</cell>
<cell dimension="0,1,L,C">
<type>
<label text="street" xpath="./street"/>
</type>
</cell>
<cell dimension="0,2,L,C">
<type>
<label text="city" xpath="./city"/>
</type>
</cell>
<cell dimension="1,2,F,C">
<type>
<xpath>./zip</xpath>
</type>
</cell>
<cell dimension="1,3,F,C,3,3">
<type>
<xpath>./country</xpath>
</type>
</cell>
<cell dimension="0,3,F,C">
<type>
<label text="country" xpath="./country"/>
</type>
</cell>
<cell dimension="3,2,F,C">
<type>
<xpath>./city</xpath>
</type>
</cell>
</table>
</layout>
</style>
</component>
<component xpath="global:Product/productName">
<style>
<leaf>
<component>
<value>
<enumeration>
<codeSet name="products">
<url>po.codes</url>
</codeSet>
</enumeration>
</value>
</component>
</leaf>
</style>
</component>
<component xpath="global:USAddress/country">
<style>
<leaf>
<component>
<value>
<enumeration type="radioButton">
<codeSet name="countries">
<url>po.codes</url>
</codeSet>
</enumeration>
</value>
</component>
</leaf>
</style>
</component>
<component xpath="/purchaseOrder/billTo/street"/>
<component xpath="/purchaseOrder/paymentMethod/cash">
<style>
<mode visible="false">
<message/>
</mode>
</style>
</component>
<component xpath="/purchaseOrder/paymentMethod/cashOnDelivery">
<style>
<mode visible="false">
<message/>
</mode>
</style>
</component>
<component xpath="/purchaseOrder/shipTo/name">
<style>
<leaf>
<component size="35"/>
</leaf>
</style>
<behaviour>
<rule>
<event/>
<condition useInverse="true">
<formulaExpression>contains(nodeValue("."),"jaxfront")</formulaExpression>
</condition>
<action>
<mainAction target="../street">
<propertyChange>
<formulaExpression/>
</propertyChange>
</mainAction>
<inverseAction target="../street"/>
</action>
</rule>
</behaviour>
</component>
<component xpath="/purchaseOrder/item/product/productName">
<style>
<leaf>
<component>
<value>
<enumeration>
<codeSet name="products">
<url>po.codes</url>
</codeSet>
</enumeration>
</value>
</component>
</leaf>
</style>
</component>
<component xpath="/purchaseOrder/paymentMethod/creditCard/expirationDate">
<behaviour>
<rule>
<event doesConcernNoneSerializableSource="false"/>
<condition showError="true" useInverse="true">
<formulaExpression>nodeValue(".") < currentDate()</formulaExpression>
<message>
<classification>info</classification>
</message>
</condition>
</rule>
</behaviour>
</component>
<rule context="/purchaseOrder" id="gh">
<event/>
<action>
<mainAction>
<generalAction>
<formulaExpression>DateTools()</formulaExpression>
</generalAction>
</mainAction>
</action>
</rule>
<rule context="/purchaseOrder" id="modEmail">
<event/>
<condition useInverse="true">
<formulaExpression>nodeValue("/purchaseOrder/express")==true</formulaExpression>
</condition>
<action>
<mainAction target="/purchaseOrder/deliveryOption">
<uiAction methodName="setVisible">
<param name="param (0)" type="boolean" value=""/>
</uiAction>
</mainAction>
</action>
</rule>
</XUI>




  • Keine Stichwörter