<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyu  
    $Date: 2015-11-06 下午16:40:43  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query defaultWhereClause="t1.enabled_flag=&apos;Y&apos;" fetchAll="true" model="basic.gld_currency_v" rootPath="currency_path"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
        	function bgfl_land_save(){
        	    $('bgfl_contract_mortgage_land_ds').submit();
        	}
		]]></script>
        <a:dataSets>
            <a:dataSet id="mortgage_insurance_ds" lookupCode="POLICY_INSURANCE_TYPE"/>
            <a:dataSet id="currency_ds">
                <a:datas dataSource="/model/currency_path"/>
            </a:dataSet>
            <a:dataSet id="bgfl_contract_mortgage_land_ds" loadData="true" model="cont.CON1001.bgfl_contract_mortgage_save">
                <a:fields>
                    <a:field name="mortgage_name" readOnly="true"/>
                    <a:field name="bp_id_mortgagor_n"/>
                    <a:field name="mortgage_type_n" readOnly="true"/>
                    <a:field name="mortgage_ast_classfication_n" readOnly="true"/>
                    <a:field name="mortgage_asset_detail_n" readOnly="true"/>
                    <a:field name="currency_n" displayField="currency_name" options="currency_ds" returnField="currency" valueField="currency_code"/>
                    <a:field name="mortgage_insurance_n" displayField="code_value_name" options="mortgage_insurance_ds" returnField="mortgage_insurance" valueField="code_value"/>
                    <a:field name="data_type" defaultValue="CHANGE"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="bgfl_land_save" text="保存"/>
            </a:screenTopToolbar>
            <a:fieldSet column="1" title="基本信息">
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="mortgage_name" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押物名称" width="430"/>
                    <a:textField name="bp_id_mortgagor_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押人名称" width="430"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="contract_seq" bindTarget="bgfl_contract_mortgage_land_ds" prompt="合同关联序号"/>
                    <a:textField name="mortgage_type_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押类型"/>
                    <a:textField name="mortgage_ast_classfication_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押物分类"/>
                    <a:textField name="mortgage_asset_detail_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="明细分类"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="quantity" bindTarget="bgfl_contract_mortgage_land_ds" prompt="数量"/>
                    <a:textField name="uom" bindTarget="bgfl_contract_mortgage_land_ds" prompt="单位"/>
                    <a:textField name="value" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押物价值（万元）"/>
                    <a:comboBox name="currency_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="币种"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="evaluator_name" bindTarget="bgfl_contract_mortgage_land_ds" prompt="评估机构" width="430"/>
                    <a:textField name="total_value" bindTarget="" prompt="评估价值（万元）"/>
                    <a:textField name="evaluator_number" bindTarget="bgfl_contract_mortgage_land_ds" prompt="评估报告编号"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:comboBox name="mortgage_insurance_n" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押物险种"/>
                    <a:textField name="pledge_month" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押期限（月数）"/>
                    <a:textField name="location" bindTarget="bgfl_contract_mortgage_land_ds" prompt="抵质押物所在地" width="430"/>
                </a:hBox>
            </a:fieldSet>
            <a:fieldSet column="1" title="土地使用权抵押">
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="land_use_right_owner" bindTarget="bgfl_contract_mortgage_land_ds" prompt="土地使用权人" width="430"/>
                    <a:textField name="land_certificate_code" bindTarget="bgfl_contract_mortgage_land_ds" prompt="土地使用证号"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="land_use_rights_type" bindTarget="bgfl_contract_mortgage_land_ds" prompt="土地使用权类型"/>
                    <a:textField name="land_area" bindTarget="bgfl_contract_mortgage_land_ds" prompt="土地面积（平方米）"/>
                    <a:textField name="land_location" bindTarget="bgfl_contract_mortgage_land_ds" prompt="土地坐落"/>
                </a:hBox>
            </a:fieldSet>
            <a:fieldSet column="1" title="在建建筑物信息（附）">
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="land_building_type" bindTarget="bgfl_contract_mortgage_land_ds" prompt="建筑物类型"/>
                    <a:textField name="land_building_location" bindTarget="bgfl_contract_mortgage_land_ds" prompt="在建建筑坐落"/>
                    <a:textField name="land_building_area" bindTarget="bgfl_contract_mortgage_land_ds" prompt="建筑面积（平方米）"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="land_building_structure" bindTarget="bgfl_contract_mortgage_land_ds" prompt="建筑结构"/>
                    <a:textField name="land_building_floor" bindTarget="bgfl_contract_mortgage_land_ds" prompt="已建造层数"/>
                    <a:textField name="land_building_floor_total" bindTarget="bgfl_contract_mortgage_land_ds" prompt="总层数"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="land_building_value" bindTarget="bgfl_contract_mortgage_land_ds" prompt="正在建筑物的价值"/>
                </a:hBox>
            </a:fieldSet>
        </a:screenBody>
    </a:view>
</a:screen>
