<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationenabled="true" dynamiccreateenabled="true" trace="true">
    <a:init-procedure>
        <a:model-query defaultwhereclause="t.change_req_id = ${/parameter/@change_req_id}" model="cont.CON731.change_wfl_type" rootpath="wfl_type"/>
    </a:init-procedure>
    <a:view>
        <a:link id="con731_quote_link" url="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"/>
        <a:link id="con731_quote_calc_link" model="cont.CON731.calc_change_req" modelaction="execute"/>
        <a:link id="con731_calc_change_data_link" model="cont.CON731.calc_ccr_data" modelaction="execute"/>
        <a:link id="con731_calc_change_data_et_link" model="cont.CON731.calc_ccr_et_data" modelaction="execute"/>
        <a:link id="con731_submit_link" model="cont.CON731.submit_change_req" modelaction="execute"/>
        <a:link id="con731_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
        <a:link id="con543_prj_secify_approver_link" url="${/request/@context_path}/modules/prj/PRJ501N/cus_hls_specify_approver.lview"/>
        <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_con731_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
        <a:link id="${/parameter/@layout_code}${/parameter/@tree_code}_con731_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
        <a:screen-include screen="modules/layout/flexible_UI.lview?layout_code=CCR_UNIVERSAL&amp;winid=${/parameter/@winid}"/>
        <style><![CDATA[
.layout_gridbox_button_hide .gridbox-close-button,.layout_gridbox_button_hide .gridbox-button{display:none}
]]></style>
        <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_SAVE_LAYOUT_DYNAMIC_CLICK']=function(nextStep){
	window['CCR_UNIVERSAL_lock_layout_dynamic_window']();
	var root_ds=$('CCR_UNIVERSAL_virtual_ds');
	window['CCR_UNIVERSAL_ignore_required_before_save']();
    if (root_ds.validate()) {
        var winid = 'hls_doc_get_layout_code_winid';
        var root_record = root_ds.getCurrentRecord();
        root_ds.setSubmitParameter('layout_code', 'CCR_UNIVERSAL');
        function ON_LAYOUT_DYNAMIC_BEFORE_SAVE(){
        	root_ds.un('beforesubmit',ON_LAYOUT_DYNAMIC_BEFORE_SAVE);
        	var flag = false;
        	for (var name in root_record.data) {
                if (root_record.data[name].data[0].ds && root_record.data[name].data[0].ds instanceof $L.DataSet) {
                    var current_record = root_record.data[name].data[0].ds.getCurrentRecord();
                    flag = window['CCR_UNIVERSAL_on_layout_dynamic_before_submit'](root_record.data[name].data[0].ds, current_record);
                }
            }
            if(!flag){
            	UN_SUBMIT_REF_FUNCTION();
            }
        	return flag;
        }
        
        function UN_SUBMIT_REF_FUNCTION(){
			root_ds.un('submitsuccess', ON_LAYOUT_DYNAMIC_INNER_SUBMITSUCCESS);
	        root_ds.un('submitfailed', ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED);
	    	root_ds.un('submiterror', ON_LAYOUT_DYNAMIC_INNER_SUBMITERROR);
		}
	
		function ON_LAYOUT_DYNAMIC_INNER_SUBMITSUCCESS(ds, res) {
	        UN_SUBMIT_REF_FUNCTION();
	        window['CCR_UNIVERSAL_on_layout_dynamic_submitsuccess'](ds,root_record,res);
	        if (typeof(nextStep) == 'function') {
	            nextStep(ds);
	        }
	    }
	    function ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED(){
	    	UN_SUBMIT_REF_FUNCTION();
	    	window['CCR_UNIVERSAL_unlock_layout_dynamic_window']();
	    	
	    }
	    function ON_LAYOUT_DYNAMIC_INNER_SUBMITERROR(){
	    	UN_SUBMIT_REF_FUNCTION();
	    	window['CCR_UNIVERSAL_unlock_layout_dynamic_window']();
	    	
	    }
	    root_ds.on('beforesubmit',ON_LAYOUT_DYNAMIC_BEFORE_SAVE);
	    root_ds.on('submitsuccess', ON_LAYOUT_DYNAMIC_INNER_SUBMITSUCCESS);
	    root_ds.on('submitfailed', ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED);
	    root_ds.on('submiterror', ON_LAYOUT_DYNAMIC_INNER_SUBMITERROR);

    	root_ds.submit();
    }else{
    	window['CCR_UNIVERSAL_unlock_layout_dynamic_window']();
    }
};
window['CCR_UNIVERSAL_EXIT_LAYOUT_DYNAMIC_CLICK']=function(){
	if('hls_doc_get_layout_code_winid'){
    	$('hls_doc_get_layout_code_winid').close();
    }else{
    	 location.href = '/cus/home_page.lview';
         parent.shMenu('show');
    }
};
window['CCR_UNIVERSAL_all_parameters']={"pay_to_vendor":"165771.86","print_times":"14","contract_status":"INCEPT","url_title":"变更申请","deposit":"90000","project_id_c":"FL15000719","bp_id_tenant_name":"周耀文","net_total_interest":"19251.82","hd_user_col_v07":"FS15000381","document_type":"CONLB","irr_after_tax":"0.0907","business_type_2nd":"CON_CHANGE","total_fee":"8000","int_rate_type":"FIXED","vat_input":"0","biz_day_convention":"0","project_id_n":"段震华+周耀文","finance_amount":"464000","lease_item_amount":"500000","contract_name":"段震华+周耀文","early_termination_profile":"DISCOUNT_STD","net_total_rental":"483251.82","con_search_term_2":"","search_term_1":"FS15000381","rounding_method":"2","penalty_profile":"PENALTY_STD","down_payment":"50000","balloon_ratio":"0","flt_simulate_step":"0.001","billing_method":"L_RENTAL","int_rate_implicit":"0.00416667210879","flt_rate_adj_method_n":"单位调整额","flt_annual_adj_times_n":"年","contract_status_n":"起租","user_status_3":"UNDEFINE","user_status_1_n":"审核中","user_status_2":"UNDEFINE","flt_execute_times_rule":"LEASE_YEAR","user_status_1":"APPROVING","exchange_rate_type_n":"手工","early_termination_profile_n":"未到期租金贴现","int_rate_type_n":"固定","billing_status":"NOT","business_type":"LEASEBACK","annual_pay_times_n":"月","document_type_2nd":"CCHAG","overdue_amount":"60815.58","total_rental":"486524.64","bp_class_n":"自然人","delivery_type_n":"自提","lease_mgt_fee_rule_n":"租赁年初剩余本金","flt_execute_times_rule_n":"按租赁年度","down_payment_ratio":"0.1","pmt":"20271.86","net_finance_amount":"464000","lease_times":"24","unit_id":"41","sale_assistant_id_n":"潘超","vat_rate":"0","base_rate_type":"PBOC","lease_organization_n":"业务部","signing_date":"2015-03-03 00:00:00","version":"1","currency":"CNY","calc_with_residual_value":"N","delivery_status":"NOT","division":"10","ccr_times":"0","lease_charge":"4500","int_rate_precision":"14","third_party_deposit":"0","exchange_rate_type":"MANUAL","sale_assistant_id":"264","annual_pay_times":"12","function_usage":"MODIFY","exchange_rate":"1","net_lease_item_amount":"500000","annual_mean_rate":"0.0329","legal_fee_count":"0","contract_id":"31689","grace_period":"7","version_date":"2015-03-30 00:00:00","bp_id_tenant":"3365","insurance_fee":"5000","data_class":"NORMAL","lease_start_date":"2015-01-01","bp_id_vender_n":"吴江之星汽车销售服务有限公司","contract_amount":"544524.64","exchange_rate_quotation":"DIRECT QUOTATION","bp_id_tenant_n":"周耀文","inception_category":"LEASE_DELIVERY","collector_user_id":"546","flt_simulate_range":"0.02","vat_finance_amount":"0","net_total_fee":"4700.85","layout_debugger_flag":"Y","int_rate":"0.05","lease_mgt_fee_rule":"OUTSTANDING_PRINCIPAL","ccr_total_amt":"0","tax_type_id_n":"17%增值税-销项","residual_value":"1000","rounding_method_n":"精确至分位","calc_session_id":"5390","prj_search_term_1":"","prj_search_term_2":"","pay_type_n":"先付","calc_type":"CLASSIC_CALCULATOR","vat_total_interest":"3272.82","pay_type":"1","cond_para4":"N","bp_tenant_type_p":"TN_INTERNAL","cond_para5":"Y","employee_id":"2332","employee_id_n":"段震华","currency_n":"人民币","document_category_n":"租赁合同","collector_user_id_n":"周鑫","flt_unit_adj_amt":"20","deposit_deduction_n":"最后一期租金","lease_mgt_fee":"2500","lease_channel":"16","version_reason":"CONTRACT_CREATION","winid":"hls_doc_get_layout_code_winid","inception_category_n":"交付起租","lease_item_cost":"500000","employee_phone":"0512-36633057","balloon":"0","function_code":"CON731D","bp_class":"NP","flt_rate_adj_method":"UNIT_AMT","project_id":"31558","deposit_ratio":"0.194","hd_user_col_n15":"14000","owner_user_id":"425","vat_total_fee":"799.15","vat_total_rental":"3272.82","price_list":"","inception_of_lease":"2015-01-01 00:00:00","company_id":"2145","biz_day_convention_n":"不调整","delivery_type":"ARAYACAK","tax_type_id":"3","price_list_n":"auto general","irr":"0.1099","version_display":"v1","flt_rate_profile":"STD_UNIT_AMT","overdue_times":"24","total_interest":"22524.64","division_n":"Auto","cdd_list_id":"3483","document_category":"CONTRACT","company_id_n":"利星行融资租赁(中国)有限公司","lease_organization":"1000","penalty_total_base_ratio":"0.95","billing_method_n":"直租租金票","residual_ratio":"0","deposit_deduction":"1","document_type_p":"PRJLB","bp_vender_type_p":"V_NONCAPTIVE","document_type_n":"回租合同","layout_code":"CCR_UNIVERSAL","change_req_id":"31689","flt_annual_adj_times":"1","flt_rate_profile_n":"固定调整额","hd_user_col_n02":"1","hd_user_col_n03":"0","print_status":"PRINTED","hd_user_col_n01":"1","penalty_calc_base":"EACH","fin_income_recognize_method":"INT_ACCRUAL_BASIS","ccr_total_amt_acl":"0","insurance_fee_financing":"5000","pay_times":"24","base_rate_type_n":"人民银行贷款基准利率","vat_flag":"Y","lease_channel_n":"Dealer-Retail","usage_type":"","flt_delay_execute_period":"1","unit_id_n":"业务部","business_type_n":"售后回租","serial_number":"","lease_end_date":"2016-12-31 00:00:00","lease_mgt_fee_ratio":"0.002694","contract_number":"CON1503300062","overdue_status":"N","lease_term":"2","penalty_rate":"0.001","lease_charge_ratio":"0.0151","maintain_type":"UPDATE","calc_method":"CNY_IMPLICIT_LB"};

            window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function() {
                var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
                var req_record = $(req_ds_id).getAt(0);
                var calc_session_id = req_record.get('calc_session_id');
                var quo_win;
                var calc_type = 'CLASSIC_CALCULATOR';
                var document_category = req_record.get('document_category');
                if ($(req_ds_id).validate()) {
                    if (req_record.dirty) {
                        Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
                        return;
                    }
                    window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                    Leaf.request({
                        url: $('con731_quote_calc_link').getUrl(),
                        para: {
                            change_req_id: ${/parameter/@change_req_id},
                            calc_session_id: calc_session_id
                        },
                        success: function(res) {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            req_record.set('calc_session_id', res.result.calc_session_id);
                            req_record.dirty = false;
                            quo_win = new Leaf.Window({
                                id: '${/parameter/@layout_code}_hls_fin_calc_quotation_link_winid',
                                params: {
                                    document_id: ${/parameter/@change_req_id},
                                    document_category: document_category,
                                    maintain_type: 'UPDATE',
                                    calc_session_id: res.result.calc_session_id,
                                    quotation_id: null,
                                    dsId: req_ds_id,
                                    winId: '${/parameter/@layout_code}_hls_fin_calc_quotation_link_winid',
                                    global_flag: 'Y',
                                    id_num: 0,
                                    calc_type: calc_type,
                                    recreate_L_formula: 'N'
                                },
                                url: $('con731_quote_link').getUrl(),
                                fullScreen: true,
                                draggable: true
                            });
                            quo_win.addListener('close', function() {
                                $(req_ds_id).query();
                            });
                        },
                        failure: function() {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        },
                        error: function() {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        },
                        scope: this
                    });
                }
            };
            window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
                var req_type = '${/parameter/@document_type_2nd}';
                if (name == 'ccr_start_times') {
                    if (value && req_type != 'ET') {
                        window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                        Leaf.request({
                            url: $('con731_calc_change_data_link').getUrl(),
                            para: {
                                contract_id: ${/parameter/@change_req_id},
                                ccr_start_times: value
                            },
                            success: function(res) {
                                record.set('ccr_outstanding_prin_tax_incld', res.result.ccr_outs_prin_tax_incld);
                                record.set('ccr_outstanding_prin_ti_total', res.result.ccr_outs_prin_ti_total);
                                record.set('ccr_overdue_rental', res.result.ccr_overdue_rental);
                                record.set('ccr_penalty', res.result.ccr_penalty);
                                record.set('ccr_outstanding_times', res.result.ccr_outstanding_times);
                                record.set('ccr_outstanding_rental', res.result.ccr_outstanding_rental);
                                record.set('ccr_fee', res.result.ccr_fee);
                                record.set('parameter', res.result.parameter);
                                record.set('et_interest', res.result.et_interest);
                                record.set('legal_fee', res.result.legal_fee);
                                record.set('ccr_deposit_balance', res.result.ccr_deposit_balance);
            
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            failure: function() {
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            error: function() {
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            scope: this
                        });
                    }
                } else if (name == 'et_date') {
                    if (req_type == 'ET' && value) {
                        window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                        Leaf.request({
                            url: $('con731_calc_change_data_et_link').getUrl(),
                            para: {
                                contract_id: ${/parameter/@change_req_id},
                                et_date: value
                            },
                            success: function(res) {
                                record.set('ccr_outstanding_prin_tax_incld', res.result.ccr_outs_prin_tax_incld);
                                record.set('ccr_outstanding_prin_ti_total', res.result.ccr_outs_prin_ti_total);
                                record.set('ccr_overdue_rental', res.result.ccr_overdue_rental);
                                record.set('ccr_penalty', res.result.ccr_penalty);
                                record.set('ccr_outstanding_times', res.result.ccr_outstanding_times);
                                record.set('ccr_outstanding_rental', res.result.ccr_outstanding_rental);
                                record.set('ccr_start_times', res.result.ccr_start_times);
                                record.set('ccr_fee', res.result.ccr_fee);
                                record.set('parameter', res.result.parameter);
                                record.set('et_interest', res.result.et_interest);
                                record.set('legal_fee', res.result.legal_fee);
                                record.set('ccr_deposit_balance', res.result.ccr_deposit_balance);
                                var ccr_overdue_rental = record.get('ccr_overdue_rental') || 0;
                                var ccr_penalty = record.get('ccr_penalty') || 0;
                                var ccr_outstanding_prin_tax_incld = record.get('ccr_outstanding_prin_tax_incld') || 0;
                                var ccr_fee = record.get('ccr_fee') || 0;
                                var et_interest = record.get('et_interest') || 0;
                                var legal_fee = record.get('legal_fee') || 0;
                                var ccr_total_amt = ccr_overdue_rental + ccr_penalty + ccr_outstanding_prin_tax_incld + ccr_fee + et_interest + legal_fee;
            
                                record.set('ccr_total_amt', ccr_total_amt);
                                var ccr_debt_exemption_amount = record.get('ccr_debt_exemption_amount') || 0;
                                var ccr_debt_exemption_amt_legal = record.get('ccr_debt_exemption_amt_legal') || 0;
                                var ccr_deposit_balance = record.get('ccr_deposit_balance') || 0;
                                var ccr_total_amt_acl = ccr_total_amt - ccr_debt_exemption_amount - ccr_debt_exemption_amt_legal - ccr_deposit_balance;
            
                                record.set('ccr_total_amt_acl', ccr_total_amt_acl);
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            failure: function() {
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            error: function() {
                                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            },
                            scope: this
                        });
                    }
                } else if (req_type == 'ET' && (name == 'ccr_fee' || name == 'ccr_debt_exemption_amount' || name == 'ccr_debt_exemption_amt_legal')) {
                    var ccr_overdue_rental = record.get('ccr_overdue_rental') || 0;
                    var ccr_penalty = record.get('ccr_penalty') || 0;
                    var ccr_outstanding_prin_tax_incld = record.get('ccr_outstanding_prin_tax_incld') || 0;
                    var ccr_fee = record.get('ccr_fee') || 0;
                    var et_interest = record.get('et_interest') || 0;
                    var legal_fee = record.get('legal_fee') || 0;
                    var ccr_total_amt = ccr_overdue_rental + ccr_penalty + ccr_outstanding_prin_tax_incld + ccr_fee + et_interest + legal_fee;
                    var ccr_debt_exemption_amount = record.get('ccr_debt_exemption_amount') || 0;
                    var ccr_debt_exemption_amt_legal = record.get('ccr_debt_exemption_amt_legal') || 0;
                    var ccr_deposit_balance = record.get('ccr_deposit_balance') || 0;
                    var ccr_total_amt_acl = ccr_total_amt - ccr_debt_exemption_amount - ccr_debt_exemption_amt_legal - ccr_deposit_balance;
                    record.set('ccr_total_amt', ccr_total_amt);
                    record.set('ccr_total_amt_acl', ccr_total_amt_acl);
                } else if (name == 'hd_user_col_n13'){
                    //
                    var hd_user_col_n13 = record.get('hd_user_col_n13');
                    if(hd_user_col_n13 == '1'){
                    	record.getField('ccr_debt_exemption_amount').setReadOnly(true);
                    }else{
                        record.getField('ccr_debt_exemption_amount').setReadOnly(false);
                    }
                } else if (name == 'hd_user_col_n15'){
                    var hd_user_col_n15 = record.get('hd_user_col_n15');
                    if(hd_user_col_n15 == '1'){
                    	record.getField('ccr_debt_exemption_amt_legal').setReadOnly(true);
                    }else{
                        record.getField('ccr_debt_exemption_amt_legal').setReadOnly(false);
                    }
                }
                if (req_type == 'ET') {
                    if (name == 'ccr_debt_exemption_amt_legal') {
                        var legal_fee = record.get('legal_fee') || 0;
                        if (value) {
                            if (value > legal_fee) {
                                Leaf.showMessage('${l:HLS.PROMPT}', '法律减免金额不能超过法律费用');
                                setTimeout(function() {
                                    record.set('ccr_debt_exemption_amt_legal', old_value);
                                }, 10);
                            }
                        }
                    } else if (name == 'ccr_debt_exemption_amount') {
                        var ccr_penalty = record.get('ccr_penalty') || 0;
                        if (value) {
                            if (value > ccr_penalty) {
                                setTimeout(function() {
                                    record.set('ccr_debt_exemption_amount', old_value);
                                }, 10);
                                Leaf.showMessage('${l:HLS.PROMPT}', '罚息减免金额不能超过罚息');
                            }
                        }
                    }
                }
            
            
            };
            window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
                //
                var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
                var req_record = $(req_ds_id).getAt(0);
                var workflow_type = '${/model/wfl_type/record/@workflow_id_c}';
                if ($(req_ds_id).validate()) {
                    if (req_record.dirty) {
                        Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
                        return;
                    }
                    if (workflow_type != 'CUS_CONTRACT_RESCHEDULE' && workflow_type != 'CUS_CONTRACT_BANK_ACC' && workflow_type != 'CUS_CONTRACT_CANCEL' && workflow_type != 'CUS_CONTRACT_ET') {
                        var document_id = ${/parameter/@change_req_id};
                        var document_table = 'CON_CONTRACT';
                        var title = '合同变更指定信审员';
                        var win = new Leaf.Window({
                            id: 'cus_prj_secify_approver_screen',
                            url: $('con543_prj_secify_approver_link').getUrl(),
                            params: {
                                document_id: document_id,
                                specify_code: 'PROJECT_CREDIT_APPROVER'
                            },
                            title: title,
                            width: 550,
                            heigh: 650
                        });
                        win.on('close', function() {
                            ajax_flag = 'Y';
                            /* parent.Leaf.SideBar.enable = true;
                             parent.Leaf.SideBar.show({
                             msg: '${l:HLS.SUBMIT_SUCCESS}',
                             duration: 2000
                             }); */
                            Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
                            Leaf.request({
                                url: $('con731_submit_link').getUrl(),
                                para: {
                                    change_req_id: ${/parameter/@change_req_id}
                                },
                                success: function(res) {
                                    Leaf.Masker.unmask(Ext.getBody());
                                    Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.SUBMIT_SUCCESS}', function() {
                                        $('hls_doc_get_layout_code_winid').close();
                                    });
                                },
                                failure: function() {
                                    Leaf.Masker.unmask(Ext.getBody());
                                },
                                error: function() {
                                    Leaf.Masker.unmask(Ext.getBody());
                                },
                                scope: this
                            });
                        });
                    } else {
                        Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function() {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                            Leaf.request({
                                url: $('con731_submit_link').getUrl(),
                                para: {
                                    change_req_id: ${/parameter/@change_req_id}
                                },
                                success: function(res) {
                                    window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                                    $('${/parameter/@winid}').close();
                                },
                                failure: function() {
                                    window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                                },
                                error: function() {
                                    window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                                },
                                scope: this
                            });
                        });
                    }
                }
            };
            
            window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
                Leaf.showConfirm('${l:HLS.PROMPT}', '${l:CON731.CANCEL_CHANGE_CONFIRM}', function() {
                    window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                    Leaf.request({
                        url: $('con731_cancel_link').getUrl(),
                        para: {
                            change_req_id: ${/parameter/@change_req_id}
                        },
                        success: function(res) {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                            $('${/parameter/@winid}').close();
                        },
                        failure: function() {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        },
                        error: function() {
                            window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        },
                        scope: this
                    });
                });
            }; 
            
            window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {

                if (name == 'attach_file_name') {
                    if (value != null) {
                        var link = '${/request/@context_path}/atm_download.lsc?attachment_id=';
                        var str = value.split(';;');
                        var url = '';
                        for (var i = 0;i < str.length;i++) {
                            var temp = str[i].split('--');
                            if (!Leaf.isEmpty(temp[0])) {
                                url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
                            }
                        }
                        return url;
            
                    }
                } else if (name == 'attachment') {
                    link_function = '${/parameter/@layout_code}_con731_cdd_attachtment_upload';
                    return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\',\'' + record.ds.id + '\');">' + config_record.get('prompt') + '</a>';
                }
            };
            
            window['${/parameter/@layout_code}_con731_cdd_attachtment_upload'] = function(id, name, query_only, ds_id) {
                var record = $(ds_id).findById(id);
                if (record.get('check_id')) {
                    var url;
                    if (query_only == 'Y') {
                        url = $('${/parameter/@layout_code}${/parameter/@tree_code}_con731_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
                    } else {
                        url = $('${/parameter/@layout_code}${/parameter/@tree_code}_con731_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
                    }
                    var win = new Leaf.Window({
                        url: url,
                        title: '${l:HLS.SUPPORTING_DOCUMENT}',
                        id: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id',
                        width: 850,
                        height: 400
                    });
            
                    win.on('close', function() {
                        record.ds.query();
                    });
                } else {
                    Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
                }
            };
            
            /*加载时调用*/
            window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
                var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
                if (ds.id == req_ds_id) {
                    var price_list = '${/parameter/@price_list}';
                    if (price_list && !$(req_ds_id).getAt(0).get('price_list')) {
                        $(req_ds_id).getAt(0).set('price_list', price_list);
                    }
                }
            };
        if(typeof(CCR_UNIVERSAL_layoutDataSetList) == 'undefined'){var CCR_UNIVERSAL_layoutDataSetList=[];
}
if(typeof(CCR_UNIVERSAL_rootDataSetList) == 'undefined'){var CCR_UNIVERSAL_rootDataSetList=[];
}
if(typeof(CCR_UNIVERSAL_layoutDataSetObj) == 'undefined'){var CCR_UNIVERSAL_layoutDataSetObj=[];
}
function GET_LOV_CASCADE(value) {
    if (Ext.isEmpty(value)) {
        return '';
    } else {
        return value;
    }
}
            
function SETOBJECTPARA(object, ds, field, para, record) {
    if (para) {
        if (object == 'LOV') {
            field.setLovPara(para, GET_LOV_CASCADE(record.get(para)));
        } else if (object == 'COMBOBOX') {
            ds.setQueryParameter(para, GET_LOV_CASCADE(record.get(para)));
        }
    }
}

function GET_CONFIG_COLUMN_NAME(name) {
    var query_name, length = name.length;
    if (name.substring(length - 2, length) == '_n') {
        query_name = name.substring(0, length - 2);
    } else {
        query_name = name;
    }
    return query_name;
}

function ON_COMMON_OBJECT_BEFORECOMMIT(object, record, lov_record){ 
	var display_name = object.binder.name,
        field = record.getField(display_name),
        mapping = field.get('mapping'),
        exists_flag = false;
    for (var name in lov_record.data) {
        exists_flag = false;
        for (var i = 0,
            mapping_length = mapping.length;i < mapping_length;i++) {
            if ((exists_flag = (name == mapping[i]['from']))) {
                break;
            }
        }
        if (!exists_flag) {
            mapping.push({
                from: name,
                to: name
            });
        }
    }
    field.setMapping(mapping);
}

function SET_CLEAR_LOVPARA_EMPTY(name, lov_cascade_para, record, config_record) {
    var validation_type = config_record.get('validation_type'),
        column_name = config_record.get('column_name');
    if (name == lov_cascade_para) {
        record.set(column_name, '');
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C' || validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            record.set(column_name + '_n', '');
        }
    }
}
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CCR_1_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
window['CCR_UNIVERSAL_rootDataSetList'].push('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
window['CCR_UNIVERSAL_layoutDataSetObj']['CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds']='CONTRACT_ID';
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
window['CCR_UNIVERSAL_FBC_CCR_1_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds').getAll();
    if (!''&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if(''&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_FBC_CCR_1_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_FBC_CCR_1_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','FBC_CCR_1');
		window['CCR_UNIVERSAL_FBC_CCR_1_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_FBC_CCR_1_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_FBC_CCR_1_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_FBC_CCR_1_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CCR_1_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_FBC_CCR_1_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CCR_1_CHILD_ONREADY'] = function() {
	if('con_contract'&&''&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_FBC_CCR_1_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_FBC_CCR_1_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'FBC_CCR_1';
    if ('FBC_CCR_1'&& '') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1__ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_FBC_CCR_1_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CCR2_lov_getmapping_ds');
window['CCR_UNIVERSAL_FBC_CCR2_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds').getAll();
    if (!''&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if(''&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_FBC_CCR2_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_FBC_CCR2_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','FBC_CCR2');
		window['CCR_UNIVERSAL_FBC_CCR2_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_FBC_CCR2_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_FBC_CCR2_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_FBC_CCR2_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CCR2_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_FBC_CCR2_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CCR2_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_FBC_CCR2_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CCR2_CHILD_ONREADY'] = function() {
	if('con_contract'&&''&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_FBC_CCR2_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CCR2_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_FBC_CCR2_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_FBC_CCR2_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'FBC_CCR2';
    if ('FBC_CCR_1'&& '') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1__ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_FBC_CCR2_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CCR2_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_FBC_CCR2_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CON_1_lov_getmapping_ds');
window['CCR_UNIVERSAL_FBC_CON_1_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds').getAll();
    if (!''&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if(''&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_FBC_CON_1_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_FBC_CON_1_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','FBC_CON_1');
		window['CCR_UNIVERSAL_FBC_CON_1_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_FBC_CON_1_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_FBC_CON_1_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_FBC_CON_1_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CON_1_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_FBC_CON_1_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CON_1_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_FBC_CON_1_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CON_1_CHILD_ONREADY'] = function() {
	if('con_contract'&&''&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_FBC_CON_1_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CON_1_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_FBC_CON_1_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_FBC_CON_1_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'FBC_CON_1';
    if ('FBC_CCR_1'&& '') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1__ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_FBC_CON_1_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CON_1_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_FBC_CON_1_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_FBC_CON_2_lov_getmapping_ds');
window['CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds').getAll();
    if (!''&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if(''&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_FBC_CON_2_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_FBC_CON_2_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','FBC_CON_2');
		window['CCR_UNIVERSAL_FBC_CON_2_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_FBC_CON_2_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_FBC_CON_2_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_FBC_CON_2_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CON_2_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_FBC_CON_2_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CON_2_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_FBC_CON_2_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_FBC_CON_2_CHILD_ONREADY'] = function() {
	if('con_contract'&&''&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_FBC_CON_2_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1__ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!''){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_FBC_CON_2_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_FBC_CON_2_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_FBC_CON_2_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'FBC_CON_2';
    if ('FBC_CCR_1'&& '') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1__ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_FBC_CON_2_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('N'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_FBC_CON_2_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_FBC_CON_2_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BP_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BP_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BP_con_contract_bp_ds');
function HLS_FORMATMONEY(v, p) {
    return Leaf.formatNumber(v, p);
}

function HLS_FORMATMONEY_ZERO_FILL(v, p) {
    return Leaf.formatNumber(v, p).replace(/0*$/g, '').replace(/\.$/, '');
}

function ON_GRID_COMBOBOX_FOCUS(combobox) {
    if (!combobox.optionDataSet.isLoaded) {
        combobox.optionDataSet.isLoaded = true;
        combobox.optionDataSet.query();
    }
}

window['CCR_UNIVERSAL_G_BP_CON_GRID_PROCESS'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};
window['CCR_UNIVERSAL_G_BP_SEEDETAIL_COLUMN_LN'] = function(value, record, name) {
    var editor_record = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').find('column_name', name),
        precision = editor_record.get('precision'),
        validation_type = editor_record.get('validation_type');
    if ((validation_type == 'NUMBERFIELD' || validation_type == 'PERCENTFIELD') && !Ext.isEmpty(value)) {
        if (editor_record.get('allow_format') == 'TRUE') {
            if (precision) {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return HLS_FORMATMONEY(value, precision);
                } else {
                    return HLS_FORMATMONEY_ZERO_FILL(value, precision);
                }
            } else {
                return HLS_FORMATMONEY(value);
            }
        } else {
            if (precision && editor_record.get('allow_decimal') == 'TRUE') {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return parseFloat(value).toFixed(precision);
                } else {
                    return parseFloat(value).toFixed(precision).replace(/0*$/g, '').replace(/\.$/, '');
                }
            } else {
                if (editor_record.get('allow_decimal') == 'TRUE') {
                    return value;
                } else {
                    return parseFloat(parseFloat(value).toFixed(0));
                }
            }
        }
    } else if (validation_type == 'DATEPICKER') {
        return Leaf.formatDate(value);
    } else {
        return value;
    }
};
            
window['CCR_UNIVERSAL_G_BP_SEEDETAIL_LN_PICTURE'] = function(value, record, name) {
    var pic = window['CCR_UNIVERSAL_dynamic_pic_renderer'](record, name,'');
    if (pic) {
        return pic;
    } else {
        return '';
    }
};

window['CCR_UNIVERSAL_G_BP_RENDERER'] = function(value, record, name) {	
	 var config_record = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_BP_GRID_QUERY'] = function() {
    $('CCR_UNIVERSAL_G_BP_con_contract_bp_ds').query();
};
window['CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR'] = function(record, name) {
    name = GET_CONFIG_COLUMN_NAME(name);
    var config_record = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').find('column_name', name);
    if (config_record) {
        var editor = 'CCR_UNIVERSAL_G_BP_' + name + '_id';
        if (config_record.get('readonly_input_mode')=='TRUE') {
            return '';
        }
        if (!record.isNew && config_record.get('input_mode') == 'REQUIRED_ONLY_ADD') {
            return '';
        } else {
            return editor;
        }
    }else{
    	return '';
    }
};
window['CCR_UNIVERSAL_G_BP_ON_GRID_OBJECT_FOCUS'] = function(object) {
    var config_ds = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds'),
        name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_BP_SHOW_HISTORY']=function(show_history_ds,base_ds){
	if('' == 'Y'&&base_ds.getAll().length){
		var records=base_ds.getAll();
		for(var i=0;i<records.length;i++){
			var record=records[i];
			Leaf.request({
				url:'/cus/autocrud/layout.server_doc_layout_show_history/query',
				para:{
					table_name:'con_contract_bp'||'ERROR',
					table_pk_value:record.get('RECORD_ID'.toLowerCase()),
					layout_code:'CCR_UNIVERSAL',
					tab_code:'G_BP'
				},
				success:function(res){
					var current_base_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_ds');
					var current_records= current_base_ds.getAll();
					for(var j=0;j<current_records.length;j++){
						var current_record = current_records[j];
						if(res.result && res.result.record && res.result.record.length){
						   for(var i=0;i<res.result.record.length;i++){
						   	  var history_record = res.result.record[i];
						   	  if(current_record.get('RECORD_ID'.toLowerCase())==history_record['table_pk_value']){
						   	  	 for(var name in current_record.data){
						   	  	 	if(GET_CONFIG_COLUMN_NAME(name).toUpperCase()==history_record['column_name']){
						   	  	 		var grid_id  = 'CCR_UNIVERSAL_G_BP_con_contract_bp_layout_grid_id';
										if($(grid_id).findColByName(name.toLowerCase())){
											current_record.getField(name).setPropertity('tooltip', history_record['from_value']);
											Ext.get(grid_id).select('tr[_row='+current_record.id+'] td[dataindex=' + name.toLowerCase() + ']').setStyle({
							                    background:'#FF9965'
							                });
						                }
						                continue;
						   	  	 	}
						   	  	 }
						   	  }
						   }
						}
					}
				},
				scope:this
			});
		}
	}
};

window['CCR_UNIVERSAL_G_BP_CHILD_ONREADY'] = function() {
    if('con_contract_bp'&&'con_contract'&&'CON_CONTRACT_BP_CCR_LV'){
	    var base_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_ds');
	    var parent_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	    
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if('' == 'Y'){
		    	var show_history_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_show_history_ds');
	        	window['CCR_UNIVERSAL_G_BP_SHOW_HISTORY'](show_history_ds,base_ds);
        	}
	    }
	    
	   	function base_ds_query(){
	   		base_ds.setQueryParameter('contract_id', parent_ds.getCurrentRecord().get('contract_id'));
	        base_ds.on('load',base_ds_load);
	        base_ds.query();
	   	}
	    parent_ds.on('indexchange', function(ds,record) {
	    	if(!record.isNew){
	        	base_ds_query();
	        }
	    });
	    if(parent_ds.getAll().length && parent_ds.getCurrentRecord() && !parent_ds.getCurrentRecord().isNew){
	    	base_ds_query();
	    }
    }
};

window['CCR_UNIVERSAL_G_BP_ONREADY'] = function() {
    var base_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_ds');
    function base_ds_load(ds){
    	base_ds.un('load',base_ds_load);
    	if('' == 'Y'){
	    	var show_history_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_show_history_ds');
	    	window['CCR_UNIVERSAL_G_BP_SHOW_HISTORY'](show_history_ds,base_ds);
    	}
    }
    base_ds.on('load',base_ds_load);
    base_ds.query();
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD'] = function(ds) {
    var line_record = ds.getCurrentRecord(),
        parent_table_tab_code = 'FBC_CCR_1',
        parent_table = 'con_contract',
        parent_base_table_pk = 'contract_id';
    var config_records = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').getAll();
	var parent_ds_id = 'CCR_UNIVERSAL_'+ parent_table_tab_code + '_' + parent_table + '_ds';
	var head_record = '';
    if(parent_table && $L.CmpManager.get(parent_ds_id)){
	    head_record = $(parent_ds_id).getCurrentRecord();
	    if (head_record&&head_record.get(parent_base_table_pk)) {
	        line_record.set(parent_base_table_pk, head_record.get(parent_base_table_pk));
	        if ('con_contract_bp'.toUpperCase() == 'PRJ_QUOTATION') {
	            line_record.set('document_id', head_record.get(parent_base_table_pk));
	        }
	    }
    }
    if(!line_record.get('document_category')){
    	line_record.set('document_category', 'CONTRACT');
    }
    line_record.set('bp_seq', '');
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = config_record.get('column_name') + '_n';
        if (head_record && config_record.get('copy_from_parent_tab') == 'Y') {
            line_record.set(column_name, head_record.get(column_name));
            line_record.set(display_name, head_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                line_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                line_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            var combobox_documentmapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = line_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
                line_record.getField(column_name).setMapping(combobox_documentmapping);
            } else {
                combobox_field = line_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
                line_record.getField(display_name).setMapping(combobox_documentmapping);
            }
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_add'](ds, line_record , config_records,'');
};
window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD'] = function(ds) {
    var records = ds.getAll();
    var config_records = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').getAll();
    if (records.length) {
        for (var i = 0;i < records.length;i++) {
            var line_record = records[i];
            for (var j = 0;j < config_records.length;j++) {
                var config_record = config_records[j],
                    validation_type = config_record.get('validation_type'),
                    column_name = config_record.get('column_name'),
                    display_name = config_record.get('column_name') + '_n',
                    field_bak_flag = config_record.get('field_bak_flag');
                if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
                    var documentMapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_code',
                            to: column_name
                        }];
                        line_record.getField(column_name).setMapping(documentMapping);
                    } else {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_name',
                            to: display_name
                        }];
                        line_record.getField(display_name).setMapping(documentMapping);
                    }
                } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
                    var combobox_field;
                    var combobox_documentmapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        combobox_field = line_record.getField(column_name);
                        combobox_field.setPropertity('displayfield', 'value_code');
                    } else {
                        combobox_field = line_record.getField(display_name);
                        combobox_field.setPropertity('displayfield', 'value_name');
                    }
                }
                if(field_bak_flag=='Y'){
		           var bak_name=column_name+'_bak';
		           line_record.set(bak_name,line_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
		        }
            }
            window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, line_record,config_records,'');
        }
        if(''=='Y'){
	        var show_history_ds = $('CCR_UNIVERSAL_G_BP_con_contract_bp_show_history_ds');
	    	window['CCR_UNIVERSAL_G_BP_SHOW_HISTORY'](show_history_ds,ds);
    	}
    }else{
    	window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, '',config_records,'');
    }
};
window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE'] = function(ds,record) {
	var form_ds_id = 'CCR_UNIVERSAL__con_contract_bp_ds';
    if ($L.CmpManager.get(form_ds_id)) {
        var form_ds = $(form_ds_id);
        if (record.get('RECORD_ID'.toLowerCase())) {
            form_ds.setQueryParameter('RECORD_ID'.toLowerCase(), record.get('RECORD_ID'.toLowerCase()));
            form_ds.query();
        }
    }
};
window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_BP_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds = $('CCR_UNIVERSAL_G_BP_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_BP';
    if ('FBC_CCR_1'&&'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_query'](ds, qpara,'');
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_select'](ds,record,'');
};

window['CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_unselect'](ds,record,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_ASSET_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds');
function HLS_FORMATMONEY(v, p) {
    return Leaf.formatNumber(v, p);
}

function HLS_FORMATMONEY_ZERO_FILL(v, p) {
    return Leaf.formatNumber(v, p).replace(/0*$/g, '').replace(/\.$/, '');
}

function ON_GRID_COMBOBOX_FOCUS(combobox) {
    if (!combobox.optionDataSet.isLoaded) {
        combobox.optionDataSet.isLoaded = true;
        combobox.optionDataSet.query();
    }
}

window['CCR_UNIVERSAL_G_ASSET_CON_GRID_PROCESS'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};
window['CCR_UNIVERSAL_G_ASSET_SEEDETAIL_COLUMN_LN'] = function(value, record, name) {
    var editor_record = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').find('column_name', name),
        precision = editor_record.get('precision'),
        validation_type = editor_record.get('validation_type');
    if ((validation_type == 'NUMBERFIELD' || validation_type == 'PERCENTFIELD') && !Ext.isEmpty(value)) {
        if (editor_record.get('allow_format') == 'TRUE') {
            if (precision) {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return HLS_FORMATMONEY(value, precision);
                } else {
                    return HLS_FORMATMONEY_ZERO_FILL(value, precision);
                }
            } else {
                return HLS_FORMATMONEY(value);
            }
        } else {
            if (precision && editor_record.get('allow_decimal') == 'TRUE') {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return parseFloat(value).toFixed(precision);
                } else {
                    return parseFloat(value).toFixed(precision).replace(/0*$/g, '').replace(/\.$/, '');
                }
            } else {
                if (editor_record.get('allow_decimal') == 'TRUE') {
                    return value;
                } else {
                    return parseFloat(parseFloat(value).toFixed(0));
                }
            }
        }
    } else if (validation_type == 'DATEPICKER') {
        return Leaf.formatDate(value);
    } else {
        return value;
    }
};
            
window['CCR_UNIVERSAL_G_ASSET_SEEDETAIL_LN_PICTURE'] = function(value, record, name) {
    var pic = window['CCR_UNIVERSAL_dynamic_pic_renderer'](record, name,'');
    if (pic) {
        return pic;
    } else {
        return '';
    }
};

window['CCR_UNIVERSAL_G_ASSET_RENDERER'] = function(value, record, name) {	
	 var config_record = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_ASSET_GRID_QUERY'] = function() {
    $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds').query();
};
window['CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR'] = function(record, name) {
    name = GET_CONFIG_COLUMN_NAME(name);
    var config_record = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').find('column_name', name);
    if (config_record) {
        var editor = 'CCR_UNIVERSAL_G_ASSET_' + name + '_id';
        if (config_record.get('readonly_input_mode')=='TRUE') {
            return '';
        }
        if (!record.isNew && config_record.get('input_mode') == 'REQUIRED_ONLY_ADD') {
            return '';
        } else {
            return editor;
        }
    }else{
    	return '';
    }
};
window['CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS'] = function(object) {
    var config_ds = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds'),
        name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_ASSET_SHOW_HISTORY']=function(show_history_ds,base_ds){
	if('' == 'Y'&&base_ds.getAll().length){
		var records=base_ds.getAll();
		for(var i=0;i<records.length;i++){
			var record=records[i];
			Leaf.request({
				url:'/cus/autocrud/layout.server_doc_layout_show_history/query',
				para:{
					table_name:'con_contract_lease_item'||'ERROR',
					table_pk_value:record.get('CONTRACT_LEASE_ITEM_ID'.toLowerCase()),
					layout_code:'CCR_UNIVERSAL',
					tab_code:'G_ASSET'
				},
				success:function(res){
					var current_base_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds');
					var current_records= current_base_ds.getAll();
					for(var j=0;j<current_records.length;j++){
						var current_record = current_records[j];
						if(res.result && res.result.record && res.result.record.length){
						   for(var i=0;i<res.result.record.length;i++){
						   	  var history_record = res.result.record[i];
						   	  if(current_record.get('CONTRACT_LEASE_ITEM_ID'.toLowerCase())==history_record['table_pk_value']){
						   	  	 for(var name in current_record.data){
						   	  	 	if(GET_CONFIG_COLUMN_NAME(name).toUpperCase()==history_record['column_name']){
						   	  	 		var grid_id  = 'CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_layout_grid_id';
										if($(grid_id).findColByName(name.toLowerCase())){
											current_record.getField(name).setPropertity('tooltip', history_record['from_value']);
											Ext.get(grid_id).select('tr[_row='+current_record.id+'] td[dataindex=' + name.toLowerCase() + ']').setStyle({
							                    background:'#FF9965'
							                });
						                }
						                continue;
						   	  	 	}
						   	  	 }
						   	  }
						   }
						}
					}
				},
				scope:this
			});
		}
	}
};

window['CCR_UNIVERSAL_G_ASSET_CHILD_ONREADY'] = function() {
    if('con_contract_lease_item'&&'con_contract'&&'con_contract_lease_item_ccr_lv'){
	    var base_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds');
	    var parent_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	    
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if('' == 'Y'){
		    	var show_history_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_show_history_ds');
	        	window['CCR_UNIVERSAL_G_ASSET_SHOW_HISTORY'](show_history_ds,base_ds);
        	}
	    }
	    
	   	function base_ds_query(){
	   		base_ds.setQueryParameter('contract_id', parent_ds.getCurrentRecord().get('contract_id'));
	        base_ds.on('load',base_ds_load);
	        base_ds.query();
	   	}
	    parent_ds.on('indexchange', function(ds,record) {
	    	if(!record.isNew){
	        	base_ds_query();
	        }
	    });
	    if(parent_ds.getAll().length && parent_ds.getCurrentRecord() && !parent_ds.getCurrentRecord().isNew){
	    	base_ds_query();
	    }
    }
};

window['CCR_UNIVERSAL_G_ASSET_ONREADY'] = function() {
    var base_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds');
    function base_ds_load(ds){
    	base_ds.un('load',base_ds_load);
    	if('' == 'Y'){
	    	var show_history_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_show_history_ds');
	    	window['CCR_UNIVERSAL_G_ASSET_SHOW_HISTORY'](show_history_ds,base_ds);
    	}
    }
    base_ds.on('load',base_ds_load);
    base_ds.query();
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD'] = function(ds) {
    var line_record = ds.getCurrentRecord(),
        parent_table_tab_code = 'FBC_CCR_1',
        parent_table = 'con_contract',
        parent_base_table_pk = 'contract_id';
    var config_records = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').getAll();
	var parent_ds_id = 'CCR_UNIVERSAL_'+ parent_table_tab_code + '_' + parent_table + '_ds';
	var head_record = '';
    if(parent_table && $L.CmpManager.get(parent_ds_id)){
	    head_record = $(parent_ds_id).getCurrentRecord();
	    if (head_record&&head_record.get(parent_base_table_pk)) {
	        line_record.set(parent_base_table_pk, head_record.get(parent_base_table_pk));
	        if ('con_contract_lease_item'.toUpperCase() == 'PRJ_QUOTATION') {
	            line_record.set('document_id', head_record.get(parent_base_table_pk));
	        }
	    }
    }
    if(!line_record.get('document_category')){
    	line_record.set('document_category', 'CONTRACT');
    }
    line_record.set('bp_seq', '');
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = config_record.get('column_name') + '_n';
        if (head_record && config_record.get('copy_from_parent_tab') == 'Y') {
            line_record.set(column_name, head_record.get(column_name));
            line_record.set(display_name, head_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                line_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                line_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            var combobox_documentmapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = line_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
                line_record.getField(column_name).setMapping(combobox_documentmapping);
            } else {
                combobox_field = line_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
                line_record.getField(display_name).setMapping(combobox_documentmapping);
            }
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_add'](ds, line_record , config_records,'');
};
window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD'] = function(ds) {
    var records = ds.getAll();
    var config_records = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').getAll();
    if (records.length) {
        for (var i = 0;i < records.length;i++) {
            var line_record = records[i];
            for (var j = 0;j < config_records.length;j++) {
                var config_record = config_records[j],
                    validation_type = config_record.get('validation_type'),
                    column_name = config_record.get('column_name'),
                    display_name = config_record.get('column_name') + '_n',
                    field_bak_flag = config_record.get('field_bak_flag');
                if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
                    var documentMapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_code',
                            to: column_name
                        }];
                        line_record.getField(column_name).setMapping(documentMapping);
                    } else {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_name',
                            to: display_name
                        }];
                        line_record.getField(display_name).setMapping(documentMapping);
                    }
                } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
                    var combobox_field;
                    var combobox_documentmapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        combobox_field = line_record.getField(column_name);
                        combobox_field.setPropertity('displayfield', 'value_code');
                    } else {
                        combobox_field = line_record.getField(display_name);
                        combobox_field.setPropertity('displayfield', 'value_name');
                    }
                }
                if(field_bak_flag=='Y'){
		           var bak_name=column_name+'_bak';
		           line_record.set(bak_name,line_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
		        }
            }
            window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, line_record,config_records,'');
        }
        if(''=='Y'){
	        var show_history_ds = $('CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_show_history_ds');
	    	window['CCR_UNIVERSAL_G_ASSET_SHOW_HISTORY'](show_history_ds,ds);
    	}
    }else{
    	window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, '',config_records,'');
    }
};
window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE'] = function(ds,record) {
	var form_ds_id = 'CCR_UNIVERSAL__con_contract_lease_item_ds';
    if ($L.CmpManager.get(form_ds_id)) {
        var form_ds = $(form_ds_id);
        if (record.get('CONTRACT_LEASE_ITEM_ID'.toLowerCase())) {
            form_ds.setQueryParameter('CONTRACT_LEASE_ITEM_ID'.toLowerCase(), record.get('CONTRACT_LEASE_ITEM_ID'.toLowerCase()));
            form_ds.query();
        }
    }
};
window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_ASSET_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds = $('CCR_UNIVERSAL_G_ASSET_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_ASSET';
    if ('FBC_CCR_1'&&'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_query'](ds, qpara,'');
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_select'](ds,record,'');
};

