<?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.CSH533.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>