Revision history [back]

click to hide/show revision 1
initial version

answered 2011-11-11 01:37:11 +0800

dorr gravatar image dorr

<?xml version="1.0" encoding="UTF-8"?>
<?page title="Customer Details" contentType="text/html;charset=UTF-8"?>
<zk>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window id="win_CustDetails" width="100%" border="normal" apply="${customerController}" height="400px"> 
    <style src="/css/zk/zk.css"/>                               
    <borderlayout height="6%" >
        <west width="100%" border="none">
            <groupbox> 
                <grid>          
                    <rows>
                        <row><label value="Company:"/>
                             <listbox id="companyListBox" mold="select" rows="1" tooltiptext="Select a Company"/>
                             <label value="Customer Id:"/>
                             <label id="customerId"/>
                        </row>                          
                    </rows>
                </grid>
            </groupbox> 
        </west>
        <east width="50%" border="none">                    
            <div class="messageTxt">
                <label id="successMsg"/>
            </div>                              
        </east>
    </borderlayout>                                                                                             
    <borderlayout height="75%">
        <west width="50%" border="none">
            <borderlayout>
                <north height="50%" border="0">                                         
                    <groupbox>              
                        <caption width="100%" label="Customer Name References" zclass="caption"/>                       
                        <borderlayout height="150px">                                       
                            <center>        
                                <listbox id="custNameListBox" vflex="true" style="overflow:auto">       
                                    <listhead sizable="true">
                                        <listheader label="Action" width="80px"/>                                               
                                        <listheader label="Type" sort="auto(nameTypeCde)"/>                                 
                                        <listheader label="Name" sort="auto(lastNameTxt)"/>     
                                        <listheader label="Position" sort="auto(namePositionCde)"/>                             
                                    </listhead>             
                                </listbox>
                            </center>
                        </borderlayout>
                        <div align="center">
                            <hbox>                                                      
                                <button id="addName"  label="Add Name"></button>                                                
                            </hbox>
                        </div>
                    </groupbox>
                </north>
                <south height="50%" border="none"> 
                    <groupbox>              
                        <caption width="100%" label="Customer Defaults" zclass="caption"/>                      
                        <borderlayout height="150px">                                       
                            <center>    
                                <listbox id="custDefaultsListBox" vflex="true" style="overflow:auto">       
                                    <listhead sizable="true">
                                        <listheader label="Action" width="80px"/>                                               
                                        <listheader label="Type" sort="auto(defaultTypeCde)"/>                                  
                                        <listheader label="Default Value" sort="auto(typeCdeDescTxt)"/>                             
                                    </listhead>             
                                </listbox>
                            </center>
                        </borderlayout>
                        <div align="center">
                            <hbox>                                                      
                                <button id="addDefault"  label="Add Default"></button>                                              
                            </hbox>
                        </div>
                    </groupbox>
                </south>
            </borderlayout>
        </west>     
        <east width="50%" border="none">
            <borderlayout height="100%">
                <north height="40%" border="0">
                    <groupbox>          
                        <caption width="100%" label="Notes" zclass="caption"/>
                        <borderlayout height="130px">                                       
                            <center border="none">                  
                                <listbox id="custNotesListBox" vflex="true" style="overflow:auto">      
                                    <listhead sizable="true">
                                        <listheader label="Action" width="80px"/>           
                                        <listheader label="Date" width="90px" />                                                            
                                        <listheader label="Type" width="150px" />
                                        <listheader label="Note"/>                              
                                    </listhead>             
                                </listbox>
                            </center>
                        </borderlayout>
                        <div align="center">
                                <hbox>                                                      
                                    <button id="addNote"  label="Add Note"></button>                                                
                                </hbox>
                        </div>
                    </groupbox>
                </north>
                <center border="none">
                    <groupbox>
                        <caption width="100%" label="Financial Log" zclass="caption"/>                              
                        <borderlayout height="150px">                                       
                            <center>
                                <listbox height="150px" id="financialLogListBox" style="overflow:auto">     
                                    <listhead sizable="true">
                                        <listheader label="Action" width="80px"/>                                                                       
                                        <listheader label="Type" width="200px" />                                                                   
                                    </listhead>             
                                </listbox>
                            </center>
                        </borderlayout>                                                                                         
                    </groupbox>
                </center>
                <south border="none" height="90px">
                    <groupbox>
                        <caption width="100%" label="Audit Information" zclass="caption"/>
                        <grid>                                              
                            <rows>
                                <row>   
                                    <label value="Created:"/><label id="createUser" /><label id="createDate"/>
                                </row>
                                <row>
                                    <label value="Update:"/><label id="updateUser" /><label id="updateDate"/>
                                </row>
                            </rows>
                        </grid>
                    </groupbox>
                </south>
            </borderlayout>                     
        </east>                                 
    </borderlayout>
    <div align="center">
        <hbox>                                                      
            <button id="Save"   label="Save"></button>
            <button id="cancel" label="Cancel"></button>
            <label id="createId" visible="false"/>                              
        </hbox>
    </div>  
    <groupbox>
        <listbox id="errorListBox" mold="paging" pageSize="5" visible="false">
            <listhead sizable="true" zclass="errorList">
                <listheader label="Error Field"/>
                <listheader label="Error Message"/>
            </listhead>
        </listbox>                          
    </groupbox>
</window>  
</zk>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More