window['CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_unselect'](ds,record,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_MORTGAGE_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds');
function HLS_FORMATMONEY(v, p) {
    return Leaf.formatNumber(v, p);
}

function HLS_FORMATMONEY_ZERO_FILL(v, p) {
    return Leaf.formatNumber(v, p).replace(/0*$/g, '').replace(/\.$/, '');
}

function ON_GRID_COMBOBOX_FOCUS(combobox) {
    if (!combobox.optionDataSet.isLoaded) {
        combobox.optionDataSet.isLoaded = true;
        combobox.optionDataSet.query();
    }
}

window['CCR_UNIVERSAL_G_MORTGAGE_CON_GRID_PROCESS'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};
window['CCR_UNIVERSAL_G_MORTGAGE_SEEDETAIL_COLUMN_LN'] = function(value, record, name) {
    var editor_record = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').find('column_name', name),
        precision = editor_record.get('precision'),
        validation_type = editor_record.get('validation_type');
    if ((validation_type == 'NUMBERFIELD' || validation_type == 'PERCENTFIELD') && !Ext.isEmpty(value)) {
        if (editor_record.get('allow_format') == 'TRUE') {
            if (precision) {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return HLS_FORMATMONEY(value, precision);
                } else {
                    return HLS_FORMATMONEY_ZERO_FILL(value, precision);
                }
            } else {
                return HLS_FORMATMONEY(value);
            }
        } else {
            if (precision && editor_record.get('allow_decimal') == 'TRUE') {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return parseFloat(value).toFixed(precision);
                } else {
                    return parseFloat(value).toFixed(precision).replace(/0*$/g, '').replace(/\.$/, '');
                }
            } else {
                if (editor_record.get('allow_decimal') == 'TRUE') {
                    return value;
                } else {
                    return parseFloat(parseFloat(value).toFixed(0));
                }
            }
        }
    } else if (validation_type == 'DATEPICKER') {
        return Leaf.formatDate(value);
    } else {
        return value;
    }
};
            
window['CCR_UNIVERSAL_G_MORTGAGE_SEEDETAIL_LN_PICTURE'] = function(value, record, name) {
    var pic = window['CCR_UNIVERSAL_dynamic_pic_renderer'](record, name,'');
    if (pic) {
        return pic;
    } else {
        return '';
    }
};

window['CCR_UNIVERSAL_G_MORTGAGE_RENDERER'] = function(value, record, name) {	
	 var config_record = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_MORTGAGE_GRID_QUERY'] = function() {
    $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds').query();
};
window['CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR'] = function(record, name) {
    name = GET_CONFIG_COLUMN_NAME(name);
    var config_record = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').find('column_name', name);
    if (config_record) {
        var editor = 'CCR_UNIVERSAL_G_MORTGAGE_' + name + '_id';
        if (config_record.get('readonly_input_mode')=='TRUE') {
            return '';
        }
        if (!record.isNew && config_record.get('input_mode') == 'REQUIRED_ONLY_ADD') {
            return '';
        } else {
            return editor;
        }
    }else{
    	return '';
    }
};
window['CCR_UNIVERSAL_G_MORTGAGE_ON_GRID_OBJECT_FOCUS'] = function(object) {
    var config_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds'),
        name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_MORTGAGE_SHOW_HISTORY']=function(show_history_ds,base_ds){
	if('' == 'Y'&&base_ds.getAll().length){
		var records=base_ds.getAll();
		for(var i=0;i<records.length;i++){
			var record=records[i];
			Leaf.request({
				url:'/cus/autocrud/layout.server_doc_layout_show_history/query',
				para:{
					table_name:'con_contract_mortgage'||'ERROR',
					table_pk_value:record.get('CON_MORTGAGE_ID'.toLowerCase()),
					layout_code:'CCR_UNIVERSAL',
					tab_code:'G_MORTGAGE'
				},
				success:function(res){
					var current_base_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds');
					var current_records= current_base_ds.getAll();
					for(var j=0;j<current_records.length;j++){
						var current_record = current_records[j];
						if(res.result && res.result.record && res.result.record.length){
						   for(var i=0;i<res.result.record.length;i++){
						   	  var history_record = res.result.record[i];
						   	  if(current_record.get('CON_MORTGAGE_ID'.toLowerCase())==history_record['table_pk_value']){
						   	  	 for(var name in current_record.data){
						   	  	 	if(GET_CONFIG_COLUMN_NAME(name).toUpperCase()==history_record['column_name']){
						   	  	 		var grid_id  = 'CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_layout_grid_id';
										if($(grid_id).findColByName(name.toLowerCase())){
											current_record.getField(name).setPropertity('tooltip', history_record['from_value']);
											Ext.get(grid_id).select('tr[_row='+current_record.id+'] td[dataindex=' + name.toLowerCase() + ']').setStyle({
							                    background:'#FF9965'
							                });
						                }
						                continue;
						   	  	 	}
						   	  	 }
						   	  }
						   }
						}
					}
				},
				scope:this
			});
		}
	}
};

window['CCR_UNIVERSAL_G_MORTGAGE_CHILD_ONREADY'] = function() {
    if('con_contract_mortgage'&&'con_contract'&&'CON_CONTRACT_MORTGAGE_LV'){
	    var base_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds');
	    var parent_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	    
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if('' == 'Y'){
		    	var show_history_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_show_history_ds');
	        	window['CCR_UNIVERSAL_G_MORTGAGE_SHOW_HISTORY'](show_history_ds,base_ds);
        	}
	    }
	    
	   	function base_ds_query(){
	   		base_ds.setQueryParameter('contract_id', parent_ds.getCurrentRecord().get('contract_id'));
	        base_ds.on('load',base_ds_load);
	        base_ds.query();
	   	}
	    parent_ds.on('indexchange', function(ds,record) {
	    	if(!record.isNew){
	        	base_ds_query();
	        }
	    });
	    if(parent_ds.getAll().length && parent_ds.getCurrentRecord() && !parent_ds.getCurrentRecord().isNew){
	    	base_ds_query();
	    }
    }
};

window['CCR_UNIVERSAL_G_MORTGAGE_ONREADY'] = function() {
    var base_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds');
    function base_ds_load(ds){
    	base_ds.un('load',base_ds_load);
    	if('' == 'Y'){
	    	var show_history_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_show_history_ds');
	    	window['CCR_UNIVERSAL_G_MORTGAGE_SHOW_HISTORY'](show_history_ds,base_ds);
    	}
    }
    base_ds.on('load',base_ds_load);
    base_ds.query();
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD'] = function(ds) {
    var line_record = ds.getCurrentRecord(),
        parent_table_tab_code = 'FBC_CCR_1',
        parent_table = 'con_contract',
        parent_base_table_pk = 'contract_id';
    var config_records = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').getAll();
	var parent_ds_id = 'CCR_UNIVERSAL_'+ parent_table_tab_code + '_' + parent_table + '_ds';
	var head_record = '';
    if(parent_table && $L.CmpManager.get(parent_ds_id)){
	    head_record = $(parent_ds_id).getCurrentRecord();
	    if (head_record&&head_record.get(parent_base_table_pk)) {
	        line_record.set(parent_base_table_pk, head_record.get(parent_base_table_pk));
	        if ('con_contract_mortgage'.toUpperCase() == 'PRJ_QUOTATION') {
	            line_record.set('document_id', head_record.get(parent_base_table_pk));
	        }
	    }
    }
    if(!line_record.get('document_category')){
    	line_record.set('document_category', 'CONTRACT');
    }
    line_record.set('bp_seq', '');
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = config_record.get('column_name') + '_n';
        if (head_record && config_record.get('copy_from_parent_tab') == 'Y') {
            line_record.set(column_name, head_record.get(column_name));
            line_record.set(display_name, head_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                line_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                line_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            var combobox_documentmapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = line_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
                line_record.getField(column_name).setMapping(combobox_documentmapping);
            } else {
                combobox_field = line_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
                line_record.getField(display_name).setMapping(combobox_documentmapping);
            }
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_add'](ds, line_record , config_records,'');
};
window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD'] = function(ds) {
    var records = ds.getAll();
    var config_records = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').getAll();
    if (records.length) {
        for (var i = 0;i < records.length;i++) {
            var line_record = records[i];
            for (var j = 0;j < config_records.length;j++) {
                var config_record = config_records[j],
                    validation_type = config_record.get('validation_type'),
                    column_name = config_record.get('column_name'),
                    display_name = config_record.get('column_name') + '_n',
                    field_bak_flag = config_record.get('field_bak_flag');
                if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
                    var documentMapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_code',
                            to: column_name
                        }];
                        line_record.getField(column_name).setMapping(documentMapping);
                    } else {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_name',
                            to: display_name
                        }];
                        line_record.getField(display_name).setMapping(documentMapping);
                    }
                } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
                    var combobox_field;
                    var combobox_documentmapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        combobox_field = line_record.getField(column_name);
                        combobox_field.setPropertity('displayfield', 'value_code');
                    } else {
                        combobox_field = line_record.getField(display_name);
                        combobox_field.setPropertity('displayfield', 'value_name');
                    }
                }
                if(field_bak_flag=='Y'){
		           var bak_name=column_name+'_bak';
		           line_record.set(bak_name,line_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
		        }
            }
            window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, line_record,config_records,'');
        }
        if(''=='Y'){
	        var show_history_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_show_history_ds');
	    	window['CCR_UNIVERSAL_G_MORTGAGE_SHOW_HISTORY'](show_history_ds,ds);
    	}
    }else{
    	window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, '',config_records,'');
    }
};
window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE'] = function(ds,record) {
	var form_ds_id = 'CCR_UNIVERSAL__con_contract_mortgage_ds';
    if ($L.CmpManager.get(form_ds_id)) {
        var form_ds = $(form_ds_id);
        if (record.get('CON_MORTGAGE_ID'.toLowerCase())) {
            form_ds.setQueryParameter('CON_MORTGAGE_ID'.toLowerCase(), record.get('CON_MORTGAGE_ID'.toLowerCase()));
            form_ds.query();
        }
    }
};
window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_MORTGAGE_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds = $('CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_MORTGAGE';
    if ('FBC_CCR_1'&&'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_query'](ds, qpara,'');
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_select'](ds,record,'');
};

