<?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="wfl_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="csh537_agent_finance_rank_link" model="csh.CSH537.agent_finance_rank" modelaction="execute"/>
        <script type="text/javascript"><![CDATA[
			window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
			    var finance_rank_d = $('AGENT_FINANCE_RANK_QUERY__ds').getCurrentRecord().get('finance_rank_d');
			    var date_from = $('AGENT_FINANCE_RANK_QUERY__ds').getCurrentRecord().get('date_from');
                var date_to = $('AGENT_FINANCE_RANK_QUERY__ds').getCurrentRecord().get('date_to');
                    Leaf.request({
                        url: $('csh537_agent_finance_rank_link').getUrl(),
                        para: {
                            finance_rank_d: finance_rank_d,
                            date_from: date_from,
                            date_to: date_to
                        },
                        success: function() {
							$('AGENT_FINANCE_RANK_RESULT_con_contract_ds').query();
                        },
                        scope: this
                    });
            };
            Leaf.onReady(function(){
                //Leaf.center('loginForm');
				window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']();
            });
            window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
				$('AGENT_FINANCE_RANK_RESULT_con_contract_layout_grid_id')._export('xls','经销商销量回款比例排行报表');
            };
		]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>