<?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_accounts_save(){
        	    $('bgfl_contract_mortgage_accounts_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_accounts_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_accounts_save" text="保存"/>
            </a:screenTopToolbar>
            <a:fieldSet column="1" title="基本信息">
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="mortgage_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押物名称" width="430"/>
                    <a:textField name="bp_id_mortgagor_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押人名称" width="430"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="contract_seq" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="合同关联序号"/>
                    <a:textField name="mortgage_type_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押类型"/>
                    <a:textField name="mortgage_ast_classfication_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押物分类"/>
                    <a:textField name="mortgage_asset_detail_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="明细分类"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="quantity" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="数量"/>
                    <a:textField name="uom" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="单位"/>
                    <a:textField name="value" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押物价值（万元）"/>
                    <a:comboBox name="currency_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="币种"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="evaluator_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="评估机构" width="430"/>
                    <a:textField name="total_value" bindTarget="" prompt="评估价值（万元）"/>
                    <a:textField name="evaluator_number" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="评估报告编号"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:comboBox name="mortgage_insurance_n" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押物险种"/>
                    <a:textField name="pledge_month" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押期限（月数）"/>
                    <a:textField name="location" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="抵质押物所在地" width="430"/>
                </a:hBox>
            </a:fieldSet>
            <a:fieldSet column="1" title="应收账款质押">
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="accounts_contract_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="基础合同名称" width="430"/>
                    <a:textField name="accounts_contract_number" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="基础合同编号"/>
                    <a:textField name="book_value" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="应收账款总额（万元）"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="accounts_debetor_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="债务人名称" width="430"/>
                    <a:textField name="accounts_debetor_address" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="债务人地址" width="430"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="acc_bank_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="指定银行"/>
                    <a:textField name="acc_bank_account_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="账户名称"/>
                    <a:textField name="acc_bank_branch_name" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="指定开户行" width="430"/>
                </a:hBox>
                <a:hBox labelSeparator=" " labelWidth="120">
                    <a:textField name="acc_bank_account_number" bindTarget="bgfl_contract_mortgage_accounts_ds" prompt="账户编号" width="430"/>
                </a:hBox>
            </a:fieldSet>
        </a:screenBody>
    </a:view>
</a:screen>