window['CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_unselect'](ds,record,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_REPURCHASE_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds');
function HLS_FORMATMONEY(v, p) {
    return Leaf.formatNumber(v, p);
}

function HLS_FORMATMONEY_ZERO_FILL(v, p) {
    return Leaf.formatNumber(v, p).replace(/0*$/g, '').replace(/\.$/, '');
}

function ON_GRID_COMBOBOX_FOCUS(combobox) {
    if (!combobox.optionDataSet.isLoaded) {
        combobox.optionDataSet.isLoaded = true;
        combobox.optionDataSet.query();
    }
}

window['CCR_UNIVERSAL_G_REPURCHASE_CON_GRID_PROCESS'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};
window['CCR_UNIVERSAL_G_REPURCHASE_SEEDETAIL_COLUMN_LN'] = function(value, record, name) {
    var editor_record = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').find('column_name', name),
        precision = editor_record.get('precision'),
        validation_type = editor_record.get('validation_type');
    if ((validation_type == 'NUMBERFIELD' || validation_type == 'PERCENTFIELD') && !Ext.isEmpty(value)) {
        if (editor_record.get('allow_format') == 'TRUE') {
            if (precision) {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return HLS_FORMATMONEY(value, precision);
                } else {
                    return HLS_FORMATMONEY_ZERO_FILL(value, precision);
                }
            } else {
                return HLS_FORMATMONEY(value);
            }
        } else {
            if (precision && editor_record.get('allow_decimal') == 'TRUE') {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return parseFloat(value).toFixed(precision);
                } else {
                    return parseFloat(value).toFixed(precision).replace(/0*$/g, '').replace(/\.$/, '');
                }
            } else {
                if (editor_record.get('allow_decimal') == 'TRUE') {
                    return value;
                } else {
                    return parseFloat(parseFloat(value).toFixed(0));
                }
            }
        }
    } else if (validation_type == 'DATEPICKER') {
        return Leaf.formatDate(value);
    } else {
        return value;
    }
};
            
window['CCR_UNIVERSAL_G_REPURCHASE_SEEDETAIL_LN_PICTURE'] = function(value, record, name) {
    var pic = window['CCR_UNIVERSAL_dynamic_pic_renderer'](record, name,'');
    if (pic) {
        return pic;
    } else {
        return '';
    }
};

window['CCR_UNIVERSAL_G_REPURCHASE_RENDERER'] = function(value, record, name) {	
	 var config_record = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_REPURCHASE_GRID_QUERY'] = function() {
    $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds').query();
};
window['CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR'] = function(record, name) {
    name = GET_CONFIG_COLUMN_NAME(name);
    var config_record = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').find('column_name', name);
    if (config_record) {
        var editor = 'CCR_UNIVERSAL_G_REPURCHASE_' + name + '_id';
        if (config_record.get('readonly_input_mode')=='TRUE') {
            return '';
        }
        if (!record.isNew && config_record.get('input_mode') == 'REQUIRED_ONLY_ADD') {
            return '';
        } else {
            return editor;
        }
    }else{
    	return '';
    }
};
window['CCR_UNIVERSAL_G_REPURCHASE_ON_GRID_OBJECT_FOCUS'] = function(object) {
    var config_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds'),
        name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_REPURCHASE_SHOW_HISTORY']=function(show_history_ds,base_ds){
	if('' == 'Y'&&base_ds.getAll().length){
		var records=base_ds.getAll();
		for(var i=0;i<records.length;i++){
			var record=records[i];
			Leaf.request({
				url:'/cus/autocrud/layout.server_doc_layout_show_history/query',
				para:{
					table_name:'con_contract_bp'||'ERROR',
					table_pk_value:record.get('RECORD_ID'.toLowerCase()),
					layout_code:'CCR_UNIVERSAL',
					tab_code:'G_REPURCHASE'
				},
				success:function(res){
					var current_base_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds');
					var current_records= current_base_ds.getAll();
					for(var j=0;j<current_records.length;j++){
						var current_record = current_records[j];
						if(res.result && res.result.record && res.result.record.length){
						   for(var i=0;i<res.result.record.length;i++){
						   	  var history_record = res.result.record[i];
						   	  if(current_record.get('RECORD_ID'.toLowerCase())==history_record['table_pk_value']){
						   	  	 for(var name in current_record.data){
						   	  	 	if(GET_CONFIG_COLUMN_NAME(name).toUpperCase()==history_record['column_name']){
						   	  	 		var grid_id  = 'CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_layout_grid_id';
										if($(grid_id).findColByName(name.toLowerCase())){
											current_record.getField(name).setPropertity('tooltip', history_record['from_value']);
											Ext.get(grid_id).select('tr[_row='+current_record.id+'] td[dataindex=' + name.toLowerCase() + ']').setStyle({
							                    background:'#FF9965'
							                });
						                }
						                continue;
						   	  	 	}
						   	  	 }
						   	  }
						   }
						}
					}
				},
				scope:this
			});
		}
	}
};

window['CCR_UNIVERSAL_G_REPURCHASE_CHILD_ONREADY'] = function() {
    if('con_contract_bp'&&'con_contract'&&'CON_CONTRACT_BP_REPUR_LV'){
	    var base_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds');
	    var parent_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	    
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if('' == 'Y'){
		    	var show_history_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_show_history_ds');
	        	window['CCR_UNIVERSAL_G_REPURCHASE_SHOW_HISTORY'](show_history_ds,base_ds);
        	}
	    }
	    
	   	function base_ds_query(){
	   		base_ds.setQueryParameter('contract_id', parent_ds.getCurrentRecord().get('contract_id'));
	        base_ds.on('load',base_ds_load);
	        base_ds.query();
	   	}
	    parent_ds.on('indexchange', function(ds,record) {
	    	if(!record.isNew){
	        	base_ds_query();
	        }
	    });
	    if(parent_ds.getAll().length && parent_ds.getCurrentRecord() && !parent_ds.getCurrentRecord().isNew){
	    	base_ds_query();
	    }
    }
};

window['CCR_UNIVERSAL_G_REPURCHASE_ONREADY'] = function() {
    var base_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds');
    function base_ds_load(ds){
    	base_ds.un('load',base_ds_load);
    	if('' == 'Y'){
	    	var show_history_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_show_history_ds');
	    	window['CCR_UNIVERSAL_G_REPURCHASE_SHOW_HISTORY'](show_history_ds,base_ds);
    	}
    }
    base_ds.on('load',base_ds_load);
    base_ds.query();
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD'] = function(ds) {
    var line_record = ds.getCurrentRecord(),
        parent_table_tab_code = 'FBC_CCR_1',
        parent_table = 'con_contract',
        parent_base_table_pk = 'contract_id';
    var config_records = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').getAll();
	var parent_ds_id = 'CCR_UNIVERSAL_'+ parent_table_tab_code + '_' + parent_table + '_ds';
	var head_record = '';
    if(parent_table && $L.CmpManager.get(parent_ds_id)){
	    head_record = $(parent_ds_id).getCurrentRecord();
	    if (head_record&&head_record.get(parent_base_table_pk)) {
	        line_record.set(parent_base_table_pk, head_record.get(parent_base_table_pk));
	        if ('con_contract_bp'.toUpperCase() == 'PRJ_QUOTATION') {
	            line_record.set('document_id', head_record.get(parent_base_table_pk));
	        }
	    }
    }
    if(!line_record.get('document_category')){
    	line_record.set('document_category', 'CONTRACT');
    }
    line_record.set('bp_seq', '');
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = config_record.get('column_name') + '_n';
        if (head_record && config_record.get('copy_from_parent_tab') == 'Y') {
            line_record.set(column_name, head_record.get(column_name));
            line_record.set(display_name, head_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                line_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                line_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            var combobox_documentmapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = line_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
                line_record.getField(column_name).setMapping(combobox_documentmapping);
            } else {
                combobox_field = line_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
                line_record.getField(display_name).setMapping(combobox_documentmapping);
            }
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_add'](ds, line_record , config_records,'');
};
window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD'] = function(ds) {
    var records = ds.getAll();
    var config_records = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').getAll();
    if (records.length) {
        for (var i = 0;i < records.length;i++) {
            var line_record = records[i];
            for (var j = 0;j < config_records.length;j++) {
                var config_record = config_records[j],
                    validation_type = config_record.get('validation_type'),
                    column_name = config_record.get('column_name'),
                    display_name = config_record.get('column_name') + '_n',
                    field_bak_flag = config_record.get('field_bak_flag');
                if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
                    var documentMapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_code',
                            to: column_name
                        }];
                        line_record.getField(column_name).setMapping(documentMapping);
                    } else {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_name',
                            to: display_name
                        }];
                        line_record.getField(display_name).setMapping(documentMapping);
                    }
                } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
                    var combobox_field;
                    var combobox_documentmapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        combobox_field = line_record.getField(column_name);
                        combobox_field.setPropertity('displayfield', 'value_code');
                    } else {
                        combobox_field = line_record.getField(display_name);
                        combobox_field.setPropertity('displayfield', 'value_name');
                    }
                }
                if(field_bak_flag=='Y'){
		           var bak_name=column_name+'_bak';
		           line_record.set(bak_name,line_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
		        }
            }
            window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, line_record,config_records,'');
        }
        if(''=='Y'){
	        var show_history_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_show_history_ds');
	    	window['CCR_UNIVERSAL_G_REPURCHASE_SHOW_HISTORY'](show_history_ds,ds);
    	}
    }else{
    	window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, '',config_records,'');
    }
};
window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE'] = function(ds,record) {
	var form_ds_id = 'CCR_UNIVERSAL__con_contract_bp_ds';
    if ($L.CmpManager.get(form_ds_id)) {
        var form_ds = $(form_ds_id);
        if (record.get('RECORD_ID'.toLowerCase())) {
            form_ds.setQueryParameter('RECORD_ID'.toLowerCase(), record.get('RECORD_ID'.toLowerCase()));
            form_ds.query();
        }
    }
};
window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_REPURCHASE_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds = $('CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_REPURCHASE';
    if ('FBC_CCR_1'&&'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_query'](ds, qpara,'');
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_select'](ds,record,'');
};

