<?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="con600_overdue_analyse_date_link" model="cont.CON600.contract_overdue_analyse" modelaction="execute"/>
        <script type="text/javascript"><![CDATA[
			window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
                var analyse_date = $('CONTRACT_OVERDUE_QUERY_F_QUERY_HD__ds').getCurrentRecord().get('analyse_date');
                var region = $('CONTRACT_OVERDUE_QUERY_F_QUERY_HD__ds').getCurrentRecord().get('region');
                var work_province = $('CONTRACT_OVERDUE_QUERY_F_QUERY_HD__ds').getCurrentRecord().get('work_province');
                if(!analyse_date){
                    Leaf.showMessage('提示','分析日期不能为空！');
                    return;
                }
                window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
                    Leaf.request({
                        url: $('con600_overdue_analyse_date_link').getUrl(),
                        para: {
                            analyse_date: analyse_date,
                            region: region,
                            work_province: work_province
                        },
                        success: function() {
							window['${/parameter/@layout_code}_QUERY_LAYOUT_DYNAMIC_CLICK']();
							window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        },
                        scope: this
                    });
            };
            Leaf.onReady(function(){
                //Leaf.center('loginForm');
				window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']();
            });
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>
