csh_bank_check.lview 2.9 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
    	    function csh_bank_query(){
    	        $('csh_bank_check_ds').query();
    	    }
    	    
    	    function csh_bank_confirm(){
    	        var record = $('csh_bank_check_ds').getAt(0);
                $('${/parameter/@lovid}').commit(record);
    	    }
    	    
    	    function griddbclick(grid, record, row, name) {
    	        //
                $('${/parameter/@lovid}').commit(record);
            }
    	    
    	]]></script>
        <a:dataSets>
            <a:dataSet id="csh_bank_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="bank_account_name"/>
                    <a:field name="bank_account_num"/>
                    <a:field name="current_company" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="csh_bank_check_ds" autoPageSize="true" autoQuery="true" model="csh.CSH533N.csh_create_receipt_trx_account_lov" queryDataSet="csh_bank_query_ds">
                <a:fields>
                    <a:field name="current_company"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="3" title="查询条件" width="770">
                <a:textField name="bank_account_name" bindTarget="csh_bank_query_ds" prompt="账户名"/>
                <a:textField name="bank_account_num" bindTarget="csh_bank_query_ds" prompt="银行账户"/>
                <a:checkBox name="current_company" bindTarget="csh_bank_query_ds" prompt="跨公司账户"/>
                <!--        <a:events >
                        <a:event name="change" handler="csh_bank_query" />
                    </a:events>
                </a:checkBox> -->
            </a:form>
            <a:hBox>
                <a:button click="csh_bank_query" text="查询"/>
                <a:button click="csh_bank_confirm" text="确定"/>
                <!-- <a:button click="csh_bank_cancel"  text="取消" /> -->
            </a:hBox>
            <a:grid bindTarget="csh_bank_check_ds" height="330" navBar="true" width="770">
                <a:columns>
                    <a:column name="company_name" width="100"/>
                    <a:column name="bank_account_name" width="200"/>
                    <a:column name="bank_account_num" width="150"/>
                    <a:column name="bank_full_name" width="120"/>
                    <a:column name="bank_branch_name" width="120"/>
                    <a:column name="currency_code" width="60"/>
                </a:columns>
                <a:events>
                    <a:event name="dblclick" handler="griddbclick"/>
                </a:events>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>