window['CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_unselect'](ds,record,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BANK_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BANK_con_layout_config_ds');
window['CCR_UNIVERSAL_rootDataSetList'].push('CCR_UNIVERSAL_G_BANK_con_contract_ds');
window['CCR_UNIVERSAL_layoutDataSetObj']['CCR_UNIVERSAL_G_BANK_con_contract_ds']='CONTRACT_ID';
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_BANK_con_contract_ds');
window['CCR_UNIVERSAL_G_BANK_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_G_BANK_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_G_BANK_con_layout_config_ds').getAll();
    if (!'con_contract'&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if('con_contract'&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_G_BANK_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_BANK_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_G_BANK_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','G_BANK');
		window['CCR_UNIVERSAL_G_BANK_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_G_BANK_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_G_BANK_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_G_BANK_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_G_BANK_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_G_BANK_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!'con_contract'){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_G_BANK_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_G_BANK_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_G_BANK_CHILD_ONREADY'] = function() {
	if('con_contract'&&'con_contract'&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_G_BANK_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!'con_contract'){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_G_BANK_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_G_BANK_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_G_BANK_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_BANK_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_G_BANK_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_BANK';
    if ('FBC_CCR_1'&& 'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_G_BANK_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_G_BANK_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_FINANCE_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds');
window['CCR_UNIVERSAL_rootDataSetList'].push('CCR_UNIVERSAL_F_FINANCE_con_contract_ds');
window['CCR_UNIVERSAL_layoutDataSetObj']['CCR_UNIVERSAL_F_FINANCE_con_contract_ds']='CONTRACT_ID';
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_FINANCE_con_contract_ds');
window['CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds').getAll();
    if (!'con_contract'&&!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if('con_contract'&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_F_FINANCE_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_F_FINANCE_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CONTRACT_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','F_FINANCE');
		window['CCR_UNIVERSAL_F_FINANCE_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_F_FINANCE_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_F_FINANCE_con_contract_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_F_FINANCE_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_F_FINANCE_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_F_FINANCE_con_contract_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!'con_contract'){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_F_FINANCE_con_contract_show_history_ds');
		        	window['CCR_UNIVERSAL_F_FINANCE_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_F_FINANCE_CHILD_ONREADY'] = function() {
	if('con_contract'&&'con_contract'&&'con_contract_lv'){
	    var base_ds=$('CCR_UNIVERSAL_F_FINANCE_con_contract_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CONTRACT_ID'.toLowerCase()]&&!'con_contract'){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_F_FINANCE_con_contract_show_history_ds');
			        	window['CCR_UNIVERSAL_F_FINANCE_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_F_FINANCE_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'F_FINANCE';
    if ('FBC_CCR_1'&& 'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_F_FINANCE_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_CASHFLOW_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds');
function HLS_FORMATMONEY(v, p) {
    return Leaf.formatNumber(v, p);
}

function HLS_FORMATMONEY_ZERO_FILL(v, p) {
    return Leaf.formatNumber(v, p).replace(/0*$/g, '').replace(/\.$/, '');
}

function ON_GRID_COMBOBOX_FOCUS(combobox) {
    if (!combobox.optionDataSet.isLoaded) {
        combobox.optionDataSet.isLoaded = true;
        combobox.optionDataSet.query();
    }
}

window['CCR_UNIVERSAL_G_CASHFLOW_CON_GRID_PROCESS'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};
window['CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN'] = function(value, record, name) {
    var editor_record = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').find('column_name', name),
        precision = editor_record.get('precision'),
        validation_type = editor_record.get('validation_type');
    if ((validation_type == 'NUMBERFIELD' || validation_type == 'PERCENTFIELD') && !Ext.isEmpty(value)) {
        if (editor_record.get('allow_format') == 'TRUE') {
            if (precision) {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return HLS_FORMATMONEY(value, precision);
                } else {
                    return HLS_FORMATMONEY_ZERO_FILL(value, precision);
                }
            } else {
                return HLS_FORMATMONEY(value);
            }
        } else {
            if (precision && editor_record.get('allow_decimal') == 'TRUE') {
                if (editor_record.get('zero_fill') == 'TRUE') {
                    return parseFloat(value).toFixed(precision);
                } else {
                    return parseFloat(value).toFixed(precision).replace(/0*$/g, '').replace(/\.$/, '');
                }
            } else {
                if (editor_record.get('allow_decimal') == 'TRUE') {
                    return value;
                } else {
                    return parseFloat(parseFloat(value).toFixed(0));
                }
            }
        }
    } else if (validation_type == 'DATEPICKER') {
        return Leaf.formatDate(value);
    } else {
        return value;
    }
};
            
window['CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_LN_PICTURE'] = function(value, record, name) {
    var pic = window['CCR_UNIVERSAL_dynamic_pic_renderer'](record, name,'');
    if (pic) {
        return pic;
    } else {
        return '';
    }
};

window['CCR_UNIVERSAL_G_CASHFLOW_RENDERER'] = function(value, record, name) {	
	 var config_record = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_G_CASHFLOW_GRID_QUERY'] = function() {
    $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds').query();
};
window['CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR'] = function(record, name) {
    name = GET_CONFIG_COLUMN_NAME(name);
    var config_record = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').find('column_name', name);
    if (config_record) {
        var editor = 'CCR_UNIVERSAL_G_CASHFLOW_' + name + '_id';
        if (config_record.get('readonly_input_mode')=='TRUE') {
            return '';
        }
        if (!record.isNew && config_record.get('input_mode') == 'REQUIRED_ONLY_ADD') {
            return '';
        } else {
            return editor;
        }
    }else{
    	return '';
    }
};
window['CCR_UNIVERSAL_G_CASHFLOW_ON_GRID_OBJECT_FOCUS'] = function(object) {
    var config_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds'),
        name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_G_CASHFLOW_SHOW_HISTORY']=function(show_history_ds,base_ds){
	if('' == 'Y'&&base_ds.getAll().length){
		var records=base_ds.getAll();
		for(var i=0;i<records.length;i++){
			var record=records[i];
			Leaf.request({
				url:'/cus/autocrud/layout.server_doc_layout_show_history/query',
				para:{
					table_name:'con_contract_cashflow'||'ERROR',
					table_pk_value:record.get('CASHFLOW_ID'.toLowerCase()),
					layout_code:'CCR_UNIVERSAL',
					tab_code:'G_CASHFLOW'
				},
				success:function(res){
					var current_base_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds');
					var current_records= current_base_ds.getAll();
					for(var j=0;j<current_records.length;j++){
						var current_record = current_records[j];
						if(res.result && res.result.record && res.result.record.length){
						   for(var i=0;i<res.result.record.length;i++){
						   	  var history_record = res.result.record[i];
						   	  if(current_record.get('CASHFLOW_ID'.toLowerCase())==history_record['table_pk_value']){
						   	  	 for(var name in current_record.data){
						   	  	 	if(GET_CONFIG_COLUMN_NAME(name).toUpperCase()==history_record['column_name']){
						   	  	 		var grid_id  = 'CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_layout_grid_id';
										if($(grid_id).findColByName(name.toLowerCase())){
											current_record.getField(name).setPropertity('tooltip', history_record['from_value']);
											Ext.get(grid_id).select('tr[_row='+current_record.id+'] td[dataindex=' + name.toLowerCase() + ']').setStyle({
							                    background:'#FF9965'
							                });
						                }
						                continue;
						   	  	 	}
						   	  	 }
						   	  }
						   }
						}
					}
				},
				scope:this
			});
		}
	}
};

window['CCR_UNIVERSAL_G_CASHFLOW_CHILD_ONREADY'] = function() {
    if('con_contract_cashflow'&&'con_contract'&&'con_contract_cashflow_lv'){
	    var base_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds');
	    var parent_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
	    
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if('' == 'Y'){
		    	var show_history_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_show_history_ds');
	        	window['CCR_UNIVERSAL_G_CASHFLOW_SHOW_HISTORY'](show_history_ds,base_ds);
        	}
	    }
	    
	   	function base_ds_query(){
	   		base_ds.setQueryParameter('contract_id', parent_ds.getCurrentRecord().get('contract_id'));
	        base_ds.on('load',base_ds_load);
	        base_ds.query();
	   	}
	    parent_ds.on('indexchange', function(ds,record) {
	    	if(!record.isNew){
	        	base_ds_query();
	        }
	    });
	    if(parent_ds.getAll().length && parent_ds.getCurrentRecord() && !parent_ds.getCurrentRecord().isNew){
	    	base_ds_query();
	    }
    }
};

window['CCR_UNIVERSAL_G_CASHFLOW_ONREADY'] = function() {
    var base_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds');
    function base_ds_load(ds){
    	base_ds.un('load',base_ds_load);
    	if('' == 'Y'){
	    	var show_history_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_show_history_ds');
	    	window['CCR_UNIVERSAL_G_CASHFLOW_SHOW_HISTORY'](show_history_ds,base_ds);
    	}
    }
    base_ds.on('load',base_ds_load);
    base_ds.query();
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD'] = function(ds) {
    var line_record = ds.getCurrentRecord(),
        parent_table_tab_code = 'FBC_CCR_1',
        parent_table = 'con_contract',
        parent_base_table_pk = 'contract_id';
    var config_records = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').getAll();
	var parent_ds_id = 'CCR_UNIVERSAL_'+ parent_table_tab_code + '_' + parent_table + '_ds';
	var head_record = '';
    if(parent_table && $L.CmpManager.get(parent_ds_id)){
	    head_record = $(parent_ds_id).getCurrentRecord();
	    if (head_record&&head_record.get(parent_base_table_pk)) {
	        line_record.set(parent_base_table_pk, head_record.get(parent_base_table_pk));
	        if ('con_contract_cashflow'.toUpperCase() == 'PRJ_QUOTATION') {
	            line_record.set('document_id', head_record.get(parent_base_table_pk));
	        }
	    }
    }
    if(!line_record.get('document_category')){
    	line_record.set('document_category', 'CONTRACT');
    }
    line_record.set('bp_seq', '');
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = config_record.get('column_name') + '_n';
        if (head_record && config_record.get('copy_from_parent_tab') == 'Y') {
            line_record.set(column_name, head_record.get(column_name));
            line_record.set(display_name, head_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                line_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                line_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            var combobox_documentmapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = line_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
                line_record.getField(column_name).setMapping(combobox_documentmapping);
            } else {
                combobox_field = line_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
                line_record.getField(display_name).setMapping(combobox_documentmapping);
            }
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_add'](ds, line_record , config_records,'');
};
window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD'] = function(ds) {
    var records = ds.getAll();
    var config_records = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').getAll();
    if (records.length) {
        for (var i = 0;i < records.length;i++) {
            var line_record = records[i];
            for (var j = 0;j < config_records.length;j++) {
                var config_record = config_records[j],
                    validation_type = config_record.get('validation_type'),
                    column_name = config_record.get('column_name'),
                    display_name = config_record.get('column_name') + '_n',
                    field_bak_flag = config_record.get('field_bak_flag');
                if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
                    var documentMapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_code',
                            to: column_name
                        }];
                        line_record.getField(column_name).setMapping(documentMapping);
                    } else {
                        documentMapping = [{
                            from: 'value_code',
                            to: column_name
                        }, {
                            from: 'value_name',
                            to: display_name
                        }];
                        line_record.getField(display_name).setMapping(documentMapping);
                    }
                } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
                    var combobox_field;
                    var combobox_documentmapping;
                    if (config_record.get('lov_return_vcode') == 'Y') {
                        combobox_field = line_record.getField(column_name);
                        combobox_field.setPropertity('displayfield', 'value_code');
                    } else {
                        combobox_field = line_record.getField(display_name);
                        combobox_field.setPropertity('displayfield', 'value_name');
                    }
                }
                if(field_bak_flag=='Y'){
		           var bak_name=column_name+'_bak';
		           line_record.set(bak_name,line_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
		        }
            }
            window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, line_record,config_records,'');
        }
        if(''=='Y'){
	        var show_history_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_show_history_ds');
	    	window['CCR_UNIVERSAL_G_CASHFLOW_SHOW_HISTORY'](show_history_ds,ds);
    	}
    }else{
    	window['CCR_UNIVERSAL_on_layout_dynamic_grid_load'](ds, '',config_records,'');
    }
};
window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE'] = function(ds,record) {
	var form_ds_id = 'CCR_UNIVERSAL__con_contract_cashflow_ds';
    if ($L.CmpManager.get(form_ds_id)) {
        var form_ds = $(form_ds_id);
        if (record.get('CASHFLOW_ID'.toLowerCase())) {
            form_ds.setQueryParameter('CASHFLOW_ID'.toLowerCase(), record.get('CASHFLOW_ID'.toLowerCase()));
            form_ds.query();
        }
    }
};
window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_G_CASHFLOW_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds = $('CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'G_CASHFLOW';
    if ('FBC_CCR_1'&&'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_query'](ds, qpara,'');
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_select'](ds,record,'');
};

window['CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT'] = function(ds, record) {
    window['CCR_UNIVERSAL_on_layout_dynamic_grid_unselect'](ds,record,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_STATUS_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_STATUS_con_contract_status_ds');
window['CCR_UNIVERSAL_F_STATUS_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds').getAll();
    if (!'con_contract'&&!window['CCR_UNIVERSAL_all_parameters'][''.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['contract_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if('con_contract'&&'contract_id'){
    	parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('contract_id')){
	       head_record.set('contract_id',parent_record.get('contract_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_F_STATUS_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_F_STATUS_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get(''.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','F_STATUS');
		window['CCR_UNIVERSAL_F_STATUS_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_F_STATUS_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_F_STATUS_con_contract_status_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_F_STATUS_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_F_STATUS_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_F_STATUS_con_contract_status_ds');
	if(!window['CCR_UNIVERSAL_all_parameters'][''.toLowerCase()]&&!'con_contract'){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('contract_id',window['CCR_UNIVERSAL_all_parameters']['contract_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_F_STATUS_con_contract_status_show_history_ds');
		        	window['CCR_UNIVERSAL_F_STATUS_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_F_STATUS_CHILD_ONREADY'] = function() {
	if('con_contract_status'&&'con_contract'&&'CON_CONTRACT_STATUS_LV'){
	    var base_ds=$('CCR_UNIVERSAL_F_STATUS_con_contract_status_ds');
		var parent_ds=$('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds');
		if(!window['CCR_UNIVERSAL_all_parameters'][''.toLowerCase()]&&!'con_contract'){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('contract_id',parent_ds.getCurrentRecord().get('contract_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_F_STATUS_con_contract_status_show_history_ds');
			        	window['CCR_UNIVERSAL_F_STATUS_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_F_STATUS_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'F_STATUS';
    if ('FBC_CCR_1'&& 'con_contract') {
        parent_record = $('CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_F_STATUS_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_STATUS_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_DESCRIPTION_lov_getmapping_ds');
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
window['CCR_UNIVERSAL_rootDataSetList'].push('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds');
window['CCR_UNIVERSAL_layoutDataSetObj']['CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds']='CHANGE_REQ_ID';
window['CCR_UNIVERSAL_layoutDataSetList'].push('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds');
window['CCR_UNIVERSAL_F_DESCRIPTION_ON_FORM_OBJECT_FOCUS'] = function(object) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
	}
    var name = GET_CONFIG_COLUMN_NAME(object.binder.name),
        display_name = object.binder.name,
        record = object.record || object.binder.ds.create();
    var config_record = config_ds.find('column_name', name);
    var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
        lov_cascade_para2 = config_record.get('lov_cascade_para2'),
        lov_cascade_para3 = config_record.get('lov_cascade_para3'),
        field = record.getField(display_name);
    if (object instanceof $L.Lov) {
        if (config_record.get('validation_type') == 'LOV' || config_record.get('validation_type') == 'LOV_C'|| config_record.get('validation_type') == 'LOV_D'|| config_record.get('validation_type') == 'LOV_D_C') {
            field.setLovPara('column_name', name);
            field.setLovPara('tab_code', config_record.get('tab_code'));
            field.setLovPara('config_id', config_record.get('config_id'));
            field.setLovPara('layout_code', config_record.get('layout_code'));
        }
        SETOBJECTPARA('LOV', '', field, lov_cascade_para1, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para2, record);
        SETOBJECTPARA('LOV', '', field, lov_cascade_para3, record);
    } else if (object instanceof $L.ComboBox) {
        var combobox_ds = object.optionDataSet;
        combobox_ds.setQueryParameter('column_name', name);
        combobox_ds.setQueryParameter('tab_code', config_record.get('tab_code'));
        combobox_ds.setQueryParameter('layout_code', config_record.get('layout_code'));
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para1, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para2, record);
        SETOBJECTPARA('COMBOBOX', combobox_ds, field, lov_cascade_para3, record);
        combobox_ds.query();
    }
};

window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT'] = function(ds) {
    var head_record;
    if(''){
    	head_record = ds.getCurrentRecord();
    }else{
    	head_record = ds.getCurrentRecord() || ds.create();
    }
    if(!head_record){
    	return;
    }
    head_record.set('bp_seq', '');
    var config_records = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds').getAll();
    if (!''&&!window['CCR_UNIVERSAL_all_parameters']['CHANGE_REQ_ID'.toLowerCase()]&&!window['CCR_UNIVERSAL_all_parameters']['change_req_id'.toLowerCase()]&&'') {
        var default_value_ds = (parent == top ? self : parent)['$'](''),
            default_record = default_value_ds.getCurrentRecord();
        for (var name in head_record.data) {
            if (!Ext.isEmpty(default_record.get(name)) && name.indexOf('price_list') == '-1') {
                head_record.set(name, default_record.get(name));
            }
        }
    }
    var parent_ds='';
    var parent_record = '';
    if(''&&'change_req_id'){
    	parent_ds=$('CCR_UNIVERSAL_F_DESCRIPTION__ds');
    	parent_record = parent_ds.getCurrentRecord();
    	if(parent_record && !head_record.get('change_req_id')){
	       head_record.set('change_req_id',parent_record.get('change_req_id'));
    	}
    }
    for (var i = 0;i < config_records.length;i++) {
        var config_record = config_records[i],
            validation_type = config_record.get('validation_type'),
            column_name = config_record.get('column_name'),
            display_name = column_name + '_n',
            field_bak_flag = config_record.get('field_bak_flag');
        if (head_record && head_record.isNew && parent_record && config_record.get('copy_from_parent_tab') == 'Y') {
            head_record.set(column_name, parent_record.get(column_name));
            head_record.set(display_name, parent_record.get(display_name));
        }
        if (validation_type == 'LOV' || validation_type == 'LOV_C' || validation_type == 'TREE' || validation_type == 'TREE_C') {
            var documentMapping;
            if (config_record.get('lov_return_vcode') == 'Y') {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_code',
                    to: column_name
                }];
                head_record.getField(column_name).setMapping(documentMapping);
            } else {
                documentMapping = [{
                    from: 'value_code',
                    to: column_name
                }, {
                    from: 'value_name',
                    to: display_name
                }];
                head_record.getField(display_name).setMapping(documentMapping);
            }
        } else if (validation_type == 'COMBOBOX' || validation_type == 'COMBOBOX_C') {
            var combobox_field;
            if (config_record.get('lov_return_vcode') == 'Y') {
                combobox_field = head_record.getField(column_name);
                combobox_field.setPropertity('displayfield', 'value_code');
            } else {
                combobox_field = head_record.getField(display_name);
                combobox_field.setPropertity('displayfield', 'value_name');
            }
        }
        if(field_bak_flag=='Y'){
           var bak_name=column_name+'_bak';
           head_record.set(bak_name,head_record.get(column_name)||'LAYOUT_FIELD_VALUE_INIT_NULL',true);
        }
    }
    window['CCR_UNIVERSAL_on_layout_dynamic_form_add_and_load'](ds, head_record,config_records,'');
};

window['CCR_UNIVERSAL_F_DESCRIPTION_CON_FORM_PROCESSFUNCTION'] = function(datas) {
    for (var i = 0;i < datas.length;i++) {
        var temp = datas[i];
        for (var name in temp.data) {
            var temp_record = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds').find('column_name', name);
            if (temp_record) {
                if (temp_record.get('validation_type') == 'NUMBERFIELD') {
                    temp.data[name] = isNaN(temp.data[name]) == true ? temp.data[name] : parseFloat(parseFloat(temp.data[name]).toFixed(temp_record.get('precision')));
                }
            }
        }
    }
    return datas;
};

window['CCR_UNIVERSAL_F_DESCRIPTION_SHOW_HISTORY']=function(show_history_ds,source_ds){
	if('' == 'Y' && source_ds.getAll().length){
		show_history_ds.setQueryParameter('table_pk_value',source_ds.getAt(0).get('CHANGE_REQ_ID'.toLowerCase()));
		show_history_ds.setQueryParameter('layout_code','CCR_UNIVERSAL');
		show_history_ds.setQueryParameter('tab_code','F_DESCRIPTION');
		window['CCR_UNIVERSAL_F_DESCRIPTION_show_history_ds_load']=function(ds){
			show_history_ds.un('load',window['CCR_UNIVERSAL_F_DESCRIPTION_show_history_ds_load']);
			var history_records = ds.getAll();
			var record = source_ds.getAt(0);
			if(history_records.length&&!record.isNew){
				for(var name in record.data){
					var history_record =show_history_ds.find('column_name',GET_CONFIG_COLUMN_NAME(name).toUpperCase());
					if(history_record){
						var fieldId = ('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_' + GET_CONFIG_COLUMN_NAME(name)).toUpperCase();
						if($L.CmpManager.get(fieldId)){
							record.getField(name).setPropertity('tooltip', history_record.get('from_value')||' ');
							if(Ext.get(fieldId).child('input')){
								Ext.get(fieldId).child('input').setStyle({
									background:'#FF9965'
								});
							}
						}
					}
				}
			}
		}
		show_history_ds.on('load',window['CCR_UNIVERSAL_F_DESCRIPTION_show_history_ds_load']);
		show_history_ds.query();
	}
};

window['CCR_UNIVERSAL_F_DESCRIPTION_ONREADY'] = function() {
    var base_ds=$('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds');
	if(!window['CCR_UNIVERSAL_all_parameters']['CHANGE_REQ_ID'.toLowerCase()]&&!''){
		base_ds.create();
	}else{
	    base_ds.setQueryParameter('change_req_id',window['CCR_UNIVERSAL_all_parameters']['change_req_id']);
	    function base_ds_load(ds){
	    	base_ds.un('load',base_ds_load);
	    	if(!base_ds.getAll().length){
	            base_ds.create();
	        }else{
	        	if('' == 'Y'){
		        	var show_history_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_show_history_ds');
		        	window['CCR_UNIVERSAL_F_DESCRIPTION_SHOW_HISTORY'](show_history_ds,base_ds);
	        	}
	        }
	    }
	    base_ds.on('load',base_ds_load);
	    base_ds.query();
	}
};

window['CCR_UNIVERSAL_F_DESCRIPTION_CHILD_ONREADY'] = function() {
	if('con_contract_change_req'&&''&&'con_contract_change_req_lv'){
	    var base_ds=$('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds');
		var parent_ds=$('CCR_UNIVERSAL_F_DESCRIPTION__ds');
		if(!window['CCR_UNIVERSAL_all_parameters']['CHANGE_REQ_ID'.toLowerCase()]&&!''){
			base_ds.create();
		}else{
			function base_ds_query(){
				base_ds.setQueryParameter('change_req_id',parent_ds.getCurrentRecord().get('change_req_id'));
			    base_ds.query();
			}
			function base_ds_check(){
				base_ds.un('load',base_ds_check);
				if(!base_ds.getAll().length && !''){
			      	  base_ds.create(); 
		        }else{
		        	if('' == 'Y'){
			        	var show_history_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_show_history_ds');
			        	window['CCR_UNIVERSAL_F_DESCRIPTION_SHOW_HISTORY'](show_history_ds,base_ds);
		        	}
		        }
			}
			function base_ds_ajax(){
				base_ds_query();
			    base_ds.on('load',base_ds_check);
			}
		    parent_ds.on('indexchange',function(ds,record){
		    	if(!record.isNew){
			    	base_ds_ajax();
			    }else{
			    	if(!base_ds.getAll().length){
			    		base_ds.create();
			    	}
			    }
		    });
		    if(parent_ds.getAll().length && !base_ds.getAll().length){
		    	base_ds_ajax();
		    }else if(!parent_ds.getAll().length && !base_ds.getAll().length){
		        base_ds.create();
		    }
		}
	}
};

window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_UPDATE'] = function(ds, record, name, value, old_value) {
    window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'](ds, record, name, value, old_value);
    window['CCR_UNIVERSAL_on_layout_dynamic_update'](ds, record, name, value, old_value,'');
};

window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_CLEAR_LOVPARA'] = function(ds, record, name, value, old_value) {
    if (Ext.isEmpty(value)) {
        var query_name = GET_CONFIG_COLUMN_NAME(name),
            field = record.getField(name),
            config_records= $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds').getAll();
        var current_field_value;
        for (var i = 0;i < config_records.length;i++) {
            var config_record = config_records[i];
            var lov_cascade_para1 = config_record.get('lov_cascade_para1'),
                lov_cascade_para2 = config_record.get('lov_cascade_para2'),
                lov_cascade_para3 = config_record.get('lov_cascade_para3');
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para1, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para2, record, config_record);
            SET_CLEAR_LOVPARA_EMPTY(query_name, lov_cascade_para3, record, config_record);
        }
        var current_field = record.getField(name),
            current_lovpara = current_field.get('lovpara'),
            validation_sql;
        if (current_lovpara) {
            validation_sql = current_lovpara['validation_sql'];
        }
        if (!value && validation_sql) {
            var current_loadpara_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_lov_getmapping_ds');

            function on_lov_getmapping_load(load_ds) {
                var lov_records = load_ds.getAll();
                for (var j = 0;j < lov_records.length;j++) {
                    var lov_record = lov_records[j],
                        mapping = current_field.get('mapping'),
                        exists_flag = false,
                        lov_name = lov_record.data['name'].toLowerCase();
                    for (var i = 0,
                        mapping_length = mapping.length;i < mapping_length;i++) {
                        if ((exists_flag = (lov_name == mapping[i]['from']))) {
                            break;
                        }
                    }
                    if (!exists_flag) {
                        record.set(lov_name, '');
                    }
                    current_field.setMapping(mapping);
                }
                current_loadpara_ds.un('load', on_lov_getmapping_load);
                unlock_current_window();
            }
            for (var lov_para_name in current_lovpara) {
                current_loadpara_ds.setQueryParameter(lov_para_name, record.get(lov_para_name));
            }
            current_loadpara_ds.setQueryParameter('validation_sql', validation_sql);
            lock_current_window();
            current_loadpara_ds.on('load', on_lov_getmapping_load);
            current_loadpara_ds.query();
        }
    }
    for (var show_name in record.data) {
        var show_field = record.getField(show_name);
        var lovpara_field = show_field.get('lovpara');
        if (lovpara_field && lovpara_field[name]) {
            record.set(show_name, '');
            var save_name = GET_CONFIG_COLUMN_NAME(show_name);
            if (save_name != show_name) {
                record.set(save_name, '');
            }
        }
    }
};

window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FIELD_JAVASCRIPT'] = function(ds, record, name, value, old_value, fromLoad) {
    var config_ds=$('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
    var config_record = config_ds.find('column_name', name);
    var parent_record='';
    var layout_code = 'CCR_UNIVERSAL',
        tab_code = 'F_DESCRIPTION';
    if ('F_DESCRIPTION'&& '') {
        parent_record = $('CCR_UNIVERSAL_F_DESCRIPTION__ds').getAt(0);
    }
    if (config_record && config_record.get('field_javascript')) {
        eval(config_record.get('field_javascript'));
    }
};

window['CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED']=function(ds) {
	window['CCR_UNIVERSAL_on_layout_dynamic_submitfailed'](ds,'');
};

window['CCR_UNIVERSAL_F_DESCRIPTION_FIELD_LINK_RENDERER']=function(value,record,name) {
	var config_ds;
	if('Y'=='N'){
		config_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
	}else{
		config_ds = $('CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds');
	}
	var config_record = config_ds.find('column_name', name);
	 if(config_record.get('validation_type') == 'BUTTON'){
	 	return window['CCR_UNIVERSAL_dynamic_button_renderer'](value, record, name,config_record,'');
	 }else{
     	return window['CCR_UNIVERSAL_dynamic_link_renderer'](value, record, name,config_record,'');
	 }
};
window['CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY'] = function(ds, qpara) {
    window['CCR_UNIVERSAL_on_layout_dynamic_form_query'](ds, qpara,'');
};
]]></script>
        <a:dataSets>
            <a:dataSet id="CCR_UNIVERSAL_all_tab_config_ds">
                <a:datas>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_BASIC" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="0" margin_top="2" margin_width="30" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_BASIC" query_only="N" row_count="0" show_box="Y" tab_code="T_BASIC" tab_desc="基本信息" tab_group="10" tab_seq="10" tab_type="TAB"/>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="120" form_binder_tab_code="FB_CCR" label_width="100" layout_code="CCR_UNIVERSAL" margin_top="2" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="FB_CCR" query_only="N" row_count="0" show_box="N" tab_code="FB_CCR" tab_seq="20" tab_type="FIELDBOX"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="FBC_CCR_1" label_width="120" layout_code="CCR_UNIVERSAL" margin_top="2" parent_base_table_pk="contract_id" parent_tab_code="FB_CCR" parent_tab_code_flag="Y" parent_table_flag="N" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="con_contract_lv" row_count="0" show_box="N" tab_code="FBC_CCR_1" tab_desc="变更信息" tab_seq="21" tab_type="FIELDBOXCOLUMN"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1112" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="FBC_CCR_1" label_width="120" layout_code="CCR_UNIVERSAL" margin_top="2" parent_base_table_pk="contract_id" parent_tab_code="FB_CCR" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="con_contract_lv" row_count="0" show_box="N" tab_code="FBC_CCR2" tab_seq="22" tab_type="FIELDBOXCOLUMN"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="FBC_CCR_1" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="100" margin_top="2" margin_width="50" parent_base_table_pk="contract_id" parent_tab_code="FB_CCR" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="con_contract_lv" row_count="6" show_box="Y" tab_code="FBC_CON_1" tab_desc="合同信息" tab_seq="23" tab_type="FIELDBOXCOLUMN"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="FBC_CCR_1" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="100" margin_top="2" margin_width="50" parent_base_table_pk="contract_id" parent_tab_code="FB_CCR" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="con_contract_lv" row_count="6" show_box="Y" tab_code="FBC_CON_2" tab_seq="24" tab_type="FIELDBOXCOLUMN"/>
                    <a:record box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_BP" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="340" margin_top="3" margin_width="50" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_BP" query_only="N" row_count="0" show_box="Y" tab_code="T_BP" tab_desc="商业伙伴" tab_group="20" tab_seq="30" tab_type="TAB"/>
                    <a:record base_table="con_contract_bp" base_table_pk="RECORD_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="true" field_width="150" form_binder_tab_code="G_BP" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="390" margin_top="3" margin_width="80" parent_base_table_pk="contract_id" parent_tab_code="T_BP" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="CON_CONTRACT_BP_CCR_LV" row_count="0" show_box="Y" tab_code="G_BP" tab_seq="35" tab_type="GRID"/>
                    <a:record box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_ASSET" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="340" margin_top="3" margin_width="50" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_ASSET" query_only="N" row_count="0" show_box="Y" tab_code="T_ASSET" tab_desc="资产信息" tab_group="20" tab_seq="40" tab_type="TAB"/>
                    <a:record base_table="con_contract_lease_item" base_table_pk="CONTRACT_LEASE_ITEM_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="true" field_width="150" form_binder_tab_code="G_ASSET" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="390" margin_top="3" margin_width="90" parent_base_table_pk="contract_id" parent_tab_code="T_ASSET" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="con_contract_lease_item_ccr_lv" row_count="0" show_box="Y" tab_code="G_ASSET" tab_seq="45" tab_type="GRID"/>
                    <a:record box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_MORTGAGE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="340" margin_top="3" margin_width="50" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_MORTGAGE" query_only="N" row_count="0" show_box="Y" tab_code="T_MORTGAGE" tab_desc="抵押物列表" tab_group="20" tab_seq="50" tab_type="TAB"/>
                    <a:record base_table="con_contract_mortgage" base_table_pk="CON_MORTGAGE_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="true" field_width="150" form_binder_tab_code="G_MORTGAGE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="390" margin_top="3" margin_width="80" parent_base_table_pk="contract_id" parent_tab_code="T_MORTGAGE" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="CON_CONTRACT_MORTGAGE_LV" row_count="0" show_box="Y" tab_code="G_MORTGAGE" tab_seq="55" tab_type="GRID"/>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="120" form_binder_tab_code="T_REPURCHASE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="340" margin_top="3" margin_width="50" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_REPURCHASE" query_only="Y" row_count="0" show_box="N" tab_code="T_REPURCHASE" tab_desc="回购担保" tab_group="20" tab_seq="60" tab_type="TAB"/>
                    <a:record base_table="con_contract_bp" base_table_pk="RECORD_ID" box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="true" field_width="120" form_binder_tab_code="G_REPURCHASE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="390" margin_top="3" margin_width="80" parent_base_table_pk="contract_id" parent_tab_code="T_REPURCHASE" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="CON_CONTRACT_BP_REPUR_LV" row_count="0" show_box="Y" tab_code="G_REPURCHASE" tab_seq="65" tab_type="GRID"/>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="120" form_binder_tab_code="T_BANK" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="340" margin_top="3" margin_width="50" parent_tab_code="T_BASIC" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_BANK" query_only="N" row_count="0" show_box="Y" tab_code="T_BANK" tab_desc="银行账户" tab_group="20" tab_seq="70" tab_type="TAB"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="120" form_binder_tab_code="G_BANK" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="390" margin_top="3" margin_width="80" parent_base_table_pk="contract_id" parent_tab_code="T_BANK" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="con_contract_lv" row_count="1" show_box="Y" tab_code="G_BANK" tab_seq="75" tab_type="FORM"/>
                    <a:record base_table="con_contract_status" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="F_STATUS" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="100" margin_top="3" margin_width="100" parent_base_table_pk="contract_id" parent_tab_code="T_STATUS" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="N" query_source="CON_CONTRACT_STATUS_LV" row_count="5" show_box="Y" tab_code="F_STATUS" tab_desc="合同状态" tab_seq="85" tab_type="FORM"/>
                    <a:record base_table="con_contract_change_req" base_table_pk="CHANGE_REQ_ID" box_width="1200" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="F_DESCRIPTION" label_width="120" layout_code="CCR_UNIVERSAL" margin_top="3" parent_base_table_pk="change_req_id" parent_tab_code="T_DESCRIPTION" parent_tab_code_flag="Y" parent_table_flag="N" parent_table_tab_code="F_DESCRIPTION" query_only="N" query_source="con_contract_change_req_lv" row_count="5" show_box="N" tab_code="F_DESCRIPTION" tab_seq="107" tab_type="FORM"/>
                    <a:record base_table="con_contract" base_table_pk="CONTRACT_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="F_FINANCE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="50" margin_top="3" margin_width="80" parent_base_table_pk="contract_id" parent_tab_code="T_FINANCE" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="con_contract_lv" row_count="14" show_box="Y" tab_code="F_FINANCE" tab_seq="115" tab_type="FORM"/>
                    <a:record base_table="con_contract_cashflow" base_table_pk="CASHFLOW_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="true" field_width="150" form_binder_tab_code="G_CASHFLOW" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="50" margin_top="3" margin_width="60" parent_base_table_pk="contract_id" parent_tab_code="T_CASHFLOW" parent_tab_code_flag="Y" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="con_contract_cashflow_lv" row_count="0" show_box="Y" tab_code="G_CASHFLOW" tab_seq="125" tab_type="GRID"/>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_FINANCE" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="0" margin_top="2" margin_width="30" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_FINANCE" query_only="Y" row_count="0" show_box="Y" tab_code="T_FINANCE" tab_desc="融资信息" tab_group="10" tab_seq="300" tab_type="TAB"/>
                    <a:record box_width="1200" column_count="0" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_CASHFLOW" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="0" margin_top="2" margin_width="30" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_CASHFLOW" query_only="Y" row_count="0" show_box="Y" tab_code="T_CASHFLOW" tab_desc="现金流" tab_group="10" tab_seq="400" tab_type="TAB"/>
                    <a:record base_table="con_contract_cashflow" base_table_pk="CASHFLOW_ID" box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="true" field_width="150" form_binder_tab_code="FBC_CCR_1" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="160" margin_top="2" margin_width="50" parent_base_table_pk="contract_id" parent_tab_code="T_DISBURSE" parent_tab_code_flag="N" parent_table="con_contract" parent_table_flag="Y" parent_table_tab_code="FBC_CCR_1" query_only="Y" query_source="con_contract_disbursing_lv" row_count="0" show_box="Y" tab_code="G_DISBURSE" tab_seq="450" tab_type="GRID"/>
                    <a:record box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_STATUS" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="0" margin_top="2" margin_width="30" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_STATUS" query_only="Y" row_count="0" show_box="Y" tab_code="T_STATUS" tab_desc="合同状态" tab_group="10" tab_seq="700" tab_type="TAB"/>
                    <a:record box_width="1112" column_count="4" configurable="Y" enabled_flag="Y" fetchall="false" field_width="150" form_binder_tab_code="T_DESCRIPTION" label_width="120" layout_code="CCR_UNIVERSAL" margin_height="100" margin_top="3" margin_width="50" parent_tab_code_flag="N" parent_table_flag="N" parent_table_tab_code="T_DESCRIPTION" query_only="N" row_count="0" show_box="Y" tab_code="T_DESCRIPTION" tab_desc="变更原因及说明" tab_group="10" tab_seq="800" tab_type="TAB"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSAL_virtual_ds" autocreate="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?function_code=CON731D&amp;function_usage=MODIFY&amp;number_of_tenant=&amp;number_of_guarantor=&amp;number_of_actual_controller=&amp;number_of_quotation=&amp;layout_code=CCR_UNIVERSAL&amp;tree_code=&amp;dynamic_source_table=&amp;dynamic_source_table_pk_value="/>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CCR_1_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CCR_1_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="price_list" config_id="45185" data_type="VARCHAR2" display_flag="Y" display_order="1" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="REQUIRED" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="价目表" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_sql="select price_list as value_code, description as value_name from hls_price_list where enabled_flag = &apos;Y&apos; and nvl(calc_usage, &apos;NORMAL&apos;) &lt;&gt; &apos;NORMAL&apos; order by order_seq" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_start_times" config_id="45179" data_type="NUMBER" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="9" input_mode="REQUIRED" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="起始期数/剩余期数" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="68" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_outstanding_times" config_id="45173" data_type="NUMBER" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="9" input_mode="REQUIRED" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="/" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="68" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_financing_overdue_rental" config_id="45168" data_type="VARCHAR2" default_value="0" display_flag="Y" display_order="51" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="1" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="参与融资/逾期租金" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="BOOLEAN_CHECKBOX" width="15" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_overdue_rental" config_id="45174" data_type="NUMBER" display_flag="Y" display_order="52" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="1" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="129" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="hd_user_col_n13" config_id="45180" data_type="NUMBER" default_value="0" display_flag="Y" display_order="61" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="2" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="参与融资/逾期罚息" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR_1" validation_type="BOOLEAN_CHECKBOX" width="15" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_penalty" config_id="45175" data_type="NUMBER" display_flag="Y" display_order="62" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="2" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="129" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="hd_user_col_n14" config_id="45181" data_type="NUMBER" default_value="0" display_flag="Y" display_order="71" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="3" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="参与融资/手续费用" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR_1" validation_type="BOOLEAN_CHECKBOX" width="15" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_fee" config_id="45166" data_type="NUMBER" display_flag="Y" display_order="72" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="3" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="129" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="hd_user_col_n15" config_id="45182" data_type="NUMBER" default_value="0" display_flag="Y" display_order="81" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="4" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="参与融资/法律费用" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR_1" validation_type="BOOLEAN_CHECKBOX" width="15" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="legal_fee" config_id="45183" data_type="NUMBER" display_flag="Y" display_order="82" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" field_group="4" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="129" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_added_principal" config_id="45165" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="追加本金" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_finance_amount" config_id="45167" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更后融资额" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_nominal_finance_amount" config_id="45169" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更后名义融资额" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_original_finance_amount" config_id="45170" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更前原始融资额" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_outstanding_prin_tax_incld" config_id="45171" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="剩余本金" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_outstanding_prin_ti_total" config_id="45172" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="剩余本金(所有期)" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_period_int_rate_implicit" config_id="45176" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="8" prompt="实际利率(变更期段内)" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_period_lease_start_date" config_id="45177" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更后起息日" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="DATEPICKER" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_pmt" config_id="45178" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更后每期租金" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR_1" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_debt_exemption_amount" config_id="106022" copy_from_parent_tab="N" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="罚息减免金额" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR2" underline="N" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="legal_fee" config_id="106027" data_type="NUMBER" display_flag="Y" display_order="60" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="法律费用" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR2" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_debt_exemption_amt_legal" config_id="106023" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="REQUIRED" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="法律费减免额" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR2" underline="N" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="ccr_deposit_balance" config_id="106024" data_type="NUMBER" display_flag="Y" display_order="80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="保证金余额" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CCR2" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_reschedule_start_times" config_id="116697" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="90" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付日调整开始期数" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR2" underline="N" validation_type="NUMBERFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_reschedule_date" config_id="116698" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" display_order="100" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付日调整后首期还款日期" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR2" underline="N" validation_type="DATEPICKER" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ccr_simplify_flag" config_id="106100" copy_from_parent_tab="N" data_type="VARCHAR2" default_value="N" display_flag="Y" display_order="110" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="是否简化流程" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="FBC_CCR2" underline="N" validation_type="CHECKBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="search_term_1" config_id="106519" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同号" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="FBC_CON_1" underline="N" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_name" config_id="44438" data_type="VARCHAR2" display_flag="N" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同名称" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id" config_id="44444" data_type="NUMBER" display_flag="Y" display_order="170" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="项目经理" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select employee_id as value_code, name as value_name from hls_salesman_v" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id_of_manager" config_id="44445" data_type="NUMBER" display_flag="N" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="部门负责人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select e.employee_id as value_code,e.name as value_name from exp_org_unit u,exp_employee_assigns a,exp_employees e where u.org_unit_type = &apos;SALES&apos; and u.chief_position_id = a.position_id and u.company_id = a.company_id and a.employee_id = e.employee_id and a.enabled_flag = &apos;Y&apos; and e.enabled_flag = &apos;Y&apos; and u.company_id = ${/session/@company_id}" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id_of_manager_n" config_id="44446" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="部门负责人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_id_tenant" config_id="44435" data_type="NUMBER" display_flag="N" display_order="190" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="主承租人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select bp_id as value_code, bp_name as value_name from hls_bp_master where  bp_category=&apos;TENANT&apos; and enabled_flag=&apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="currency" config_id="44441" data_type="VARCHAR2" display_flag="Y" display_order="200" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="币种" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select v.currency_code as value_code, v.currency_name as value_name from gld_currency_vl v where v.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_rental" config_id="44455" data_type="NUMBER" display_flag="Y" display_order="210" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租金总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_interest" config_id="44454" data_type="NUMBER" display_flag="Y" display_order="220" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="利息总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_fee" config_id="44453" data_type="NUMBER" display_flag="Y" display_order="230" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="管理费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_start_date" config_id="44449" data_type="DATE" display_flag="Y" display_order="300" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁期开始日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_type="DATEPICKER" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_number" config_id="44439" data_type="VARCHAR2" display_flag="N" display_order="400" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同序号" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="document_type" config_id="44443" data_type="VARCHAR2" display_flag="N" display_order="410" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select t.document_type as value_code, t.description as value_name from hls_document_type t where t.enabled_flag = &apos;Y&apos; and t.document_category=&apos;CONTRACT&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="business_type" config_id="44436" data_type="VARCHAR2" display_flag="N" display_order="420" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="业务类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="company_id" config_id="44437" data_type="NUMBER" display_flag="N" display_order="430" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="公司名称" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select company_id as value_code, company_short_name as value_name from fnd_companies_vl where company_type = &apos;1&apos; and enabled_flag = &apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_organization" config_id="44448" data_type="VARCHAR2" display_flag="N" display_order="440" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="业务部" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select lease_organization as value_code, description as value_name,hls_lease_org_pkg.manager_name(lease_organization,${@company_id}) as employee_id_of_manager_n, hls_lease_org_pkg.manager_id(lease_organization,${@company_id}) as employee_id_of_manager from hls_lease_organization where enabled_flag = &apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_channel" config_id="44447" data_type="VARCHAR2" display_flag="N" display_order="450" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业模式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select t1.lease_channel as value_code, t1.description as value_name from hls_lease_channel t1 where t1.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="division" config_id="44442" data_type="VARCHAR2" display_flag="N" display_order="460" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="产品线" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select t1.division as value_code, t1.description as value_name from hls_division t1 where t1.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_times" config_id="44451" data_type="NUMBER" display_flag="N" display_order="470" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="租赁期数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="annual_pay_times" config_id="44434" data_type="NUMBER" display_flag="N" display_order="480" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付频率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_1" validation_sql="select v.code_value as value_code,v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;HLS500_ANNUAL_PAY_TIMES&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_status_n" config_id="44440" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="FBC_CON_1" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_name" config_id="44462" data_type="VARCHAR2" display_flag="N" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同名称" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id" config_id="44468" data_type="NUMBER" display_flag="N" display_order="170" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="项目经理" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select employee_id as value_code, name as value_name from hls_salesman_v" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id_of_manager" config_id="44469" data_type="NUMBER" display_flag="N" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="部门负责人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select e.employee_id as value_code,e.name as value_name from exp_org_unit u,exp_employee_assigns a,exp_employees e where u.org_unit_type = &apos;SALES&apos; and u.chief_position_id = a.position_id and u.company_id = a.company_id and a.employee_id = e.employee_id and a.enabled_flag = &apos;Y&apos; and e.enabled_flag = &apos;Y&apos; and u.company_id = ${/session/@company_id}" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="employee_id_of_manager_n" config_id="44470" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="N" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="部门负责人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_id_tenant" config_id="44459" data_type="NUMBER" display_flag="N" display_order="190" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="主承租人" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select bp_id as value_code, bp_name as value_name from hls_bp_master where  bp_category=&apos;TENANT&apos; and enabled_flag=&apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="currency" config_id="44465" data_type="VARCHAR2" display_flag="N" display_order="200" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="币种" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select v.currency_code as value_code, v.currency_name as value_name from gld_currency_vl v where v.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_rental" config_id="44478" data_type="NUMBER" display_flag="N" display_order="210" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租金总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_interest" config_id="44477" data_type="NUMBER" display_flag="N" display_order="220" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="利息总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_fee" config_id="44476" data_type="NUMBER" display_flag="N" display_order="230" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="手续费/管理费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_type="NUMBERFIELD" width="150" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_start_date" config_id="44473" data_type="DATE" display_flag="N" display_order="300" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁期开始日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_type="DATEPICKER" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="lease_term" config_id="44474" data_type="NUMBER" display_flag="N" display_order="330" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁期(年)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_number" config_id="44463" data_type="VARCHAR2" display_flag="Y" display_order="400" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同序号" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="document_type" config_id="44467" data_type="VARCHAR2" display_flag="Y" display_order="410" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select t.document_type as value_code, t.description as value_name from hls_document_type t where t.enabled_flag = &apos;Y&apos; and t.document_category=&apos;CONTRACT&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="business_type" config_id="44460" data_type="VARCHAR2" display_flag="N" display_order="420" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="业务类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="company_id" config_id="44461" data_type="NUMBER" display_flag="Y" display_order="430" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="公司名称" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select company_id as value_code, company_short_name as value_name from fnd_companies_vl where company_type = &apos;1&apos; and enabled_flag = &apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_organization" config_id="44472" data_type="VARCHAR2" display_flag="Y" display_order="440" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="业务部" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select lease_organization as value_code, description as value_name,hls_lease_org_pkg.manager_name(lease_organization,${@company_id}) as employee_id_of_manager_n, hls_lease_org_pkg.manager_id(lease_organization,${@company_id}) as employee_id_of_manager from hls_lease_organization where enabled_flag = &apos;Y&apos;" validation_type="LOV" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_channel" config_id="44471" data_type="VARCHAR2" display_flag="Y" display_order="450" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业模式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select t1.lease_channel as value_code, t1.description as value_name from hls_lease_channel t1 where t1.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="division" config_id="44466" data_type="VARCHAR2" display_flag="Y" display_order="460" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="产品线" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select t1.division as value_code, t1.description as value_name from hls_division t1 where t1.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_times" config_id="44475" data_type="NUMBER" display_flag="Y" display_order="470" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="租赁期数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="annual_pay_times" config_id="44458" data_type="NUMBER" display_flag="Y" display_order="480" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付频率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="FBC_CON_2" validation_sql="select v.code_value as value_code,v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;HLS500_ANNUAL_PAY_TIMES&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="150" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_status_n" config_id="44464" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="FBC_CON_2" validation_type="TEXTFIELD" width="150" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_1_currency_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_1_document_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_1_lease_channel_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_1_division_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_1_annual_pay_times_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_2_currency_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_2_document_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_2_lease_channel_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_2_division_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALFBC_CON_2_annual_pay_times_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" bindname="CCR_UNIVERSAL_FBC_CCR_1_con_contract" bindtarget="CCR_UNIVERSAL_virtual_ds" fetchall="false" processfunction="CCR_UNIVERSAL_FBC_CCR_1_CON_FORM_PROCESSFUNCTION" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=FBC_CCR_1&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract&amp;query_only=N&amp;tab_code=FBC_CCR_1&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="submitfailed" handler="window[&apos;CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED&apos;]"/>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_FBC_CCR_1_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="price_list_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="false" required="true" requiredmessage="变更信息价目表${l:HLS.NOT_NULL}" title="价目表">
                        <a:mapping>
                            <a:map from="value_code" to="price_list"/>
                            <a:map from="value_name" to="price_list_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="price_list" readonly="false" required="true" requiredmessage="变更信息价目表${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_start_times" readonly="false" required="true" requiredmessage="变更信息起始期数/剩余期数${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_outstanding_times" readonly="false" required="true" requiredmessage="变更信息/${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_financing_overdue_rental" checkedvalue="1" defaultvalue="0" readonly="false" required="true" requiredmessage="变更信息参与融资/逾期租金${l:HLS.NOT_NULL}" uncheckedvalue="0"/>
                    <a:field name="ccr_overdue_rental" readonly="true" required="false" requiredmessage="变更信息null${l:HLS.NOT_NULL}"/>
                    <a:field name="hd_user_col_n13" checkedvalue="1" defaultvalue="0" readonly="false" required="true" requiredmessage="变更信息参与融资/逾期罚息${l:HLS.NOT_NULL}" uncheckedvalue="0"/>
                    <a:field name="ccr_penalty" readonly="true" required="false" requiredmessage="变更信息null${l:HLS.NOT_NULL}"/>
                    <a:field name="hd_user_col_n14" checkedvalue="1" defaultvalue="0" readonly="false" required="true" requiredmessage="变更信息参与融资/手续费用${l:HLS.NOT_NULL}" uncheckedvalue="0"/>
                    <a:field name="ccr_fee" readonly="true" required="false" requiredmessage="变更信息null${l:HLS.NOT_NULL}"/>
                    <a:field name="hd_user_col_n15" checkedvalue="1" defaultvalue="0" readonly="false" required="true" requiredmessage="变更信息参与融资/法律费用${l:HLS.NOT_NULL}" uncheckedvalue="0"/>
                    <a:field name="ccr_added_principal" readonly="false" required="true" requiredmessage="变更信息追加本金${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_finance_amount" readonly="true" required="false" requiredmessage="变更信息变更后融资额${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_nominal_finance_amount" readonly="true" required="false" requiredmessage="变更信息变更后名义融资额${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_original_finance_amount" readonly="true" required="false" requiredmessage="变更信息变更前原始融资额${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_outstanding_prin_tax_incld" readonly="true" required="false" requiredmessage="变更信息剩余本金${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_outstanding_prin_ti_total" readonly="true" required="false" requiredmessage="变更信息剩余本金(所有期)${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_period_int_rate_implicit" readonly="true" required="false" requiredmessage="变更信息实际利率(变更期段内)${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_period_lease_start_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="变更信息变更后起息日${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_pmt" readonly="true" required="false" requiredmessage="变更信息变更后每期租金${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_debt_exemption_amount" readonly="false" required="true" requiredmessage="罚息减免金额${l:HLS.NOT_NULL}"/>
                    <a:field name="legal_fee" readonly="true" required="false" requiredmessage="法律费用${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_debt_exemption_amt_legal" readonly="false" required="true" requiredmessage="法律费减免额${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_deposit_balance" readonly="true" required="false" requiredmessage="保证金余额${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_reschedule_start_times" readonly="false" required="false" requiredmessage="支付日调整开始期数${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_reschedule_date" datatype="java.util.Date" readonly="false" required="false" requiredmessage="支付日调整后首期还款日期${l:HLS.NOT_NULL}"/>
                    <a:field name="ccr_simplify_flag" checkedvalue="Y" defaultvalue="N" readonly="false" required="false" requiredmessage="是否简化流程${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="search_term_1" readonly="true" required="false" requiredmessage="合同信息合同号${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_name" readonly="true" required="false" requiredmessage="合同名称${l:HLS.NOT_NULL}"/>
                    <a:field name="employee_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="项目经理${l:HLS.NOT_NULL}" title="项目经理">
                        <a:mapping>
                            <a:map from="value_code" to="employee_id"/>
                            <a:map from="value_name" to="employee_id_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="employee_id" readonly="true" required="false" requiredmessage="项目经理${l:HLS.NOT_NULL}"/>
                    <a:field name="employee_id_of_manager" readonly="true" required="false" requiredmessage="部门负责人${l:HLS.NOT_NULL}"/>
                    <a:field name="employee_id_of_manager_n" readonly="true" required="false" requiredmessage="部门负责人${l:HLS.NOT_NULL}"/>
                    <a:field name="bp_id_tenant_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="主承租人${l:HLS.NOT_NULL}" title="主承租人">
                        <a:mapping>
                            <a:map from="value_code" to="bp_id_tenant"/>
                            <a:map from="value_name" to="bp_id_tenant_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_id_tenant" readonly="true" required="false" requiredmessage="主承租人${l:HLS.NOT_NULL}"/>
                    <a:field name="currency_n" displayfield="value_name" options="CCR_UNIVERSALFBC_CON_2_currency_combobox_ds" readonly="true" required="false" requiredmessage="币种${l:HLS.NOT_NULL}" returnfield="currency" valuefield="value_code"/>
                    <a:field name="currency" readonly="true" required="false" requiredmessage="币种${l:HLS.NOT_NULL}"/>
                    <a:field name="total_rental" readonly="true" required="false" requiredmessage="租金总额${l:HLS.NOT_NULL}"/>
                    <a:field name="total_interest" readonly="true" required="false" requiredmessage="利息总额${l:HLS.NOT_NULL}"/>
                    <a:field name="total_fee" readonly="true" required="false" requiredmessage="手续费/管理费${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_start_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="租赁期开始日${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_term" readonly="true" required="false" requiredmessage="租赁期(年)${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_number" readonly="true" required="false" requiredmessage="合同序号${l:HLS.NOT_NULL}"/>
                    <a:field name="document_type_n" displayfield="value_name" options="CCR_UNIVERSALFBC_CON_2_document_type_combobox_ds" readonly="true" required="false" requiredmessage="合同类型${l:HLS.NOT_NULL}" returnfield="document_type" valuefield="value_code"/>
                    <a:field name="document_type" readonly="true" required="false" requiredmessage="合同类型${l:HLS.NOT_NULL}"/>
                    <a:field name="business_type" readonly="true" required="false" requiredmessage="业务类型${l:HLS.NOT_NULL}"/>
                    <a:field name="company_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="公司名称${l:HLS.NOT_NULL}" title="公司名称">
                        <a:mapping>
                            <a:map from="value_code" to="company_id"/>
                            <a:map from="value_name" to="company_id_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="company_id" readonly="true" required="false" requiredmessage="公司名称${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_organization_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="业务部${l:HLS.NOT_NULL}" title="业务部">
                        <a:mapping>
                            <a:map from="value_code" to="lease_organization"/>
                            <a:map from="value_name" to="lease_organization_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="lease_organization" readonly="true" required="false" requiredmessage="业务部${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_channel_n" displayfield="value_name" options="CCR_UNIVERSALFBC_CON_2_lease_channel_combobox_ds" readonly="true" required="false" requiredmessage="商业模式${l:HLS.NOT_NULL}" returnfield="lease_channel" valuefield="value_code"/>
                    <a:field name="lease_channel" readonly="true" required="false" requiredmessage="商业模式${l:HLS.NOT_NULL}"/>
                    <a:field name="division_n" displayfield="value_name" options="CCR_UNIVERSALFBC_CON_2_division_combobox_ds" readonly="true" required="false" requiredmessage="产品线${l:HLS.NOT_NULL}" returnfield="division" valuefield="value_code"/>
                    <a:field name="division" readonly="true" required="false" requiredmessage="产品线${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_times" readonly="true" required="false" requiredmessage="租赁期数${l:HLS.NOT_NULL}"/>
                    <a:field name="annual_pay_times_n" displayfield="value_name" options="CCR_UNIVERSALFBC_CON_2_annual_pay_times_combobox_ds" readonly="true" required="false" requiredmessage="支付频率${l:HLS.NOT_NULL}" returnfield="annual_pay_times" valuefield="value_code"/>
                    <a:field name="annual_pay_times" readonly="true" required="false" requiredmessage="支付频率${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_status_n" readonly="true" required="false" requiredmessage="合同状态${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_FBC_CCR_1_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CCR2_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CON_1_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_FBC_CON_2_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_BP_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_BP_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_category" config_id="121060" data_type="VARCHAR2" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="REQUIRED_ONLY_ADD" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业伙伴类别" query_only="N" readonly_input_mode="FALSE" required_input_mode="TRUE" sys_grid_show_title="false" system_flag="Y" tab_code="G_BP" validation_sql="select bp_category as value_code,description as value_name from hls_bp_category t where enabled_flag = &apos;Y&apos; order by ref_n01" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_id" config_id="121061" data_type="NUMBER" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_cascade_para1="bp_category" lov_return_vcode="N" precision="2" prompt="商业伙伴名称" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_BP" validation_sql="select t.bp_id as value_code,        t.bp_name as value_name,        t.bp_name,        t.bp_code bp_id_c,        (select ha.address           from hls_bp_master_address ha          where ha.bp_id = t.bp_id            and ha.address_type = &apos;DOC_SENT_ADDRESS&apos;) as doc_sent_address,        (select hm.bp_class from hls_bp_master hm where hm.bp_id = t.bp_id) as bp_class   from hls_bp_master_all_v t  where (exists         (select 1            from hls_bp_master_role d           where d.bp_id = t.bp_id             and d.bp_category = ${@bp_category}             and d.enabled_flag = &apos;Y&apos;) or t.bp_category = ${@bp_category})    and t.enabled_flag = &apos;Y&apos;" validation_type="LOV_D" width="250" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_id_c" config_id="121062" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业伙伴编码" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_BP" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="doc_sent_address" config_id="121069" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="85" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="单据寄送地址" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_BP" validation_type="TEXTFIELD" width="250" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="enabled_flag" config_id="121070" data_type="VARCHAR2" default_value="Y" display_flag="Y" display_order="90" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="启用" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_BP" validation_type="CHECKBOX" width="32" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="ratio" config_id="121071" copy_from_parent_tab="N" data_type="NUMBER" display_flag="N" display_order="140" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="比例" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_BP" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="amount" config_id="121057" copy_from_parent_tab="N" data_type="NUMBER" display_flag="N" display_order="150" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="金额" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_BP" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSAL_G_BP_con_contract_bp_ds" autopagesize="true" bindname="CCR_UNIVERSAL_G_BP_con_contract_bp" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="true" processfunction="CCR_UNIVERSAL_G_BP_CON_GRID_PROCESS" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_BP&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" selectable="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_bp&amp;query_only=N&amp;tab_code=G_BP&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD&apos;]"/>
                    <a:event name="indexchange" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY&apos;]"/>
                    <a:event name="select" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT&apos;]"/>
                    <a:event name="unselect" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="bp_category_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="false" required="true" requiredmessage="商业伙伴类别${l:HLS.NOT_NULL}" title="商业伙伴类别">
                        <a:mapping>
                            <a:map from="value_code" to="bp_category"/>
                            <a:map from="value_name" to="bp_category_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_category" readonly="false" required="true" requiredmessage="商业伙伴类别${l:HLS.NOT_NULL}"/>
                    <a:field name="bp_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="商业伙伴名称${l:HLS.NOT_NULL}" title="商业伙伴名称">
                        <a:mapping>
                            <a:map from="value_code" to="bp_id"/>
                            <a:map from="value_name" to="bp_id_n"/>
                            <a:map from="bp_name" to="bp_name"/>
                            <a:map from="bp_id_c" to="bp_id_c"/>
                            <a:map from="doc_sent_address" to="doc_sent_address"/>
                            <a:map from="bp_class" to="bp_class"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_id" readonly="false" required="false" requiredmessage="商业伙伴名称${l:HLS.NOT_NULL}"/>
                    <a:field name="bp_id_c" readonly="true" required="false" requiredmessage="商业伙伴编码${l:HLS.NOT_NULL}"/>
                    <a:field name="doc_sent_address" readonly="true" required="false" requiredmessage="单据寄送地址${l:HLS.NOT_NULL}"/>
                    <a:field name="enabled_flag" checkedvalue="Y" defaultvalue="Y" readonly="true" required="false" requiredmessage="启用${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="ratio" readonly="false" required="false" requiredmessage="比例${l:HLS.NOT_NULL}"/>
                    <a:field name="amount" readonly="false" required="false" requiredmessage="金额${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_BP_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_G_ASSET_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_ASSET_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="full_name" config_id="104710" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁物名称" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="100" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="brand_name" config_id="104699" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="13" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备品牌" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="specification" config_id="104731" data_type="VARCHAR2" display_flag="Y" display_order="15" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备/车辆型号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_category" config_id="104716" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备类别" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select scv.code_value value_code, scv.code_value_name value_name   from sys_code_values_v scv  where scv.code = &apos;LEASE_CATEGORY_TYPE&apos;" validation_type="COMBOBOX" width="80" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="configure" config_id="104701" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="25" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备配置" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="80" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="brand_id" config_id="104698" copy_from_parent_tab="N" display_flag="Y" display_order="37" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="车辆品牌 " query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select cb.brand_id    value_code,        cb.brand_code,        cb.description value_name   from hls_car_brand cb  where cb.enabled_flag = &apos;Y&apos; " validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="series_id" config_id="105000" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="38" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_cascade_para1="brand_id" lov_return_vcode="N" precision="2" prompt="车辆车系" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select css.series_id   value_code,        css.series_code,        css.description value_name   from hls_car_series css  where css.enabled_flag = &apos;Y&apos;  and css.brand_id=${@brand_id}" validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="model_id" config_id="104723" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="39" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_cascade_para1="series_id" lov_return_vcode="N" precision="2" prompt="车辆车型" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select cm.model_id   value_code,        cm.model_code,        cm.description value_name   from hls_car_model cm  where cm.enabled_flag = &apos;Y&apos; and cm.series_id=${@series_id}" validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="quantity" config_id="104726" data_type="NUMBER" default_value="1" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="数量" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_ASSET" validation_type="NUMBERFIELD" width="40" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="price" config_id="104724" data_type="NUMBER" display_flag="Y" display_order="43" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="单价" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_ASSET" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="manufacturer_name" config_id="104721" data_type="VARCHAR2" display_flag="Y" display_order="60" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="制造商名称" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="aircraft_category" config_id="104696" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="64" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="车辆/设备类型" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select scv.code_value value_code, scv.code_value_name value_name   from sys_code_values_v scv  where scv.code = &apos;CAR_CATEGORY&apos;    and scv.code_value_enabled_flag = &apos;Y&apos; " validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="serial_number" config_id="104729" data_type="VARCHAR2" display_flag="Y" display_order="64" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="机编号/车架号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="engine" config_id="104704" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="65" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="发动机号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="license_plate_number" config_id="104720" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="67" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="车牌号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="fixed_assets_site" config_id="104709" data_type="VARCHAR2" display_flag="Y" display_order="70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备交付地点" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="installation_site" config_id="104712" data_type="VARCHAR2" display_flag="Y" display_order="75" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="设备使用地点" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="estimated_deliver_date" config_id="104705" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" display_order="80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="预计交付日" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="description" config_id="104703" data_type="VARCHAR2" display_flag="N" display_order="110" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="说明" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_ASSET" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ref_v05" config_id="104997" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="120" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="车牌所有权" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_ASSET" underline="N" validation_sql="select scv.code_value value_code, scv.code_value_name value_name   from sys_code_values_v scv  where scv.code = &apos;PRJ_LEASE_LICENCE_OWNER&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="enable_flag" config_id="116675" copy_from_parent_tab="N" data_type="VARCHAR2" default_value="Y" display_flag="N" display_order="130" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="是否启用" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_ASSET" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALG_ASSET_lease_category_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALG_ASSET_aircraft_category_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALG_ASSET_ref_v05_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds" autopagesize="true" bindname="CCR_UNIVERSAL_G_ASSET_con_contract_lease_item" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="true" processfunction="CCR_UNIVERSAL_G_ASSET_CON_GRID_PROCESS" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_ASSET&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" selectable="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_lease_item&amp;query_only=N&amp;tab_code=G_ASSET&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD&apos;]"/>
                    <a:event name="indexchange" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY&apos;]"/>
                    <a:event name="select" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT&apos;]"/>
                    <a:event name="unselect" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="full_name" readonly="false" required="false" requiredmessage="租赁物名称${l:HLS.NOT_NULL}"/>
                    <a:field name="brand_name" readonly="false" required="false" requiredmessage="设备品牌${l:HLS.NOT_NULL}"/>
                    <a:field name="specification" readonly="false" required="false" requiredmessage="设备/车辆型号${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_category_n" displayfield="value_name" options="CCR_UNIVERSALG_ASSET_lease_category_combobox_ds" readonly="false" required="false" requiredmessage="设备类别${l:HLS.NOT_NULL}" returnfield="lease_category" valuefield="value_code"/>
                    <a:field name="lease_category" readonly="false" required="false" requiredmessage="设备类别${l:HLS.NOT_NULL}"/>
                    <a:field name="configure" readonly="false" required="false" requiredmessage="设备配置${l:HLS.NOT_NULL}"/>
                    <a:field name="brand_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="车辆品牌 ${l:HLS.NOT_NULL}" title="车辆品牌 ">
                        <a:mapping>
                            <a:map from="value_code" to="brand_id"/>
                            <a:map from="value_name" to="brand_id_n"/>
                            <a:map from="brand_code" to="brand_code"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="brand_id" readonly="false" required="false" requiredmessage="车辆品牌 ${l:HLS.NOT_NULL}"/>
                    <a:field name="series_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="车辆车系${l:HLS.NOT_NULL}" title="车辆车系">
                        <a:mapping>
                            <a:map from="value_code" to="series_id"/>
                            <a:map from="value_name" to="series_id_n"/>
                            <a:map from="series_code" to="series_code"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="series_id" readonly="false" required="false" requiredmessage="车辆车系${l:HLS.NOT_NULL}"/>
                    <a:field name="model_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="车辆车型${l:HLS.NOT_NULL}" title="车辆车型">
                        <a:mapping>
                            <a:map from="value_code" to="model_id"/>
                            <a:map from="value_name" to="model_id_n"/>
                            <a:map from="model_code" to="model_code"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="model_id" readonly="false" required="false" requiredmessage="车辆车型${l:HLS.NOT_NULL}"/>
                    <a:field name="quantity" defaultvalue="1" readonly="false" required="false" requiredmessage="数量${l:HLS.NOT_NULL}"/>
                    <a:field name="price" readonly="false" required="false" requiredmessage="单价${l:HLS.NOT_NULL}"/>
                    <a:field name="manufacturer_name" readonly="false" required="false" requiredmessage="制造商名称${l:HLS.NOT_NULL}"/>
                    <a:field name="aircraft_category_n" displayfield="value_name" options="CCR_UNIVERSALG_ASSET_aircraft_category_combobox_ds" readonly="false" required="false" requiredmessage="车辆/设备类型${l:HLS.NOT_NULL}" returnfield="aircraft_category" valuefield="value_code"/>
                    <a:field name="aircraft_category" readonly="false" required="false" requiredmessage="车辆/设备类型${l:HLS.NOT_NULL}"/>
                    <a:field name="serial_number" readonly="false" required="false" requiredmessage="机编号/车架号${l:HLS.NOT_NULL}"/>
                    <a:field name="engine" readonly="false" required="false" requiredmessage="发动机号${l:HLS.NOT_NULL}"/>
                    <a:field name="license_plate_number" readonly="false" required="false" requiredmessage="车牌号${l:HLS.NOT_NULL}"/>
                    <a:field name="fixed_assets_site" readonly="false" required="false" requiredmessage="设备交付地点${l:HLS.NOT_NULL}"/>
                    <a:field name="installation_site" readonly="false" required="false" requiredmessage="设备使用地点${l:HLS.NOT_NULL}"/>
                    <a:field name="estimated_deliver_date" datatype="java.util.Date" readonly="false" required="false" requiredmessage="预计交付日${l:HLS.NOT_NULL}"/>
                    <a:field name="description" readonly="false" required="false" requiredmessage="说明${l:HLS.NOT_NULL}"/>
                    <a:field name="ref_v05_n" displayfield="value_name" options="CCR_UNIVERSALG_ASSET_ref_v05_combobox_ds" readonly="false" required="false" requiredmessage="车牌所有权${l:HLS.NOT_NULL}" returnfield="ref_v05" valuefield="value_code"/>
                    <a:field name="ref_v05" readonly="false" required="false" requiredmessage="车牌所有权${l:HLS.NOT_NULL}"/>
                    <a:field name="enable_flag" defaultvalue="Y" readonly="true" required="false" requiredmessage="是否启用${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_ASSET_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_G_MORTGAGE_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_MORTGAGE_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgage_name" config_id="121085" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押物名称" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgage_speciality" config_id="121086" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="11" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押物型号/面积" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="serial_number" config_id="121092" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="12" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="机编号/车牌号/房产位置" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="engine_number" config_id="121082" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="13" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="发动机号" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="vehicle_frame_no" config_id="121094" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="14" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="车架号" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgagor_name" config_id="121089" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押人名称" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgagor_class" config_id="121088" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="21" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押人分类" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_sql="select v.code_value as value_code, v.code_value_name as value_name   from sys_code_values_v v  where v.code = &apos;HLS211_BP_CLASS&apos;    and v.code_enabled_flag = &apos;Y&apos;    and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="id_card_no" config_id="121083" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押人证件号码" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bill_of_lading" config_id="121078" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="发票号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="denomination_value" config_id="121081" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="50" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="发票金额" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="center" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="value" config_id="121093" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="60" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现值" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgage_type_n" config_id="121087" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="担保方式" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="material" config_id="121084" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="75" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵押物资料" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ref_v01" config_id="121091" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="是否抵押登记" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="CHECKBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ref_n01" config_id="121090" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="90" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="购买年限(年)" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cancellation_flag" config_id="121079" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="100" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="是否注销" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="CHECKBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_seq" config_id="121080" copy_from_parent_tab="N" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同序号" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_MORTGAGE" underline="N" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALG_MORTGAGE_mortgagor_class_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds" autopagesize="true" bindname="CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="true" processfunction="CCR_UNIVERSAL_G_MORTGAGE_CON_GRID_PROCESS" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_MORTGAGE&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" selectable="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_mortgage&amp;query_only=N&amp;tab_code=G_MORTGAGE&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD&apos;]"/>
                    <a:event name="indexchange" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY&apos;]"/>
                    <a:event name="select" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT&apos;]"/>
                    <a:event name="unselect" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="mortgage_name" readonly="true" required="false" requiredmessage="抵押物名称${l:HLS.NOT_NULL}"/>
                    <a:field name="mortgage_speciality" readonly="true" required="false" requiredmessage="抵押物型号/面积${l:HLS.NOT_NULL}"/>
                    <a:field name="serial_number" readonly="true" required="false" requiredmessage="机编号/车牌号/房产位置${l:HLS.NOT_NULL}"/>
                    <a:field name="engine_number" readonly="true" required="false" requiredmessage="发动机号${l:HLS.NOT_NULL}"/>
                    <a:field name="vehicle_frame_no" readonly="true" required="false" requiredmessage="车架号${l:HLS.NOT_NULL}"/>
                    <a:field name="mortgagor_name" readonly="true" required="false" requiredmessage="抵押人名称${l:HLS.NOT_NULL}"/>
                    <a:field name="mortgagor_class_n" displayfield="value_name" options="CCR_UNIVERSALG_MORTGAGE_mortgagor_class_combobox_ds" readonly="true" required="false" requiredmessage="抵押人分类${l:HLS.NOT_NULL}" returnfield="mortgagor_class" valuefield="value_code"/>
                    <a:field name="mortgagor_class" readonly="true" required="false" requiredmessage="抵押人分类${l:HLS.NOT_NULL}"/>
                    <a:field name="id_card_no" readonly="true" required="false" requiredmessage="抵押人证件号码${l:HLS.NOT_NULL}"/>
                    <a:field name="bill_of_lading" readonly="false" required="false" requiredmessage="发票号${l:HLS.NOT_NULL}"/>
                    <a:field name="denomination_value" readonly="false" required="false" requiredmessage="发票金额${l:HLS.NOT_NULL}"/>
                    <a:field name="value" readonly="true" required="false" requiredmessage="现值${l:HLS.NOT_NULL}"/>
                    <a:field name="mortgage_type_n" readonly="true" required="false" requiredmessage="担保方式${l:HLS.NOT_NULL}"/>
                    <a:field name="material" readonly="false" required="false" requiredmessage="抵押物资料${l:HLS.NOT_NULL}"/>
                    <a:field name="ref_v01" checkedvalue="Y" readonly="true" required="false" requiredmessage="是否抵押登记${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="ref_n01" readonly="true" required="false" requiredmessage="购买年限(年)${l:HLS.NOT_NULL}"/>
                    <a:field name="cancellation_flag" checkedvalue="Y" readonly="true" required="false" requiredmessage="是否注销${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="contract_seq" readonly="true" required="false" requiredmessage="合同序号${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_MORTGAGE_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_G_REPURCHASE_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_REPURCHASE_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_type" config_id="121099" copy_from_parent_tab="N" data_type="VARCHAR2" default_value="REPURCHASE" display_flag="N" display_order="1" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业伙伴类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_category" config_id="121096" copy_from_parent_tab="N" data_type="VARCHAR2" default_value="REPURCHASE" display_flag="N" display_order="5" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="商业伙伴类别" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bp_id" config_id="121097" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="回购方" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_sql="select bm.bp_id value_code,        bm.bp_code,        bm.bp_name value_name,        bm.bp_class,        (select v.code_value_name           from sys_code_values_v v          where v.code = &apos;HLS211_BP_CLASS&apos;            and v.code_value = bm.bp_class) as bp_class_n   from hls_bp_master bm  where  exists (select 1           from hls_bp_master_role d          where d.bp_id = bm.bp_id            and d.bp_category in (&apos;VENDER&apos;,&apos;REPURCHASE&apos;)            and d.enabled_flag = &apos;Y&apos;)    and bm.enabled_flag = &apos;Y&apos;    and exists (select 1 from hls_bp_master_company mc where mc.bp_id = bm.bp_id and mc.company_id = ${/session/@company_id})" validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="repurchase_flag" config_id="121101" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="是否回购" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_type="CHECKBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="repurchase_type" config_id="121104" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="回购方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_sql="select scv.code_value value_code, scv.code_value_name value_name   from sys_code_values_v scv  where scv.code = &apos;REPURCHASE_TYPE&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="repurchase_price" config_id="121102" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="回购价款确定方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_sql="select scv.code_value value_code, scv.code_value_name value_name   from sys_code_values_v scv  where scv.code = &apos;REPURCHASE_PRICE&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="repurchase_des" config_id="121100" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="50" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="备注" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_REPURCHASE" underline="N" validation_type="TEXTFIELD" width="379" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALG_REPURCHASE_repurchase_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALG_REPURCHASE_repurchase_price_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds" autopagesize="true" bindname="CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="true" processfunction="CCR_UNIVERSAL_G_REPURCHASE_CON_GRID_PROCESS" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_REPURCHASE&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" selectable="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_bp&amp;query_only=Y&amp;tab_code=G_REPURCHASE&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD&apos;]"/>
                    <a:event name="indexchange" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY&apos;]"/>
                    <a:event name="select" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT&apos;]"/>
                    <a:event name="unselect" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="bp_type" defaultvalue="REPURCHASE" readonly="true" required="false" requiredmessage="商业伙伴类型${l:HLS.NOT_NULL}"/>
                    <a:field name="bp_category" defaultvalue="REPURCHASE" readonly="true" required="false" requiredmessage="商业伙伴类别${l:HLS.NOT_NULL}"/>
                    <a:field name="bp_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="true" required="false" requiredmessage="回购方${l:HLS.NOT_NULL}" title="回购方">
                        <a:mapping>
                            <a:map from="value_code" to="bp_id"/>
                            <a:map from="value_name" to="bp_id_n"/>
                            <a:map from="bp_code" to="bp_code"/>
                            <a:map from="bp_class" to="bp_class"/>
                            <a:map from="bp_class_n" to="bp_class_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_id" readonly="true" required="false" requiredmessage="回购方${l:HLS.NOT_NULL}"/>
                    <a:field name="repurchase_flag" checkedvalue="Y" readonly="true" required="false" requiredmessage="是否回购${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="repurchase_type_n" displayfield="value_name" options="CCR_UNIVERSALG_REPURCHASE_repurchase_type_combobox_ds" readonly="true" required="false" requiredmessage="回购方式${l:HLS.NOT_NULL}" returnfield="repurchase_type" valuefield="value_code"/>
                    <a:field name="repurchase_type" readonly="true" required="false" requiredmessage="回购方式${l:HLS.NOT_NULL}"/>
                    <a:field name="repurchase_price_n" displayfield="value_name" options="CCR_UNIVERSALG_REPURCHASE_repurchase_price_combobox_ds" readonly="true" required="false" requiredmessage="回购价款确定方式${l:HLS.NOT_NULL}" returnfield="repurchase_price" valuefield="value_code"/>
                    <a:field name="repurchase_price" readonly="true" required="false" requiredmessage="回购价款确定方式${l:HLS.NOT_NULL}"/>
                    <a:field name="repurchase_des" readonly="true" required="false" requiredmessage="备注${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_REPURCHASE_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_G_BANK_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_BANK_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="direct_debit_bank_id" config_id="121077" data_type="NUMBER" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="自动扣款银行" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_BANK" validation_sql="select T.Bank_Id as value_code, T.Bank_Full_Name as value_name, T.Bank_code from csh_bank t " validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="dd_bank_branch_name" config_id="121076" data_type="VARCHAR2" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="自动扣款分行名称" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_BANK" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="dd_bank_account_name" config_id="121074" data_type="VARCHAR2" display_flag="Y" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="自动扣款账户名" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_BANK" validation_type="TEXTFIELD" width="300" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="dd_bank_account_num" config_id="121075" data_type="VARCHAR2" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="自动扣款账号" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_BANK" validation_type="TEXTFIELD" width="300" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSAL_G_BANK_con_contract_ds" bindname="CCR_UNIVERSAL_G_BANK_con_contract" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="false" processfunction="CCR_UNIVERSAL_G_BANK_CON_FORM_PROCESSFUNCTION" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_BANK&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract&amp;query_only=N&amp;tab_code=G_BANK&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="submitfailed" handler="window[&apos;CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED&apos;]"/>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_BANK_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="direct_debit_bank_id_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="自动扣款银行${l:HLS.NOT_NULL}" title="自动扣款银行">
                        <a:mapping>
                            <a:map from="value_code" to="direct_debit_bank_id"/>
                            <a:map from="value_name" to="direct_debit_bank_id_n"/>
                            <a:map from="bank_code" to="bank_code"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="direct_debit_bank_id" readonly="false" required="false" requiredmessage="自动扣款银行${l:HLS.NOT_NULL}"/>
                    <a:field name="dd_bank_branch_name" readonly="false" required="false" requiredmessage="自动扣款分行名称${l:HLS.NOT_NULL}"/>
                    <a:field name="dd_bank_account_name" readonly="false" required="false" requiredmessage="自动扣款账户名${l:HLS.NOT_NULL}"/>
                    <a:field name="dd_bank_account_num" readonly="false" required="false" requiredmessage="自动扣款账号${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_BANK_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_F_FINANCE_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_F_FINANCE_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="inception_of_lease" config_id="121136" data_type="DATE" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁开始日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="price_list_n" config_id="121402" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="15" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="价目表" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_FINANCE" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_start_date" config_id="121151" data_type="DATE" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁期开始日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_end_date" config_id="121146" data_type="DATE" display_flag="Y" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁到期日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="lease_term" config_id="121152" data_type="NUMBER" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁期限(年)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="annual_pay_times" config_id="121108" data_type="NUMBER" default_value="12" display_flag="Y" display_order="50" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付频率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_times" config_id="121153" data_type="NUMBER" display_flag="Y" display_order="60" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="还款期数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="pay_type" config_id="121158" data_type="NUMBER" display_flag="Y" display_order="70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select v.code_value as value_code,v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;HLS500_PAY_TYPE&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="int_rate_type" config_id="121141" data_type="VARCHAR2" default_value="FIXED" default_value_name="固定" display_flag="Y" display_order="80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="利率类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select code_value as value_code,code_value_name as value_name from sys_code_values_v where code = &apos;CON500_INT_RATE_TYPE&apos; and code_enabled_flag = &apos;Y&apos; and code_value_enabled_flag = &apos;Y&apos;" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="base_rate_type" config_id="121110" data_type="VARCHAR2" default_value="PBOC" default_value_name="人民银行贷款基准利率" display_flag="Y" display_order="89" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="基准利率类别" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select t1.base_rate_type as value_code, t1.description as value_name from fnd_base_rate_type t1 where t1.enabled_flag=&apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="base_rate" config_id="121109" data_type="NUMBER" display_flag="Y" display_order="90" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="基准利率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="int_rate_fixing_way" config_id="121140" data_type="VARCHAR2" display_flag="Y" display_order="100" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租息上浮或上调" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select v.code_value as value_code,v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;TRE502_INT_RATE_FIXING_WAY&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="int_rate_fixing_range" config_id="121139" data_type="NUMBER" default_value="0" display_flag="Y" display_order="110" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="幅度" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="int_rate_display" config_id="121138" data_type="NUMBER" display_flag="Y" display_order="120" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="合同利率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="int_rate" config_id="121137" data_type="NUMBER" display_flag="Y" display_order="130" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="租赁利率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="lease_item_amount" config_id="121147" data_type="NUMBER" display_flag="Y" display_order="160" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁物总价款" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="down_payment_ratio" config_id="121120" data_type="NUMBER" default_value="20" display_flag="Y" display_order="170" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="2" prompt="首期租金比例" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="down_payment" config_id="121119" data_type="NUMBER" display_flag="Y" display_order="175" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="首期租金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="finance_amount" config_id="121122" data_type="NUMBER" display_flag="Y" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁融资额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="deposit_ratio" config_id="121118" data_type="NUMBER" default_value="0" display_flag="Y" display_order="190" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="4" prompt="保证金比例" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="deposit" config_id="121116" data_type="NUMBER" display_flag="Y" display_order="200" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="保证金金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="deposit_deduction" config_id="121117" data_type="VARCHAR2" display_flag="Y" display_order="210" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="保证金抵扣方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select code_value as value_code,code_value_name as value_name from sys_code_values_v where code = &apos;HLS500_DEPOSIT_DEDUCTION&apos; and code_enabled_flag = &apos;Y&apos; and code_value_enabled_flag = &apos;Y&apos;" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="residual_ratio" config_id="121163" data_type="NUMBER" default_value="0" display_flag="Y" display_order="220" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="4" prompt="期末留购价比例" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="residual_value" config_id="121164" data_type="NUMBER" display_flag="Y" display_order="230" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="期末留购价" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="lease_charge_ratio" config_id="121145" data_type="NUMBER" default_value="0" display_flag="Y" display_order="240" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="4" prompt="手续费比例" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="lease_charge" config_id="121144" data_type="NUMBER" display_flag="Y" display_order="250" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="手续费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="lease_mgt_fee_ratio" config_id="121149" data_type="NUMBER" default_value="0" display_flag="Y" display_order="260" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" precision="4" prompt="管理费比例" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="lease_mgt_fee" config_id="121148" data_type="NUMBER" display_flag="Y" display_order="270" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="管理费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_mgt_fee_rule" config_id="121150" data_type="VARCHAR2" display_flag="Y" display_order="280" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="管理费收取方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select code_value as value_code,code_value_name as value_name from sys_code_values_v where code = &apos;HLS500_MGT_FEE_RULE&apos; and code_enabled_flag = &apos;Y&apos; and code_value_enabled_flag = &apos;Y&apos;" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="rounding_method" config_id="121165" data_type="NUMBER" display_flag="Y" display_order="290" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流精确位数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select b.code_value value_code, b.code_value_name value_name from sys_codes a, sys_code_values_vl b where b.code_id = a.code_id and a.code = &apos;HLS500_CASHFLOW_ACCURATED&apos; order by b.code_value" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_rental" config_id="121168" data_type="NUMBER" display_flag="Y" display_order="310" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租金总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_interest" config_id="121167" data_type="NUMBER" display_flag="Y" display_order="320" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="含税租息收入" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="total_fee" config_id="121166" data_type="NUMBER" display_flag="Y" display_order="330" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="含税手续费/管理费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="irr" config_id="121142" data_type="NUMBER" display_flag="Y" display_order="350" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="实际IRR" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="irr_after_tax" config_id="121143" data_type="NUMBER" display_flag="Y" display_order="360" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="报价IRR" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="annual_mean_rate" config_id="121107" data_type="NUMBER" display_flag="Y" display_order="370" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="速算利率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="contract_amount" config_id="121113" data_type="NUMBER" display_flag="Y" display_order="400" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同总额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="currency" config_id="121115" data_type="VARCHAR2" display_flag="Y" display_order="470" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="币种" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select v.currency_code as value_code, v.currency_name as value_name from gld_currency_vl v where v.enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="biz_day_convention" config_id="121112" data_type="VARCHAR2" display_flag="Y" display_order="480" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="非工作日调整" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select code_value as value_code,code_value_name as value_name from sys_code_values_v where code = &apos;HLS050_BIZ_DAY_CONVENTION&apos; and code_enabled_flag = &apos;Y&apos; and code_value_enabled_flag = &apos;Y&apos;" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="penalty_rate" config_id="121159" data_type="NUMBER" display_flag="Y" display_order="490" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="迟延履行金率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="PERCENTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="grace_period" config_id="121135" data_type="NUMBER" display_flag="Y" display_order="500" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="逾期宽限天数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="credit_write_off_order" config_id="121114" data_type="VARCHAR2" display_flag="Y" display_order="510" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="债权核销顺序" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="billing_method" config_id="121111" data_type="VARCHAR2" display_flag="Y" display_order="520" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_cascade_para1="business_type" lov_return_vcode="N" precision="2" prompt="开票方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select billing_method as value_code, description as value_name from con_billing_method v where enabled_flag = &apos;Y&apos; and decode(${@business_type},&apos;LEASEBACK&apos;,&apos;LB&apos;,&apos;LEASE&apos;,&apos;L_&apos;,&apos;HLS&apos;) = substr(billing_method,1,2)" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="early_termination_profile" config_id="121121" data_type="VARCHAR2" display_flag="Y" display_order="530" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="提前结清规则" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select et_profile as value_code, description  as  value_name ,discount_rate as discount_rate, et_percent as et_percent from con_contract_et_profile  " validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_rate_adj_method" config_id="121130" data_type="VARCHAR2" display_flag="Y" display_order="540" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="利率浮动方式" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="flt_unit_adj_amt" config_id="121134" data_type="NUMBER" display_flag="Y" display_order="550" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="单位调整额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="actual_finance_amount" config_id="121106" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际融资额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="finance_income" config_id="121123" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁收入" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="financing_cost" config_id="121124" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【本币？】融资成本（通常是银行贷款利息）" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_annual_adj_times" config_id="121125" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="调整频率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select v.code_value as value_code, v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;HLS_FLT_ANNUAL_ADJ_TIMES&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_delay_execute_period" config_id="121126" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="延迟执行期数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_execute_times_rule" config_id="121127" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="浮动周期规则" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_sql="select code_value value_code,code_value_name value_name from sys_code_values_v where code = &apos;HLS_FLT_EXECUTE_TIMES_RULE&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_int_rate_adj_date" config_id="121128" data_type="DATE" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="浮动利率调整日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_next_adj_date" config_id="121129" data_type="DATE" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="下一调整日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="flt_rate_profile" config_id="121131" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="浮动利率配置文件" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="flt_simulate_range" config_id="121132" data_type="NUMBER" default_value="0.01" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="利率变动范围" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="flt_simulate_step" config_id="121133" data_type="NUMBER" default_value="0.001" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" lower_limit="0" percent="%" precision="8" prompt="利率变动单位" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" upper_limit="1" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_total_fee" config_id="121154" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="手续费/管理费" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_total_interest" config_id="121155" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租息收入" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_total_rental" config_id="121156" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="税后租金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="npv_using_cof" config_id="121157" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="NPV" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="repur_profile" config_id="121161" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="回购预置文件" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="reschedule_profile" config_id="121162" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付期平移预置文件" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_FINANCE" validation_type="LOV" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_annual_pay_times_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_pay_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_base_rate_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_int_rate_fixing_way_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_rounding_method_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_currency_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_billing_method_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_flt_annual_adj_times_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_flt_execute_times_rule_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALF_FINANCE_flt_rate_profile_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" bindname="CCR_UNIVERSAL_F_FINANCE_con_contract" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="false" processfunction="CCR_UNIVERSAL_F_FINANCE_CON_FORM_PROCESSFUNCTION" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=F_FINANCE&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract&amp;query_only=Y&amp;tab_code=F_FINANCE&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="submitfailed" handler="window[&apos;CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED&apos;]"/>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="inception_of_lease" datatype="java.util.Date" readonly="true" required="false" requiredmessage="租赁开始日${l:HLS.NOT_NULL}"/>
                    <a:field name="price_list_n" readonly="true" required="false" requiredmessage="价目表${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_start_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="租赁期开始日${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_end_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="租赁到期日${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_term" readonly="true" required="false" requiredmessage="租赁期限(年)${l:HLS.NOT_NULL}"/>
                    <a:field name="annual_pay_times_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_annual_pay_times_combobox_ds" readonly="true" required="false" requiredmessage="支付频率${l:HLS.NOT_NULL}" returnfield="annual_pay_times" valuefield="value_code"/>
                    <a:field name="annual_pay_times" defaultvalue="12" readonly="true" required="false" requiredmessage="支付频率${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_times" readonly="true" required="false" requiredmessage="还款期数${l:HLS.NOT_NULL}"/>
                    <a:field name="pay_type_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_pay_type_combobox_ds" readonly="true" required="false" requiredmessage="支付类型${l:HLS.NOT_NULL}" returnfield="pay_type" valuefield="value_code"/>
                    <a:field name="pay_type" readonly="true" required="false" requiredmessage="支付类型${l:HLS.NOT_NULL}"/>
                    <a:field name="int_rate_type_n" autocomplete="true" defaultvalue="固定" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="利率类型${l:HLS.NOT_NULL}" title="利率类型">
                        <a:mapping>
                            <a:map from="value_code" to="int_rate_type"/>
                            <a:map from="value_name" to="int_rate_type_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="int_rate_type" defaultvalue="FIXED" readonly="true" required="false" requiredmessage="利率类型${l:HLS.NOT_NULL}"/>
                    <a:field name="base_rate_type_n" defaultvalue="人民银行贷款基准利率" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_base_rate_type_combobox_ds" readonly="true" required="false" requiredmessage="基准利率类别${l:HLS.NOT_NULL}" returnfield="base_rate_type" valuefield="value_code"/>
                    <a:field name="base_rate_type" defaultvalue="PBOC" readonly="true" required="false" requiredmessage="基准利率类别${l:HLS.NOT_NULL}"/>
                    <a:field name="base_rate" readonly="true" required="false" requiredmessage="基准利率${l:HLS.NOT_NULL}"/>
                    <a:field name="int_rate_fixing_way_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_int_rate_fixing_way_combobox_ds" readonly="true" required="false" requiredmessage="租息上浮或上调${l:HLS.NOT_NULL}" returnfield="int_rate_fixing_way" valuefield="value_code"/>
                    <a:field name="int_rate_fixing_way" readonly="true" required="false" requiredmessage="租息上浮或上调${l:HLS.NOT_NULL}"/>
                    <a:field name="int_rate_fixing_range" defaultvalue="0" readonly="true" required="false" requiredmessage="幅度${l:HLS.NOT_NULL}"/>
                    <a:field name="int_rate_display" readonly="true" required="false" requiredmessage="合同利率${l:HLS.NOT_NULL}"/>
                    <a:field name="int_rate" readonly="true" required="false" requiredmessage="租赁利率${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_item_amount" readonly="true" required="false" requiredmessage="租赁物总价款${l:HLS.NOT_NULL}"/>
                    <a:field name="down_payment_ratio" defaultvalue="20" readonly="true" required="false" requiredmessage="首期租金比例${l:HLS.NOT_NULL}"/>
                    <a:field name="down_payment" readonly="true" required="false" requiredmessage="首期租金${l:HLS.NOT_NULL}"/>
                    <a:field name="finance_amount" readonly="true" required="false" requiredmessage="租赁融资额${l:HLS.NOT_NULL}"/>
                    <a:field name="deposit_ratio" defaultvalue="0" readonly="true" required="false" requiredmessage="保证金比例${l:HLS.NOT_NULL}"/>
                    <a:field name="deposit" readonly="true" required="false" requiredmessage="保证金金额${l:HLS.NOT_NULL}"/>
                    <a:field name="deposit_deduction_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="保证金抵扣方式${l:HLS.NOT_NULL}" title="保证金抵扣方式">
                        <a:mapping>
                            <a:map from="value_code" to="deposit_deduction"/>
                            <a:map from="value_name" to="deposit_deduction_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="deposit_deduction" readonly="true" required="false" requiredmessage="保证金抵扣方式${l:HLS.NOT_NULL}"/>
                    <a:field name="residual_ratio" defaultvalue="0" readonly="true" required="false" requiredmessage="期末留购价比例${l:HLS.NOT_NULL}"/>
                    <a:field name="residual_value" readonly="true" required="false" requiredmessage="期末留购价${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_charge_ratio" defaultvalue="0" readonly="true" required="false" requiredmessage="手续费比例${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_charge" readonly="true" required="false" requiredmessage="手续费${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_mgt_fee_ratio" defaultvalue="0" readonly="true" required="false" requiredmessage="管理费比例${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_mgt_fee" readonly="true" required="false" requiredmessage="管理费${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_mgt_fee_rule_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="管理费收取方式${l:HLS.NOT_NULL}" title="管理费收取方式">
                        <a:mapping>
                            <a:map from="value_code" to="lease_mgt_fee_rule"/>
                            <a:map from="value_name" to="lease_mgt_fee_rule_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="lease_mgt_fee_rule" readonly="true" required="false" requiredmessage="管理费收取方式${l:HLS.NOT_NULL}"/>
                    <a:field name="rounding_method_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_rounding_method_combobox_ds" readonly="true" required="false" requiredmessage="现金流精确位数${l:HLS.NOT_NULL}" returnfield="rounding_method" valuefield="value_code"/>
                    <a:field name="rounding_method" readonly="true" required="false" requiredmessage="现金流精确位数${l:HLS.NOT_NULL}"/>
                    <a:field name="total_rental" readonly="true" required="false" requiredmessage="租金总额${l:HLS.NOT_NULL}"/>
                    <a:field name="total_interest" readonly="true" required="false" requiredmessage="含税租息收入${l:HLS.NOT_NULL}"/>
                    <a:field name="total_fee" readonly="true" required="false" requiredmessage="含税手续费/管理费${l:HLS.NOT_NULL}"/>
                    <a:field name="irr" readonly="true" required="false" requiredmessage="实际IRR${l:HLS.NOT_NULL}"/>
                    <a:field name="irr_after_tax" readonly="true" required="false" requiredmessage="报价IRR${l:HLS.NOT_NULL}"/>
                    <a:field name="annual_mean_rate" readonly="true" required="false" requiredmessage="速算利率${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_amount" readonly="true" required="false" requiredmessage="合同总额${l:HLS.NOT_NULL}"/>
                    <a:field name="currency_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_currency_combobox_ds" readonly="true" required="false" requiredmessage="币种${l:HLS.NOT_NULL}" returnfield="currency" valuefield="value_code"/>
                    <a:field name="currency" readonly="true" required="false" requiredmessage="币种${l:HLS.NOT_NULL}"/>
                    <a:field name="biz_day_convention_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="非工作日调整${l:HLS.NOT_NULL}" title="非工作日调整">
                        <a:mapping>
                            <a:map from="value_code" to="biz_day_convention"/>
                            <a:map from="value_name" to="biz_day_convention_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="biz_day_convention" readonly="true" required="false" requiredmessage="非工作日调整${l:HLS.NOT_NULL}"/>
                    <a:field name="penalty_rate" readonly="true" required="false" requiredmessage="迟延履行金率${l:HLS.NOT_NULL}"/>
                    <a:field name="grace_period" readonly="true" required="false" requiredmessage="逾期宽限天数${l:HLS.NOT_NULL}"/>
                    <a:field name="credit_write_off_order_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="债权核销顺序${l:HLS.NOT_NULL}" title="债权核销顺序">
                        <a:mapping>
                            <a:map from="value_code" to="credit_write_off_order"/>
                            <a:map from="value_name" to="credit_write_off_order_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="credit_write_off_order" readonly="true" required="false" requiredmessage="债权核销顺序${l:HLS.NOT_NULL}"/>
                    <a:field name="billing_method_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_billing_method_combobox_ds" readonly="true" required="false" requiredmessage="开票方式${l:HLS.NOT_NULL}" returnfield="billing_method" valuefield="value_code"/>
                    <a:field name="billing_method" readonly="true" required="false" requiredmessage="开票方式${l:HLS.NOT_NULL}"/>
                    <a:field name="early_termination_profile_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="提前结清规则${l:HLS.NOT_NULL}" title="提前结清规则">
                        <a:mapping>
                            <a:map from="value_code" to="early_termination_profile"/>
                            <a:map from="value_name" to="early_termination_profile_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="early_termination_profile" readonly="true" required="false" requiredmessage="提前结清规则${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_rate_adj_method_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="利率浮动方式${l:HLS.NOT_NULL}" title="利率浮动方式">
                        <a:mapping>
                            <a:map from="value_code" to="flt_rate_adj_method"/>
                            <a:map from="value_name" to="flt_rate_adj_method_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="flt_rate_adj_method" readonly="true" required="false" requiredmessage="利率浮动方式${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_unit_adj_amt" readonly="true" required="false" requiredmessage="单位调整额${l:HLS.NOT_NULL}"/>
                    <a:field name="actual_finance_amount" readonly="true" required="false" requiredmessage="实际融资额${l:HLS.NOT_NULL}"/>
                    <a:field name="finance_income" readonly="true" required="false" requiredmessage="租赁收入${l:HLS.NOT_NULL}"/>
                    <a:field name="financing_cost" readonly="true" required="false" requiredmessage="【本币？】融资成本（通常是银行贷款利息）${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_annual_adj_times_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_flt_annual_adj_times_combobox_ds" readonly="true" required="false" requiredmessage="调整频率${l:HLS.NOT_NULL}" returnfield="flt_annual_adj_times" valuefield="value_code"/>
                    <a:field name="flt_annual_adj_times" readonly="true" required="false" requiredmessage="调整频率${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_delay_execute_period" readonly="true" required="false" requiredmessage="延迟执行期数${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_execute_times_rule_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_flt_execute_times_rule_combobox_ds" readonly="true" required="false" requiredmessage="浮动周期规则${l:HLS.NOT_NULL}" returnfield="flt_execute_times_rule" valuefield="value_code"/>
                    <a:field name="flt_execute_times_rule" readonly="true" required="false" requiredmessage="浮动周期规则${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_int_rate_adj_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="浮动利率调整日${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_next_adj_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="下一调整日${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_rate_profile_n" displayfield="value_name" options="CCR_UNIVERSALF_FINANCE_flt_rate_profile_combobox_ds" readonly="true" required="false" requiredmessage="浮动利率配置文件${l:HLS.NOT_NULL}" returnfield="flt_rate_profile" valuefield="value_code"/>
                    <a:field name="flt_rate_profile" readonly="true" required="false" requiredmessage="浮动利率配置文件${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_simulate_range" defaultvalue="0.01" readonly="true" required="false" requiredmessage="利率变动范围${l:HLS.NOT_NULL}"/>
                    <a:field name="flt_simulate_step" defaultvalue="0.001" readonly="true" required="false" requiredmessage="利率变动单位${l:HLS.NOT_NULL}"/>
                    <a:field name="net_total_fee" readonly="true" required="false" requiredmessage="手续费/管理费${l:HLS.NOT_NULL}"/>
                    <a:field name="net_total_interest" readonly="true" required="false" requiredmessage="租息收入${l:HLS.NOT_NULL}"/>
                    <a:field name="net_total_rental" readonly="true" required="false" requiredmessage="税后租金${l:HLS.NOT_NULL}"/>
                    <a:field name="npv_using_cof" readonly="true" required="false" requiredmessage="NPV${l:HLS.NOT_NULL}"/>
                    <a:field name="repur_profile_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="回购预置文件${l:HLS.NOT_NULL}" title="回购预置文件">
                        <a:mapping>
                            <a:map from="value_code" to="repur_profile"/>
                            <a:map from="value_name" to="repur_profile_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="repur_profile" readonly="true" required="false" requiredmessage="回购预置文件${l:HLS.NOT_NULL}"/>
                    <a:field name="reschedule_profile_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="支付期平移预置文件${l:HLS.NOT_NULL}" title="支付期平移预置文件">
                        <a:mapping>
                            <a:map from="value_code" to="reschedule_profile"/>
                            <a:map from="value_name" to="reschedule_profile_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="reschedule_profile" readonly="true" required="false" requiredmessage="支付期平移预置文件${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_F_FINANCE_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_G_CASHFLOW_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_G_CASHFLOW_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cashflow_id" config_id="121180" data_type="NUMBER" display_flag="N" display_order="-99" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流ID" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_id" config_id="121189" data_type="NUMBER" display_flag="N" display_order="-98" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="Y" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同ID" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="colour_scheme" config_id="121188" data_type="VARCHAR2" display_flag="N" display_order="-80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="颜色" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="50" zero_fill="FALSE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="alert_scheme" config_id="121171" data_type="VARCHAR2" display_flag="N" display_order="-70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="提示方案" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="50" zero_fill="FALSE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_direction_pic" config_id="121182" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="-1" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="收/付" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_CASHFLOW" validation_type="PICTURE" width="50" zero_fill="FALSE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_status_n" config_id="121186" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="7" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="50" zero_fill="FALSE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="times" config_id="121285" data_type="NUMBER" display_flag="Y" display_order="10" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="期数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="50" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_item_n" config_id="121184" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="20" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流项目" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="100" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="calc_date" config_id="121178" data_type="DATE" display_flag="N" display_order="30" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="计算日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="100" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="due_date" config_id="121194" data_type="DATE" display_flag="Y" display_order="40" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="到期日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="80" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="due_amount" config_id="121191" data_type="NUMBER" display_flag="Y" display_order="60" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="应收(付)金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="100" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="principal" config_id="121270" data_type="NUMBER" display_flag="Y" display_order="70" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="应收本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="100" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="interest" config_id="121206" data_type="NUMBER" display_flag="Y" display_order="80" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="应收利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="80" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="last_received_date" config_id="121216" data_type="DATE" display_flag="Y" display_order="84" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="最后收款日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="80" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="received_amount" config_id="121277" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="85" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="已收(付)金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="G_CASHFLOW" underline="N" validation_type="NUMBERFIELD" width="100" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="received_interest" config_id="121278" data_type="NUMBER" display_flag="Y" display_order="86" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="已收利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="100" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="received_principal" config_id="121279" data_type="NUMBER" display_flag="Y" display_order="87" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="已收本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="80" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="billing_status_n" config_id="121177" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="120" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="开票状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="G_CASHFLOW" underline="N" validation_type="TEXTFIELD" width="70" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_prin_tax_incld" config_id="121259" data_type="NUMBER" display_flag="N" display_order="180" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="100" zero_fill="TRUE"/>
                    <a:record alignment="CENTER" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="generated_source" config_id="121204" data_type="VARCHAR2" display_flag="Y" display_order="200" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流来源" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_sql="select code_value as value_code,code_value_name as value_name from sys_code_values_v a where code = &apos;CON_GENERATED_SOURCE&apos;" validation_type="LOV" width="80" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="accumulated_unpaid_interest" config_id="121169" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="累计未偿还利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="accumulated_unpd_int_tax_incl" config_id="121170" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="累计未偿还利息(含税)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="beginning_of_lease_year" config_id="121172" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="每个租赁年度的开始" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="CHECKBOX" width="30" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="billing_status" config_id="121176" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="开票状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="calc_line_id" config_id="121179" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="计算器行ID" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_direction" config_id="121181" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流方向" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_item" config_id="121183" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流项目" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_status" config_id="121185" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cf_type" config_id="121187" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="现金流类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="discounting_days" config_id="121190" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="贴现天数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="due_amount_cny" config_id="121192" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【人民币】应收金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="due_amount_func" config_id="121193" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【本币】应收金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="equal_flag" config_id="121195" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="均等标志" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="CHECKBOX" width="30" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="FALSE" autocomplete="true" column_name="exchange_rate" config_id="121196" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="8" prompt="汇率" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="exchange_rate_quotation" config_id="121197" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇率标价方法" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_sql="select v.code_value as value_code,v.code_value_name as value_name from sys_code_values_v v where v.code = &apos;EXCHANGE_RATE_QUOTATION&apos; and v.code_enabled_flag = &apos;Y&apos; and v.code_value_enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="exchange_rate_type" config_id="121198" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇率类型" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_sql="select type_code as value_code,type_name as value_name from gld_exchangerate_types_vl where enabled_flag = &apos;Y&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="financing_cost" config_id="121199" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【本币？】融资成本（通常是银行贷款利息）" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="fin_income_date" config_id="121200" data_type="DATE" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="收入确认日期" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="80" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="full_write_off_date" config_id="121203" data_type="DATE" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="完全核销日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="generated_source_doc_id" config_id="121205" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="来源单据ID" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="interest_accrual_balance" config_id="121207" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期计息余额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="interest_accrual_bal_tax_incl" config_id="121208" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期计息余额(含税)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="interest_implicit_rate" config_id="121213" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="interest_only_flag" config_id="121214" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="仅支付利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="CHECKBOX" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="interest_period_days" config_id="121215" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="计息天数" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_year" config_id="121217" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="租赁年度" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="main_business_cost" config_id="121248" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【本币】主营业务成本（不含税本金+融资成本？）" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="main_business_income" config_id="121249" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="【本币】主营业务收入（不含税租金）" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="manual_flag" config_id="121250" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="手工标志" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="CHECKBOX" width="30" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_due_amount" config_id="121251" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="不含税到期金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_interest" config_id="121252" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="不含税利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_interest_implicit" config_id="121253" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法不含税利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_principal" config_id="121254" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="不含税本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="net_principal_implicit" config_id="121255" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法不含税本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_interest" config_id="121256" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_int_tax_incld" config_id="121257" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余利息(含税)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_principal" config_id="121258" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_rental" config_id="121260" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余租金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="outstanding_rental_tax_incld" config_id="121261" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="当期剩余租金(含税)" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="overdue_amount" config_id="121262" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="overdue_book_date" config_id="121263" data_type="DATE" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期记账日" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="overdue_interest" config_id="121264" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期利息" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="overdue_principal" config_id="121265" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="overdue_remark" config_id="121266" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期情况说明" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="overdue_status" config_id="121267" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="penalty_process_status" config_id="121268" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="罚金处理状态" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="period_num" config_id="121269" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="租赁月度" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="principal_implicit_rate" config_id="121275" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法本金" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="quarter_num" config_id="121276" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="0" prompt="租赁季度" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="tt_account_1_amt" config_id="121286" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_1应收金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="tt_account_2_amt" config_id="121287" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_2应收金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="tt_account_3_amt" config_id="121288" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_3应收金额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="TRUE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_id_1" config_id="121289" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账户ID_1" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_id_2" config_id="121290" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账户ID_2" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_id_3" config_id="121291" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账户ID_3" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="LOV" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_num_1" config_id="121292" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_1" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_num_2" config_id="121293" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_2" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tt_bank_account_num_3" config_id="121294" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="汇款账号_3" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="vat_due_amount" config_id="121295" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="增值税额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="vat_interest" config_id="121296" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="利息增值税额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="vat_interest_implicit" config_id="121297" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法利息增值税额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="vat_principal" config_id="121298" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="本金增值税额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="TRUE" allow_format="TRUE" autocomplete="true" column_name="vat_principal_implicit" config_id="121299" data_type="NUMBER" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="实际利率法本金增值税额" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="G_CASHFLOW" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="write_off_flag" config_id="121300" data_type="VARCHAR2" display_flag="N" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="核销标志" query_only="Y" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="G_CASHFLOW" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALG_CASHFLOW_exchange_rate_quotation_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSALG_CASHFLOW_exchange_rate_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds" autopagesize="true" bindname="CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="true" processfunction="CCR_UNIVERSAL_G_CASHFLOW_CON_GRID_PROCESS" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=G_CASHFLOW&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" selectable="true" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_cashflow&amp;query_only=Y&amp;tab_code=G_CASHFLOW&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_ADD&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_LOAD&apos;]"/>
                    <a:event name="indexchange" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_INDEXCHANGE&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_QUERY&apos;]"/>
                    <a:event name="select" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_SELECT&apos;]"/>
                    <a:event name="unselect" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_GRID_UNSELECT&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="cashflow_id" readonly="true" required="false" requiredmessage="现金流ID${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_id" readonly="true" required="false" requiredmessage="合同ID${l:HLS.NOT_NULL}"/>
                    <a:field name="colour_scheme" readonly="true" required="false" requiredmessage="颜色${l:HLS.NOT_NULL}"/>
                    <a:field name="alert_scheme" readonly="true" required="false" requiredmessage="提示方案${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_direction_pic" readonly="true" required="false" requiredmessage="收/付${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_status_n" readonly="true" required="false" requiredmessage="状态${l:HLS.NOT_NULL}"/>
                    <a:field name="times" readonly="true" required="false" requiredmessage="期数${l:HLS.NOT_NULL}"/>
                    <a:field name="calc_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="计算日${l:HLS.NOT_NULL}"/>
                    <a:field name="due_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="到期日${l:HLS.NOT_NULL}"/>
                    <a:field name="due_amount" readonly="true" required="false" requiredmessage="应收(付)金额${l:HLS.NOT_NULL}"/>
                    <a:field name="principal" readonly="true" required="false" requiredmessage="应收本金${l:HLS.NOT_NULL}"/>
                    <a:field name="interest" readonly="true" required="false" requiredmessage="应收利息${l:HLS.NOT_NULL}"/>
                    <a:field name="last_received_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="最后收款日${l:HLS.NOT_NULL}"/>
                    <a:field name="received_amount" readonly="true" required="false" requiredmessage="已收(付)金额${l:HLS.NOT_NULL}"/>
                    <a:field name="received_interest" readonly="true" required="false" requiredmessage="已收利息${l:HLS.NOT_NULL}"/>
                    <a:field name="received_principal" readonly="true" required="false" requiredmessage="已收本金${l:HLS.NOT_NULL}"/>
                    <a:field name="billing_status_n" readonly="true" required="false" requiredmessage="开票状态${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_prin_tax_incld" readonly="true" required="false" requiredmessage="当期剩余本金${l:HLS.NOT_NULL}"/>
                    <a:field name="generated_source_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="现金流来源${l:HLS.NOT_NULL}" title="现金流来源">
                        <a:mapping>
                            <a:map from="value_code" to="generated_source"/>
                            <a:map from="value_name" to="generated_source_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="generated_source" readonly="true" required="false" requiredmessage="现金流来源${l:HLS.NOT_NULL}"/>
                    <a:field name="accumulated_unpaid_interest" readonly="true" required="false" requiredmessage="累计未偿还利息${l:HLS.NOT_NULL}"/>
                    <a:field name="accumulated_unpd_int_tax_incl" readonly="true" required="false" requiredmessage="累计未偿还利息(含税)${l:HLS.NOT_NULL}"/>
                    <a:field name="beginning_of_lease_year" checkedvalue="Y" readonly="true" required="false" requiredmessage="每个租赁年度的开始${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="billing_status" readonly="true" required="false" requiredmessage="开票状态${l:HLS.NOT_NULL}"/>
                    <a:field name="calc_line_id" readonly="true" required="false" requiredmessage="计算器行ID${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_direction" readonly="true" required="false" requiredmessage="现金流方向${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_item_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="现金流项目${l:HLS.NOT_NULL}" title="现金流项目">
                        <a:mapping>
                            <a:map from="value_code" to="cf_item"/>
                            <a:map from="value_name" to="cf_item_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="cf_item" readonly="true" required="false" requiredmessage="现金流项目${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_status" readonly="true" required="false" requiredmessage="现金流状态${l:HLS.NOT_NULL}"/>
                    <a:field name="cf_type" readonly="true" required="false" requiredmessage="现金流类型${l:HLS.NOT_NULL}"/>
                    <a:field name="discounting_days" readonly="true" required="false" requiredmessage="贴现天数${l:HLS.NOT_NULL}"/>
                    <a:field name="due_amount_cny" readonly="true" required="false" requiredmessage="【人民币】应收金额${l:HLS.NOT_NULL}"/>
                    <a:field name="due_amount_func" readonly="true" required="false" requiredmessage="【本币】应收金额${l:HLS.NOT_NULL}"/>
                    <a:field name="equal_flag" checkedvalue="Y" readonly="true" required="false" requiredmessage="均等标志${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="exchange_rate" readonly="true" required="false" requiredmessage="汇率${l:HLS.NOT_NULL}"/>
                    <a:field name="exchange_rate_quotation_n" displayfield="value_name" options="CCR_UNIVERSALG_CASHFLOW_exchange_rate_quotation_combobox_ds" readonly="true" required="false" requiredmessage="汇率标价方法${l:HLS.NOT_NULL}" returnfield="exchange_rate_quotation" valuefield="value_code"/>
                    <a:field name="exchange_rate_quotation" readonly="true" required="false" requiredmessage="汇率标价方法${l:HLS.NOT_NULL}"/>
                    <a:field name="exchange_rate_type_n" displayfield="value_name" options="CCR_UNIVERSALG_CASHFLOW_exchange_rate_type_combobox_ds" readonly="true" required="false" requiredmessage="汇率类型${l:HLS.NOT_NULL}" returnfield="exchange_rate_type" valuefield="value_code"/>
                    <a:field name="exchange_rate_type" readonly="true" required="false" requiredmessage="汇率类型${l:HLS.NOT_NULL}"/>
                    <a:field name="financing_cost" readonly="true" required="false" requiredmessage="【本币？】融资成本（通常是银行贷款利息）${l:HLS.NOT_NULL}"/>
                    <a:field name="fin_income_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="收入确认日期${l:HLS.NOT_NULL}"/>
                    <a:field name="full_write_off_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="完全核销日${l:HLS.NOT_NULL}"/>
                    <a:field name="generated_source_doc_id" readonly="true" required="false" requiredmessage="来源单据ID${l:HLS.NOT_NULL}"/>
                    <a:field name="interest_accrual_balance" readonly="true" required="false" requiredmessage="当期计息余额${l:HLS.NOT_NULL}"/>
                    <a:field name="interest_accrual_bal_tax_incl" readonly="true" required="false" requiredmessage="当期计息余额(含税)${l:HLS.NOT_NULL}"/>
                    <a:field name="interest_implicit_rate" readonly="true" required="false" requiredmessage="实际利率法利息${l:HLS.NOT_NULL}"/>
                    <a:field name="interest_only_flag" checkedvalue="Y" readonly="true" required="false" requiredmessage="仅支付利息${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="interest_period_days" readonly="true" required="false" requiredmessage="计息天数${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_year" readonly="true" required="false" requiredmessage="租赁年度${l:HLS.NOT_NULL}"/>
                    <a:field name="main_business_cost" readonly="true" required="false" requiredmessage="【本币】主营业务成本（不含税本金+融资成本？）${l:HLS.NOT_NULL}"/>
                    <a:field name="main_business_income" readonly="true" required="false" requiredmessage="【本币】主营业务收入（不含税租金）${l:HLS.NOT_NULL}"/>
                    <a:field name="manual_flag" checkedvalue="Y" readonly="true" required="false" requiredmessage="手工标志${l:HLS.NOT_NULL}" uncheckedvalue="N"/>
                    <a:field name="net_due_amount" readonly="true" required="false" requiredmessage="不含税到期金额${l:HLS.NOT_NULL}"/>
                    <a:field name="net_interest" readonly="true" required="false" requiredmessage="不含税利息${l:HLS.NOT_NULL}"/>
                    <a:field name="net_interest_implicit" readonly="true" required="false" requiredmessage="实际利率法不含税利息${l:HLS.NOT_NULL}"/>
                    <a:field name="net_principal" readonly="true" required="false" requiredmessage="不含税本金${l:HLS.NOT_NULL}"/>
                    <a:field name="net_principal_implicit" readonly="true" required="false" requiredmessage="实际利率法不含税本金${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_interest" readonly="true" required="false" requiredmessage="当期剩余利息${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_int_tax_incld" readonly="true" required="false" requiredmessage="当期剩余利息(含税)${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_principal" readonly="true" required="false" requiredmessage="当期剩余本金${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_rental" readonly="true" required="false" requiredmessage="当期剩余租金${l:HLS.NOT_NULL}"/>
                    <a:field name="outstanding_rental_tax_incld" readonly="true" required="false" requiredmessage="当期剩余租金(含税)${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_amount" readonly="true" required="false" requiredmessage="逾期金额${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_book_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="逾期记账日${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_interest" readonly="true" required="false" requiredmessage="逾期利息${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_principal" readonly="true" required="false" requiredmessage="逾期本金${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_remark" readonly="true" required="false" requiredmessage="逾期情况说明${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_status" readonly="true" required="false" requiredmessage="逾期状态${l:HLS.NOT_NULL}"/>
                    <a:field name="penalty_process_status" readonly="true" required="false" requiredmessage="罚金处理状态${l:HLS.NOT_NULL}"/>
                    <a:field name="period_num" readonly="true" required="false" requiredmessage="租赁月度${l:HLS.NOT_NULL}"/>
                    <a:field name="principal_implicit_rate" readonly="true" required="false" requiredmessage="实际利率法本金${l:HLS.NOT_NULL}"/>
                    <a:field name="quarter_num" readonly="true" required="false" requiredmessage="租赁季度${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_account_1_amt" readonly="true" required="false" requiredmessage="汇款账号_1应收金额${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_account_2_amt" readonly="true" required="false" requiredmessage="汇款账号_2应收金额${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_account_3_amt" readonly="true" required="false" requiredmessage="汇款账号_3应收金额${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_id_1_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="汇款账户ID_1${l:HLS.NOT_NULL}" title="汇款账户ID_1">
                        <a:mapping>
                            <a:map from="value_code" to="tt_bank_account_id_1"/>
                            <a:map from="value_name" to="tt_bank_account_id_1_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="tt_bank_account_id_1" readonly="true" required="false" requiredmessage="汇款账户ID_1${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_id_2_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="汇款账户ID_2${l:HLS.NOT_NULL}" title="汇款账户ID_2">
                        <a:mapping>
                            <a:map from="value_code" to="tt_bank_account_id_2"/>
                            <a:map from="value_name" to="tt_bank_account_id_2_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="tt_bank_account_id_2" readonly="true" required="false" requiredmessage="汇款账户ID_2${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_id_3_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov" lovwidth="600" readonly="true" required="false" requiredmessage="汇款账户ID_3${l:HLS.NOT_NULL}" title="汇款账户ID_3">
                        <a:mapping>
                            <a:map from="value_code" to="tt_bank_account_id_3"/>
                            <a:map from="value_name" to="tt_bank_account_id_3_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="tt_bank_account_id_3" readonly="true" required="false" requiredmessage="汇款账户ID_3${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_num_1" readonly="true" required="false" requiredmessage="汇款账号_1${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_num_2" readonly="true" required="false" requiredmessage="汇款账号_2${l:HLS.NOT_NULL}"/>
                    <a:field name="tt_bank_account_num_3" readonly="true" required="false" requiredmessage="汇款账号_3${l:HLS.NOT_NULL}"/>
                    <a:field name="vat_due_amount" readonly="true" required="false" requiredmessage="增值税额${l:HLS.NOT_NULL}"/>
                    <a:field name="vat_interest" readonly="true" required="false" requiredmessage="利息增值税额${l:HLS.NOT_NULL}"/>
                    <a:field name="vat_interest_implicit" readonly="true" required="false" requiredmessage="实际利率法利息增值税额${l:HLS.NOT_NULL}"/>
                    <a:field name="vat_principal" readonly="true" required="false" requiredmessage="本金增值税额${l:HLS.NOT_NULL}"/>
                    <a:field name="vat_principal_implicit" readonly="true" required="false" requiredmessage="实际利率法本金增值税额${l:HLS.NOT_NULL}"/>
                    <a:field name="write_off_flag" readonly="true" required="false" requiredmessage="核销标志${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_G_CASHFLOW_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_F_STATUS_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_F_STATUS_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_status_n" config_id="121301" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="1" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同状态" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="inception_of_lease" config_id="121309" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" display_order="2" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁开始日" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="five_class_code_n" config_id="121308" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="3" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="五级分类" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="overdue_status_n" config_id="121313" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="4" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期状态" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="overdue_max_days" config_id="121312" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="5" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="逾期天数" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="print_status_n" config_id="121314" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="6" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="打印状态" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="RIGHT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="print_times" config_id="121315" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" display_order="7" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="打印次数" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" validation_type="NUMBERFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="first_print_date" config_id="121307" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" display_order="8" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="打印日期" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="first_print_by_n" config_id="121306" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="9" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="打印者" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="version_display" config_id="121319" data_type="VARCHAR2" display_flag="Y" display_order="91" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同版本" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="version_date" config_id="121318" data_type="DATE" display_flag="Y" display_order="92" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="版本日期" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="Y" tab_code="F_STATUS" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="version_reason" config_id="121321" data_type="VARCHAR2" display_flag="Y" display_order="93" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="版本原因" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="version_note" config_id="121320" data_type="VARCHAR2" display_flag="Y" display_order="94" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="版本说明" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="Y" tab_code="F_STATUS" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="file_status_n" config_id="121304" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" display_order="100" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="归档状态" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="doc_note" config_id="121302" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="文档备注" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="TEXTFIELD" width="428" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="file_complete_date" config_id="121303" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="文件归档日期" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="file_user_id_n" config_id="121305" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="归档人" query_only="N" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ip_withdrawer" config_id="121310" copy_from_parent_tab="N" data_type="NUMBER" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="保单调取人" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" underline="N" validation_sql="select employee_code,EMPLOYEE_id as value_code, NAME as value_name   from EXP_EMPLOYEES   WHERE ENABLED_FLAG = &apos;Y&apos;" validation_type="LOV_D" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ip_withdraw_date" config_id="121311" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="保单调取日期" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="termination_doc_date" config_id="121316" copy_from_parent_tab="N" data_type="DATE" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="结清文件调取日期" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" underline="N" validation_type="DATEPICKER" width="120" zero_fill="FALSE"/>
                    <a:record alignment="LEFT" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="termination_type" config_id="121317" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="结清类型" query_only="N" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="false" system_flag="N" tab_code="F_STATUS" underline="N" validation_sql=" select v.code_value as value_code,v.code_value_name as value_name,v.code_value as termination_type   from sys_code_values_v v  where v.code = &apos;CON506_TERMINATION_TYPE&apos;" validation_type="COMBOBOX" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSALF_STATUS_termination_type_combobox_ds" fetchall="true" queryurl="${/request/@context_path}/autocrud/layout.server_parameters_lov/query"/>
            <a:dataSet id="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" bindname="CCR_UNIVERSAL_F_STATUS_con_contract_status" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" fetchall="false" processfunction="CCR_UNIVERSAL_F_STATUS_CON_FORM_PROCESSFUNCTION" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=F_STATUS&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_status&amp;query_only=N&amp;tab_code=F_STATUS&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=con_contract&amp;parent_base_table_pk=contract_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="submitfailed" handler="window[&apos;CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED&apos;]"/>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_F_STATUS_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="contract_status_n" readonly="true" required="false" requiredmessage="合同状态合同状态${l:HLS.NOT_NULL}"/>
                    <a:field name="inception_of_lease" datatype="java.util.Date" readonly="true" required="false" requiredmessage="合同状态租赁开始日${l:HLS.NOT_NULL}"/>
                    <a:field name="five_class_code_n" readonly="true" required="false" requiredmessage="合同状态五级分类${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_status_n" readonly="true" required="false" requiredmessage="合同状态逾期状态${l:HLS.NOT_NULL}"/>
                    <a:field name="overdue_max_days" readonly="true" required="false" requiredmessage="合同状态逾期天数${l:HLS.NOT_NULL}"/>
                    <a:field name="print_status_n" readonly="true" required="false" requiredmessage="合同状态打印状态${l:HLS.NOT_NULL}"/>
                    <a:field name="print_times" readonly="true" required="false" requiredmessage="合同状态打印次数${l:HLS.NOT_NULL}"/>
                    <a:field name="first_print_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="合同状态打印日期${l:HLS.NOT_NULL}"/>
                    <a:field name="first_print_by_n" readonly="true" required="false" requiredmessage="合同状态打印者${l:HLS.NOT_NULL}"/>
                    <a:field name="version_display" readonly="true" required="false" requiredmessage="合同状态合同版本${l:HLS.NOT_NULL}"/>
                    <a:field name="version_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="合同状态版本日期${l:HLS.NOT_NULL}"/>
                    <a:field name="version_reason" readonly="true" required="false" requiredmessage="合同状态版本原因${l:HLS.NOT_NULL}"/>
                    <a:field name="version_note" readonly="false" required="false" requiredmessage="合同状态版本说明${l:HLS.NOT_NULL}"/>
                    <a:field name="file_status_n" readonly="true" required="false" requiredmessage="合同状态归档状态${l:HLS.NOT_NULL}"/>
                    <a:field name="doc_note" readonly="false" required="false" requiredmessage="合同状态文档备注${l:HLS.NOT_NULL}"/>
                    <a:field name="file_complete_date" datatype="java.util.Date" readonly="true" required="false" requiredmessage="合同状态文件归档日期${l:HLS.NOT_NULL}"/>
                    <a:field name="file_user_id_n" readonly="true" required="false" requiredmessage="合同状态归档人${l:HLS.NOT_NULL}"/>
                    <a:field name="ip_withdrawer_n" autocomplete="true" fetchsingle="false" lovgridheight="350" lovheight="520" lovlabelwidth="100" lovservice="layout.server_parameters_lov_d" lovwidth="600" readonly="false" required="false" requiredmessage="合同状态保单调取人${l:HLS.NOT_NULL}" title="保单调取人">
                        <a:mapping>
                            <a:map from="value_code" to="ip_withdrawer"/>
                            <a:map from="value_name" to="ip_withdrawer_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="ip_withdrawer" readonly="false" required="false" requiredmessage="合同状态保单调取人${l:HLS.NOT_NULL}"/>
                    <a:field name="ip_withdraw_date" datatype="java.util.Date" readonly="false" required="false" requiredmessage="合同状态保单调取日期${l:HLS.NOT_NULL}"/>
                    <a:field name="termination_doc_date" datatype="java.util.Date" readonly="false" required="false" requiredmessage="合同状态结清文件调取日期${l:HLS.NOT_NULL}"/>
                    <a:field name="termination_type_n" displayfield="value_name" options="CCR_UNIVERSALF_STATUS_termination_type_combobox_ds" readonly="false" required="false" requiredmessage="合同状态结清类型${l:HLS.NOT_NULL}" returnfield="termination_type" valuefield="value_code"/>
                    <a:field name="termination_type" readonly="false" required="false" requiredmessage="合同状态结清类型${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_F_STATUS_CHILD_ONREADY']();]]></script>
            <a:dataSet id="CCR_UNIVERSAL_F_DESCRIPTION_lov_getmapping_ds" fetchall="true" queryurl="${/request/@context_path}/modules/layout/server_layout_sql_parameters_load.lsc"/>
            <a:dataSet id="CCR_UNIVERSAL_F_DESCRIPTION_con_layout_config_ds">
                <a:datas>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="bank_acc_change_flag_n" config_id="121330" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="银行卡号变更" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="cashflow_change_flag_n" config_id="121331" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租金计划变更" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="contract_cancel_flag_n" config_id="121332" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同撤销" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="description" config_id="116662" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="变更说明" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTAREA" width="1150" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="et_flag_n" config_id="121333" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="提前结清" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="guarantor_change_flag_n" config_id="121334" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="担保人变更" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="lease_item_change_flag_n" config_id="121335" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="租赁物变更" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="mortgage_change_flag_n" config_id="121339" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="抵质押物变更" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="ref_v01" config_id="121366" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="OPTION" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="资产推荐理由" readonly_input_mode="FALSE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTAREA" width="1150" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="reschedule_flag_n" config_id="121336" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="支付日调整" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="simulation_flag_n" config_id="121337" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="试算标志" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                    <a:record alignment="center" allow_decimal="FALSE" allow_format="FALSE" autocomplete="true" column_name="tenant_change_flag_n" config_id="121338" copy_from_parent_tab="N" data_type="VARCHAR2" display_flag="Y" enabled_flag="Y" fetchsingle="false" field_bak_flag="N" ignore_required="N" input_mode="READONLY" key_field_flag="N" layout_code="CCR_UNIVERSAL" lov_return_vcode="N" precision="2" prompt="合同转让" readonly_input_mode="TRUE" required_input_mode="FALSE" sys_grid_show_title="true" system_flag="N" tab_code="F_DESCRIPTION" underline="N" validation_type="TEXTFIELD" width="120" zero_fill="FALSE"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" bindname="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req" bindtarget="CCR_UNIVERSAL_virtual_ds" fetchall="false" processfunction="CCR_UNIVERSAL_F_DESCRIPTION_CON_FORM_PROCESSFUNCTION" queryurl="${/request/@context_path}/modules/layout/server_layout_base_query.lsc?layout_code=${/parameter/@layout_code}&amp;tab_code=F_DESCRIPTION&amp;bp_seq=&amp;document_category=CONTRACT&amp;document_type=CONLB" submiturl="${/request/@context_path}/modules/layout/server_layout_save.lsc?base_table=con_contract_change_req&amp;query_only=N&amp;tab_code=F_DESCRIPTION&amp;layout_code=CCR_UNIVERSAL&amp;document_id=${/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=${/parameter/@document_type}&amp;function_code=${/parameter/@function_code}&amp;function_usage=${/parameter/@function_usage}&amp;parent_table=&amp;parent_base_table_pk=change_req_id&amp;root_tree_code=&amp;number_of_tenant=${/parameter/@number_of_tenant}&amp;number_of_guarantor=${/parameter/@number_of_guarantor}&amp;number_of_actual_controller=${/parameter/@number_of_actual_controller}&amp;number_of_quotation=${/parameter/@number_of_quotation}">
                <a:events>
                    <a:event name="submitfailed" handler="window[&apos;CCR_UNIVERSAL_ON_LAYOUT_DYNAMIC_INNER_SUBMITFAILED&apos;]"/>
                    <a:event name="add" handler="window[&apos;CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="load" handler="window[&apos;CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FORM_INIT&apos;]"/>
                    <a:event name="query" handler="window[&apos;CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_FORM_QUERY&apos;]"/>
                    <a:event name="update" handler="window[&apos;CCR_UNIVERSAL_F_DESCRIPTION_ON_LAYOUT_DYNAMIC_INNER_UPDATE&apos;]"/>
                </a:events>
                <a:fields>
                    <a:field name="bank_acc_change_flag_n" readonly="true" required="false" requiredmessage="银行卡号变更${l:HLS.NOT_NULL}"/>
                    <a:field name="cashflow_change_flag_n" readonly="true" required="false" requiredmessage="租金计划变更${l:HLS.NOT_NULL}"/>
                    <a:field name="contract_cancel_flag_n" readonly="true" required="false" requiredmessage="合同撤销${l:HLS.NOT_NULL}"/>
                    <a:field name="description" readonly="false" required="false" requiredmessage="变更说明${l:HLS.NOT_NULL}"/>
                    <a:field name="et_flag_n" readonly="true" required="false" requiredmessage="提前结清${l:HLS.NOT_NULL}"/>
                    <a:field name="guarantor_change_flag_n" readonly="true" required="false" requiredmessage="担保人变更${l:HLS.NOT_NULL}"/>
                    <a:field name="lease_item_change_flag_n" readonly="true" required="false" requiredmessage="租赁物变更${l:HLS.NOT_NULL}"/>
                    <a:field name="mortgage_change_flag_n" readonly="true" required="false" requiredmessage="抵质押物变更${l:HLS.NOT_NULL}"/>
                    <a:field name="ref_v01" readonly="false" required="false" requiredmessage="资产推荐理由${l:HLS.NOT_NULL}"/>
                    <a:field name="reschedule_flag_n" readonly="true" required="false" requiredmessage="支付日调整${l:HLS.NOT_NULL}"/>
                    <a:field name="simulation_flag_n" readonly="true" required="false" requiredmessage="试算标志${l:HLS.NOT_NULL}"/>
                    <a:field name="tenant_change_flag_n" readonly="true" required="false" requiredmessage="合同转让${l:HLS.NOT_NULL}"/>
                </a:fields>
            </a:dataSet>
            <script type="text/javascript"><![CDATA[window['CCR_UNIVERSAL_F_DESCRIPTION_ONREADY']();]]></script>
        </a:dataSets>
        <a:screenBody padding="0" style="width:98%;">
            <a:screenTopToolbar style="height:42px">
                <a:screenTitle/>
                <a:gridButton id="CCR_UNIVERSAL_exit" click="CCR_UNIVERSAL_EXIT_LAYOUT_DYNAMIC_CLICK" text="退出"/>
                <a:gridButton id="CCR_UNIVERSAL_save" click="CCR_UNIVERSAL_SAVE_LAYOUT_DYNAMIC_CLICK" text="保存"/>
                <a:gridButton id="CCR_UNIVERSAL_quote" click="${/parameter/@layout_code}_quote_layout_dynamic_click" text="计算"/>
                <a:gridButton id="CCR_UNIVERSAL_submit_approval" click="${/parameter/@layout_code}_submit_approval_layout_dynamic_click" text="提交审批"/>
                <a:gridButton id="CCR_UNIVERSAL_user_button1" click="${/parameter/@layout_code}_user_button1_layout_dynamic_click" text="撤销变更"/>
            </a:screenTopToolbar>
            <a:tabPanel marginheight="0" marginwidth="30" style="padding:5px 0px 0px 5px">
                <a:tabs>
                    <a:tab prompt="基本信息" width="100">
                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                            <a:fieldBox fieldwidth="120" labelseparator=" ">
                                <a:fieldBoxColumns>
                                    <a:fieldBoxColumn fieldwidth="150" labelwidth="120" title="变更信息" wrapperadjust="false">
                                        <a:lov name="price_list_n" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_PRICE_LIST" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="价目表" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CCR_1_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <a:fieldGroup id="CCR_UNIVERSAL_FBC_CCR_1_9" prompt="起始期数/剩余期数">
                                            <a:numberField name="ccr_start_times" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_START_TIMES" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="0" prompt="起始期数/剩余期数" style="margin-top:2px;margin-bottom:2px" width="68"/>
                                            <div style="white-space:nowrap;color:#888;font-size:12px;"><![CDATA[/]]></div>
                                            <a:numberField name="ccr_outstanding_times" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_OUTSTANDING_TIMES" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="0" prompt="/" style="margin-top:2px;margin-bottom:2px" width="68"/>
                                        </a:fieldGroup>
                                        <a:fieldGroup id="CCR_UNIVERSAL_FBC_CCR_1_1" prompt="参与融资/逾期租金">
                                            <a:checkBox name="ccr_financing_overdue_rental" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_FINANCING_OVERDUE_RENTAL" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="参与融资/逾期租金" style="margin-top:2px;margin-bottom:2px" width="15"/>
                                            <div style="white-space:nowrap;color:#888;font-size:12px;"/>
                                            <a:numberField name="ccr_overdue_rental" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_OVERDUE_RENTAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" style="margin-top:2px;margin-bottom:2px" width="129"/>
                                        </a:fieldGroup>
                                        <a:fieldGroup id="CCR_UNIVERSAL_FBC_CCR_1_2" prompt="参与融资/逾期罚息">
                                            <a:checkBox name="hd_user_col_n13" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_HD_USER_COL_N13" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="参与融资/逾期罚息" style="margin-top:2px;margin-bottom:2px" width="15"/>
                                            <div style="white-space:nowrap;color:#888;font-size:12px;"/>
                                            <a:numberField name="ccr_penalty" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_PENALTY" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" style="margin-top:2px;margin-bottom:2px" width="129"/>
                                        </a:fieldGroup>
                                        <a:fieldGroup id="CCR_UNIVERSAL_FBC_CCR_1_3" prompt="参与融资/手续费用">
                                            <a:checkBox name="hd_user_col_n14" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_HD_USER_COL_N14" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="参与融资/手续费用" style="margin-top:2px;margin-bottom:2px" width="15"/>
                                            <div style="white-space:nowrap;color:#888;font-size:12px;"/>
                                            <a:numberField name="ccr_fee" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_FEE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" style="margin-top:2px;margin-bottom:2px" width="129"/>
                                        </a:fieldGroup>
                                        <a:fieldGroup id="CCR_UNIVERSAL_FBC_CCR_1_4" prompt="参与融资/法律费用">
                                            <a:checkBox name="hd_user_col_n15" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_HD_USER_COL_N15" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="参与融资/法律费用" style="margin-top:2px;margin-bottom:2px" width="15"/>
                                            <div style="white-space:nowrap;color:#888;font-size:12px;"/>
                                            <a:numberField name="legal_fee" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_LEGAL_FEE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" style="margin-top:2px;margin-bottom:2px" width="129"/>
                                        </a:fieldGroup>
                                        <a:numberField name="ccr_added_principal" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_ADDED_PRINCIPAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="追加本金" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="ccr_outstanding_prin_tax_incld" id="CCR_UNIVERSAL_FBC_CCR_1_CON_CONTRACT_CCR_OUTSTANDING_PRIN_TAX_INCLD" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="剩余本金" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                    </a:fieldBoxColumn>
                                    <a:fieldBoxColumn fieldwidth="150" labelwidth="120" wrapperadjust="false">
                                        <a:numberField name="ccr_debt_exemption_amount" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_DEBT_EXEMPTION_AMOUNT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="罚息减免金额" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="legal_fee" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_LEGAL_FEE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="法律费用" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="ccr_debt_exemption_amt_legal" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_DEBT_EXEMPTION_AMT_LEGAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="法律费减免额" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="ccr_deposit_balance" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_DEPOSIT_BALANCE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="保证金余额" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="ccr_reschedule_start_times" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_RESCHEDULE_START_TIMES" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="支付日调整开始期数" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:datePicker name="ccr_reschedule_date" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_RESCHEDULE_DATE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="支付日调整后首期还款日期" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:checkBox name="ccr_simplify_flag" id="CCR_UNIVERSAL_FBC_CCR2_CON_CONTRACT_CCR_SIMPLIFY_FLAG" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="是否简化流程" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                    </a:fieldBoxColumn>
                                    <a:fieldBoxColumn fieldwidth="150" labelwidth="120" marginwidth="50" title="合同信息" wrapperadjust="false">
                                        <a:textField name="search_term_1" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_SEARCH_TERM_1" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="合同号" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:lov name="employee_id_n" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_EMPLOYEE_ID" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="项目经理" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_1_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <a:textField name="employee_id_of_manager_n" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_EMPLOYEE_ID_OF_MANAGER_N" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="部门负责人" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:comboBox name="currency_n" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_CURRENCY" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="币种" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_1_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <a:numberField name="total_rental" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_TOTAL_RENTAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="租金总额" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="total_interest" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_TOTAL_INTEREST" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="利息总额" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:numberField name="total_fee" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_TOTAL_FEE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" decimalprecision="2" prompt="管理费" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:datePicker name="lease_start_date" id="CCR_UNIVERSAL_FBC_CON_1_CON_CONTRACT_LEASE_START_DATE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="租赁期开始日" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                    </a:fieldBoxColumn>
                                    <a:fieldBoxColumn fieldwidth="150" labelwidth="120" marginwidth="50" wrapperadjust="false">
                                        <a:textField name="contract_number" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_CONTRACT_NUMBER" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="合同序号" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:comboBox name="document_type_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_DOCUMENT_TYPE" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="合同类型" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <a:lov name="company_id_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_COMPANY_ID" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="公司名称" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <a:lov name="lease_organization_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_LEASE_ORGANIZATION" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="业务部" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <a:comboBox name="lease_channel_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_LEASE_CHANNEL" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="商业模式" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <a:comboBox name="division_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_DIVISION" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="产品线" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <a:textField name="lease_times" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_LEASE_TIMES" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="租赁期数" style="margin-top:2px;margin-bottom:2px" width="150"/>
                                        <a:comboBox name="annual_pay_times_n" id="CCR_UNIVERSAL_FBC_CON_2_CON_CONTRACT_ANNUAL_PAY_TIMES" bindtarget="CCR_UNIVERSAL_FBC_CCR_1_con_contract_ds" prompt="支付频率" style="margin-top:2px;margin-bottom:2px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_FBC_CON_2_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                    </a:fieldBoxColumn>
                                </a:fieldBoxColumns>
                            </a:fieldBox>
                        </a:box>
                        <a:box padding="0" style="width:%98;padding:0px 0px 0px 5px">
                            <a:tabPanel marginheight="340" marginwidth="50" style="padding:0px 0px 0px 5px">
                                <a:tabs>
                                    <a:tab prompt="商业伙伴" width="100">
                                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                                            <a:grid id="CCR_UNIVERSAL_G_BP_con_contract_bp_layout_grid_id" bindtarget="CCR_UNIVERSAL_G_BP_con_contract_bp_ds" marginheight="390" marginwidth="80" navbar="true">
                                                <a:columns>
                                                    <a:column name="bp_category_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR" prompt="商业伙伴类别" width="120"/>
                                                    <a:column name="bp_id_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR" prompt="商业伙伴名称" width="250"/>
                                                    <a:column name="bp_id_c" align="LEFT" editorfunction="CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR" prompt="商业伙伴编码" showtitle="true" width="120"/>
                                                    <a:column name="doc_sent_address" align="LEFT" editorfunction="CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR" prompt="单据寄送地址" showtitle="true" width="250"/>
                                                    <a:column name="enabled_flag" align="LEFT" editorfunction="CCR_UNIVERSAL_G_BP_SEE_DETAIL_EDITOR" prompt="启用" width="32"/>
                                                </a:columns>
                                                <a:editors>
                                                    <a:lov id="CCR_UNIVERSAL_G_BP_bp_category_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:lov id="CCR_UNIVERSAL_G_BP_bp_id_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_BP_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:textField id="CCR_UNIVERSAL_G_BP_bp_id_c_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_BP_doc_sent_address_id"/>
                                                    <a:checkBox id="CCR_UNIVERSAL_G_BP_enabled_flag_id"/>
                                                </a:editors>
                                                <a:toolBar>
                                                    <span/>
                                                    <a:button text="新增" type="add"/>
                                                    <a:button text="删除" type="delete"/>
                                                    <a:button text="移除" type="clear"/>
                                                    <a:button click="CCR_UNIVERSAL_G_BP_GRID_QUERY" icon="${/request/@context_path}/images/search.png" text="查询"/>
                                                </a:toolBar>
                                            </a:grid>
                                        </a:box>
                                    </a:tab>
                                    <a:tab prompt="资产信息" width="100">
                                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                                            <a:grid id="CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_layout_grid_id" bindtarget="CCR_UNIVERSAL_G_ASSET_con_contract_lease_item_ds" marginheight="390" marginwidth="90" navbar="true">
                                                <a:columns>
                                                    <a:column name="full_name" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="租赁物名称" showtitle="true" width="100"/>
                                                    <a:column name="brand_name" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备品牌" showtitle="true" width="120"/>
                                                    <a:column name="specification" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备/车辆型号" showtitle="true" width="120"/>
                                                    <a:column name="lease_category_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备类别" width="80"/>
                                                    <a:column name="configure" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备配置" showtitle="true" width="80"/>
                                                    <a:column name="brand_id_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车辆品牌 " width="120"/>
                                                    <a:column name="series_id_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车辆车系" width="120"/>
                                                    <a:column name="model_id_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车辆车型" width="120"/>
                                                    <a:column name="quantity" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="数量" renderer="CCR_UNIVERSAL_G_ASSET_SEEDETAIL_COLUMN_LN" width="40"/>
                                                    <a:column name="price" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="单价" renderer="CCR_UNIVERSAL_G_ASSET_SEEDETAIL_COLUMN_LN" width="120"/>
                                                    <a:column name="manufacturer_name" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="制造商名称" showtitle="true" width="120"/>
                                                    <a:column name="aircraft_category_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车辆/设备类型" width="120"/>
                                                    <a:column name="serial_number" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="机编号/车架号" showtitle="true" width="120"/>
                                                    <a:column name="engine" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="发动机号" showtitle="true" width="120"/>
                                                    <a:column name="license_plate_number" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车牌号" showtitle="true" width="120"/>
                                                    <a:column name="fixed_assets_site" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备交付地点" showtitle="true" width="120"/>
                                                    <a:column name="installation_site" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="设备使用地点" showtitle="true" width="120"/>
                                                    <a:column name="estimated_deliver_date" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="预计交付日" renderer="Leaf.formatDate" width="120"/>
                                                    <a:column name="ref_v05_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_ASSET_SEE_DETAIL_EDITOR" prompt="车牌所有权" width="120"/>
                                                </a:columns>
                                                <a:editors>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_full_name_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_brand_name_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_specification_id"/>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_ASSET_lease_category_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_configure_id"/>
                                                    <a:lov id="CCR_UNIVERSAL_G_ASSET_brand_id_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:lov id="CCR_UNIVERSAL_G_ASSET_series_id_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:lov id="CCR_UNIVERSAL_G_ASSET_model_id_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:numberField id="CCR_UNIVERSAL_G_ASSET_quantity_id" decimalprecision="-1"/>
                                                    <a:numberField id="CCR_UNIVERSAL_G_ASSET_price_id" decimalprecision="-1"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_manufacturer_name_id"/>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_ASSET_aircraft_category_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_serial_number_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_engine_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_license_plate_number_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_fixed_assets_site_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_ASSET_installation_site_id"/>
                                                    <a:datePicker id="CCR_UNIVERSAL_G_ASSET_estimated_deliver_date_id"/>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_ASSET_ref_v05_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_ASSET_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                </a:editors>
                                                <a:toolBar>
                                                    <span/>
                                                    <a:button text="新增" type="add"/>
                                                    <a:button text="删除" type="delete"/>
                                                    <a:button text="移除" type="clear"/>
                                                    <a:button click="CCR_UNIVERSAL_G_ASSET_GRID_QUERY" icon="${/request/@context_path}/images/search.png" text="查询"/>
                                                </a:toolBar>
                                            </a:grid>
                                        </a:box>
                                    </a:tab>
                                    <a:tab prompt="抵押物列表" width="100">
                                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                                            <a:grid id="CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_layout_grid_id" bindtarget="CCR_UNIVERSAL_G_MORTGAGE_con_contract_mortgage_ds" marginheight="390" marginwidth="80" navbar="true">
                                                <a:columns>
                                                    <a:column name="mortgage_name" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押物名称" showtitle="true" width="120"/>
                                                    <a:column name="mortgage_speciality" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押物型号/面积" showtitle="true" width="120"/>
                                                    <a:column name="serial_number" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="机编号/车牌号/房产位置" showtitle="true" width="120"/>
                                                    <a:column name="engine_number" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="发动机号" showtitle="true" width="120"/>
                                                    <a:column name="vehicle_frame_no" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="车架号" showtitle="true" width="120"/>
                                                    <a:column name="mortgagor_name" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押人名称" showtitle="true" width="120"/>
                                                    <a:column name="mortgagor_class_n" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押人分类" width="120"/>
                                                    <a:column name="id_card_no" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押人证件号码" showtitle="true" width="120"/>
                                                    <a:column name="bill_of_lading" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="发票号" showtitle="true" width="120"/>
                                                    <a:column name="denomination_value" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="发票金额" renderer="CCR_UNIVERSAL_G_MORTGAGE_SEEDETAIL_COLUMN_LN" width="120"/>
                                                    <a:column name="value" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="现值" renderer="CCR_UNIVERSAL_G_MORTGAGE_SEEDETAIL_COLUMN_LN" width="120"/>
                                                    <a:column name="mortgage_type_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="担保方式" showtitle="true" width="120"/>
                                                    <a:column name="material" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="抵押物资料" showtitle="true" width="120"/>
                                                    <a:column name="ref_v01" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="是否抵押登记" width="120"/>
                                                    <a:column name="ref_n01" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="购买年限(年)" renderer="CCR_UNIVERSAL_G_MORTGAGE_SEEDETAIL_COLUMN_LN" width="120"/>
                                                    <a:column name="cancellation_flag" align="center" editorfunction="CCR_UNIVERSAL_G_MORTGAGE_SEE_DETAIL_EDITOR" prompt="是否注销" width="120"/>
                                                </a:columns>
                                                <a:editors>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_mortgage_name_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_mortgage_speciality_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_serial_number_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_engine_number_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_vehicle_frame_no_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_mortgagor_name_id"/>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_MORTGAGE_mortgagor_class_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_MORTGAGE_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_id_card_no_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_bill_of_lading_id"/>
                                                    <a:numberField id="CCR_UNIVERSAL_G_MORTGAGE_denomination_value_id" decimalprecision="-1"/>
                                                    <a:numberField id="CCR_UNIVERSAL_G_MORTGAGE_value_id" decimalprecision="-1"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_mortgage_type_n_id"/>
                                                    <a:textField id="CCR_UNIVERSAL_G_MORTGAGE_material_id"/>
                                                    <a:checkBox id="CCR_UNIVERSAL_G_MORTGAGE_ref_v01_id"/>
                                                    <a:numberField id="CCR_UNIVERSAL_G_MORTGAGE_ref_n01_id" decimalprecision="-1"/>
                                                    <a:checkBox id="CCR_UNIVERSAL_G_MORTGAGE_cancellation_flag_id"/>
                                                </a:editors>
                                                <a:toolBar>
                                                    <span/>
                                                    <a:button text="新增" type="add"/>
                                                    <a:button text="删除" type="delete"/>
                                                    <a:button text="移除" type="clear"/>
                                                    <a:button click="CCR_UNIVERSAL_G_MORTGAGE_GRID_QUERY" icon="${/request/@context_path}/images/search.png" text="查询"/>
                                                </a:toolBar>
                                            </a:grid>
                                        </a:box>
                                    </a:tab>
                                    <a:tab prompt="回购担保" width="100">
                                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                                            <a:grid id="CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_layout_grid_id" bindtarget="CCR_UNIVERSAL_G_REPURCHASE_con_contract_bp_ds" marginheight="390" marginwidth="80" navbar="true">
                                                <a:columns>
                                                    <a:column name="bp_id_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR" prompt="回购方" width="120"/>
                                                    <a:column name="repurchase_flag" align="LEFT" editorfunction="CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR" prompt="是否回购" width="120"/>
                                                    <a:column name="repurchase_type_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR" prompt="回购方式" width="120"/>
                                                    <a:column name="repurchase_price_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR" prompt="回购价款确定方式" width="120"/>
                                                    <a:column name="repurchase_des" align="LEFT" editorfunction="CCR_UNIVERSAL_G_REPURCHASE_SEE_DETAIL_EDITOR" prompt="备注" showtitle="true" width="379"/>
                                                </a:columns>
                                                <a:editors>
                                                    <a:lov id="CCR_UNIVERSAL_G_REPURCHASE_bp_id_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                        </a:events>
                                                    </a:lov>
                                                    <a:checkBox id="CCR_UNIVERSAL_G_REPURCHASE_repurchase_flag_id"/>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_REPURCHASE_repurchase_type_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                    <a:comboBox id="CCR_UNIVERSAL_G_REPURCHASE_repurchase_price_id">
                                                        <a:events>
                                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_REPURCHASE_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                                        </a:events>
                                                    </a:comboBox>
                                                    <a:textField id="CCR_UNIVERSAL_G_REPURCHASE_repurchase_des_id"/>
                                                </a:editors>
                                            </a:grid>
                                        </a:box>
                                    </a:tab>
                                    <a:tab prompt="银行账户" width="100">
                                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                                            <a:hBox/>
                                            <a:form marginwidth="80" wrapperadjust="false">
                                                <div style="width:1112px">
                                                    <a:box column="4" labelseparator=" " labelwidth="120" row="1" width="1112">
                                                        <a:lov name="direct_debit_bank_id_n" id="CCR_UNIVERSAL_G_BANK_CON_CONTRACT_DIRECT_DEBIT_BANK_ID" bindtarget="CCR_UNIVERSAL_G_BANK_con_contract_ds" colspan="1" prompt="自动扣款银行" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="120">
                                                            <a:events>
                                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_BANK_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                                            </a:events>
                                                        </a:lov>
                                                        <a:textField name="dd_bank_account_name" id="CCR_UNIVERSAL_G_BANK_CON_CONTRACT_DD_BANK_ACCOUNT_NAME" bindtarget="CCR_UNIVERSAL_G_BANK_con_contract_ds" colspan="1" prompt="自动扣款账户名" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="300"/>
                                                        <a:textField name="dd_bank_account_num" id="CCR_UNIVERSAL_G_BANK_CON_CONTRACT_DD_BANK_ACCOUNT_NUM" bindtarget="CCR_UNIVERSAL_G_BANK_con_contract_ds" colspan="1" prompt="自动扣款账号" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="300"/>
                                                        <div style="margin-top:3px;margin-bottom:3px" width="120"/>
                                                    </a:box>
                                                </div>
                                            </a:form>
                                        </a:box>
                                    </a:tab>
                                </a:tabs>
                            </a:tabPanel>
                        </a:box>
                    </a:tab>
                    <a:tab prompt="融资信息" width="100">
                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                            <a:form marginwidth="80" wrapperadjust="false">
                                <div style="width:1112px">
                                    <a:box column="4" labelseparator=" " labelwidth="120" row="14" width="1112">
                                        <a:numberField name="lease_item_amount" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_ITEM_AMOUNT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="租赁物总价款" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="int_rate" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_INT_RATE" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="8" prompt="租赁利率" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:comboBox name="annual_pay_times_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_ANNUAL_PAY_TIMES" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="支付频率" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="down_payment" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_DOWN_PAYMENT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="首期租金" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="total_rental" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_TOTAL_RENTAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="租金总额" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="lease_times" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_TIMES" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="0" prompt="还款期数" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="down_payment_ratio" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_DOWN_PAYMENT_RATIO" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="首期租金比例" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="net_total_rental" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_NET_TOTAL_RENTAL" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="税后租金" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:comboBox name="currency_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_CURRENCY" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="币种" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="finance_amount" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_FINANCE_AMOUNT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="租赁融资额" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="total_interest" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_TOTAL_INTEREST" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="含税租息收入" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="price_list_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_PRICE_LIST_N" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="价目表" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="deposit" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_DEPOSIT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="保证金金额" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="net_total_interest" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_NET_TOTAL_INTEREST" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="租息收入" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:comboBox name="billing_method_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_BILLING_METHOD" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="开票方式" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                            </a:events>
                                        </a:comboBox>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="deposit_ratio" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_DEPOSIT_RATIO" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="4" prompt="保证金比例" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="contract_amount" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_CONTRACT_AMOUNT" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="合同总额" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="penalty_rate" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_PENALTY_RATE" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="8" prompt="迟延履行金率" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:lov name="deposit_deduction_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_DEPOSIT_DEDUCTION" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="保证金抵扣方式" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <a:percentField name="irr" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_IRR" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="8" prompt="实际IRR" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="grace_period" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_GRACE_PERIOD" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="0" prompt="逾期宽限天数" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="residual_ratio" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_RESIDUAL_RATIO" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="4" prompt="期末留购价比例" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="npv_using_cof" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_NPV_USING_COF" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="NPV" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:lov name="early_termination_profile_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_EARLY_TERMINATION_PROFILE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="提前结清规则" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="residual_value" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_RESIDUAL_VALUE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="期末留购价" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:datePicker name="inception_of_lease" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_INCEPTION_OF_LEASE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="租赁开始日" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="lease_charge" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_CHARGE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="手续费" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:datePicker name="lease_end_date" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_END_DATE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="租赁到期日" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="lease_charge_ratio" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_CHARGE_RATIO" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="4" prompt="手续费比例" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="lease_term" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_TERM" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="租赁期限(年)" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="lease_mgt_fee" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_MGT_FEE" allowdecimals="TRUE" allowformat="TRUE" allowpad="TRUE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="2" prompt="管理费" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:percentField name="lease_mgt_fee_ratio" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_MGT_FEE_RATIO" allowdecimals="TRUE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" decimalprecision="4" prompt="管理费比例" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:lov name="lease_mgt_fee_rule_n" id="CCR_UNIVERSAL_F_FINANCE_CON_CONTRACT_LEASE_MGT_FEE_RULE" bindtarget="CCR_UNIVERSAL_F_FINANCE_con_contract_ds" colspan="1" prompt="管理费收取方式" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150">
                                            <a:events>
                                                <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_F_FINANCE_ON_FORM_OBJECT_FOCUS&apos;]"/>
                                                <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                            </a:events>
                                        </a:lov>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                    </a:box>
                                </div>
                            </a:form>
                        </a:box>
                    </a:tab>
                    <a:tab prompt="现金流" width="100">
                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                            <a:grid id="CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_layout_grid_id" bindtarget="CCR_UNIVERSAL_G_CASHFLOW_con_contract_cashflow_ds" marginheight="50" marginwidth="60" navbar="true">
                                <a:columns>
                                    <a:column name="cf_direction_pic" align="CENTER" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" lock="true" prompt="收/付" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_LN_PICTURE" showtitle="false" width="50"/>
                                    <a:column name="cf_status_n" align="CENTER" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="状态" showtitle="true" width="50"/>
                                    <a:column name="times" align="CENTER" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="期数" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="50"/>
                                    <a:column name="cf_item_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="现金流项目" showtitle="true" width="100"/>
                                    <a:column name="due_date" align="LEFT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="到期日" renderer="Leaf.formatDate" width="80"/>
                                    <a:column name="due_amount" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="应收(付)金额" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="100"/>
                                    <a:column name="principal" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="应收本金" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="100"/>
                                    <a:column name="interest" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="应收利息" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="80"/>
                                    <a:column name="last_received_date" align="LEFT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="最后收款日" renderer="Leaf.formatDate" width="80"/>
                                    <a:column name="received_amount" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="已收(付)金额" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="100"/>
                                    <a:column name="received_interest" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="已收利息" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="100"/>
                                    <a:column name="received_principal" align="RIGHT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="已收本金" renderer="CCR_UNIVERSAL_G_CASHFLOW_SEEDETAIL_COLUMN_LN" width="80"/>
                                    <a:column name="billing_status_n" align="LEFT" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="开票状态" showtitle="true" width="70"/>
                                    <a:column name="generated_source_n" align="CENTER" editorfunction="CCR_UNIVERSAL_G_CASHFLOW_SEE_DETAIL_EDITOR" prompt="现金流来源" width="80"/>
                                </a:columns>
                                <a:editors>
                                    <a:picture id="CCR_UNIVERSAL_G_CASHFLOW_cf_direction_pic_id"/>
                                    <a:textField id="CCR_UNIVERSAL_G_CASHFLOW_cf_status_n_id"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_times_id" decimalprecision="-1"/>
                                    <a:textField id="CCR_UNIVERSAL_G_CASHFLOW_cf_item_n_id"/>
                                    <a:datePicker id="CCR_UNIVERSAL_G_CASHFLOW_due_date_id"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_due_amount_id" decimalprecision="-1"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_principal_id" decimalprecision="-1"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_interest_id" decimalprecision="-1"/>
                                    <a:datePicker id="CCR_UNIVERSAL_G_CASHFLOW_last_received_date_id"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_received_amount_id" decimalprecision="-1"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_received_interest_id" decimalprecision="-1"/>
                                    <a:numberField id="CCR_UNIVERSAL_G_CASHFLOW_received_principal_id" decimalprecision="-1"/>
                                    <a:textField id="CCR_UNIVERSAL_G_CASHFLOW_billing_status_n_id"/>
                                    <a:lov id="CCR_UNIVERSAL_G_CASHFLOW_generated_source_id">
                                        <a:events>
                                            <a:event name="focus" handler="window[&apos;CCR_UNIVERSAL_G_CASHFLOW_ON_GRID_OBJECT_FOCUS&apos;]"/>
                                            <a:event name="beforecommit" handler="ON_COMMON_OBJECT_BEFORECOMMIT"/>
                                        </a:events>
                                    </a:lov>
                                </a:editors>
                                <a:toolBar>
                                    <span/>
                                    <a:button text="移除" type="clear"/>
                                    <a:button click="CCR_UNIVERSAL_G_CASHFLOW_GRID_QUERY" icon="${/request/@context_path}/images/search.png" text="查询"/>
                                </a:toolBar>
                            </a:grid>
                        </a:box>
                    </a:tab>
                    <a:tab prompt="合同状态" width="100">
                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                            <a:form marginwidth="100" title="合同状态" wrapperadjust="false">
                                <div style="width:1112px">
                                    <a:box column="4" labelseparator=" " labelwidth="120" row="5" width="1112">
                                        <a:textField name="contract_status_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_CONTRACT_STATUS_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="合同状态" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="version_display" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_VERSION_DISPLAY" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="合同版本" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:datePicker name="version_date" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_VERSION_DATE" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="版本日期" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="version_reason" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_VERSION_REASON" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="版本原因" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="print_status_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_PRINT_STATUS_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="打印状态" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:datePicker name="first_print_date" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_FIRST_PRINT_DATE" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="打印日期" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="first_print_by_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_FIRST_PRINT_BY_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="打印者" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="print_times" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_PRINT_TIMES" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" decimalprecision="2" prompt="打印次数" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="file_status_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_FILE_STATUS_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="归档状态" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="file_user_id_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_FILE_USER_ID_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="归档人" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:datePicker name="file_complete_date" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_FILE_COMPLETE_DATE" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="文件归档日期" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:textField name="overdue_status_n" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_OVERDUE_STATUS_N" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" prompt="逾期状态" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <a:numberField name="overdue_max_days" id="CCR_UNIVERSAL_F_STATUS_CON_CONTRACT_STATUS_OVERDUE_MAX_DAYS" allowdecimals="FALSE" allowformat="FALSE" allowpad="FALSE" bindtarget="CCR_UNIVERSAL_F_STATUS_con_contract_status_ds" colspan="1" decimalprecision="2" prompt="逾期天数" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                        <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                    </a:box>
                                </div>
                            </a:form>
                        </a:box>
                    </a:tab>
                    <a:tab prompt="变更原因及说明" width="100">
                        <a:box style="width:%98;padding:8px 0px 0px 8px">
                            <a:form column="4" labelseparator=" " labelwidth="120" row="5" wrapperadjust="false">
                                <a:textField name="simulation_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_SIMULATION_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="试算标志" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <div style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="contract_cancel_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_CONTRACT_CANCEL_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="合同撤销" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="bank_acc_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_BANK_ACC_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="银行卡号变更" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="cashflow_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_CASHFLOW_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="租金计划变更" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="reschedule_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_RESCHEDULE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="支付日调整" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="lease_item_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_LEASE_ITEM_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="租赁物变更" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="guarantor_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_GUARANTOR_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="担保人变更" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="tenant_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_TENANT_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="合同转让" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="et_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_ET_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="提前结清" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textField name="mortgage_change_flag_n" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_MORTGAGE_CHANGE_FLAG_N" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="1" prompt="抵质押物变更" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="150"/>
                                <a:textArea name="description" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_DESCRIPTION" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="4" height="100" prompt="变更说明" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="1150"/>
                                <a:textArea name="ref_v01" id="CCR_UNIVERSAL_F_DESCRIPTION_CON_CONTRACT_CHANGE_REQ_REF_V01" bindtarget="CCR_UNIVERSAL_F_DESCRIPTION_con_contract_change_req_ds" colspan="4" height="100" prompt="资产推荐理由" rowspan="1" style="margin-top:3px;margin-bottom:3px" width="1150"/>
                            </a:form>
                        </a:box>
                    </a:tab>
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
</a:screen>
