account_query_creation.lview 2.01 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2014-8-1 下午02:44:52  
    $Revision: 1.0  
    $Purpose: 科目明细查询(按凭证创建日期)
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:view>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <script type="text/javascript"><![CDATA[


            Leaf.onReady(function(){
                //Leaf.center('loginForm');
				//window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']();
            });

            window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
                                            var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'gld_accounts');
                                            if (ds == $(ds_id)) {

                                                qpara.account_id = '${/parameter/@account_id}';
                                                qpara.period_from = '${/parameter/@period_from}';
                                                qpara.period_to = '${/parameter/@period_to}';
                                                qpara.account_type = '${/parameter/@account_type}';
                                                //$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
                                            }
                                        };
             window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
             				$('ACCOUNT_CREATION_QUERY_RESULT_gld_accounts_layout_grid_id')._export('xls','科目明细查询报表(按凭证创建日期)');
                         };

		]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>