<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing529  
    $Date: 2014-8-28 下午01:07:59  
    $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="hls_mortgage_create_link" url="${/request/@context_path}/modules/hls/HLS216N/hls_mortgage_create.lview"/>
        <a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <script type="text/javascript"><![CDATA[
            window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
                var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_mortgage');
                var record = $(ds_id).getCurrentRecord();
                if ($(ds_id).validate()) {
                    record.set('function_code', 'HLS216D');
                    record.set('default_value_dsid', ds_id);
                    record.set('function_usage', 'CREATE');
                    record.set('master_type', 'MORTGAGE');
                    record.data['url_title'] = '${l:HLS216.WIN_TITLE.MORTGAGE_CREATE}';
                    var param = record.data;
                    hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_mortgage_create_link');
                }
            };
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>
