<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: duzhihong  
    $Date: 2014-8-22 下午2:41:44  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:init-procedure>
        <a:model-query model="cont.CON509.con_contract_incept_date" rootPath="incept_date"/>
    </a:init-procedure>
    <a:view>
        <a:link id="con509_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
        <a:link id="con509_cdd_DownFile_id" url="${/request/@context_path}/downloadFile.lview"/>
        <a:link id="contract_update_pre_incept_date_link" model="cont.CON509.update_pre_incept_date" modelaction="batch_update"/>
        <a:link id="contract_incep_apply_wfl_start_link" model="cont.CON509.con_contract_info" modelaction="execute"/>
        <a:link id="con_contract_incept_apply_insert_link" model="cont.CON509.con_contract_incept_apply_insert" modelaction="insert"/>
        <a:link id="con_contract_balance_details_link" url="${/request/@context_path}/modules/csh/CSH501/con_contract_balance_details.lview"/>
        <!-- <a:link id="con_contract_inception_link" url="${/request/@context_path}/modules/cont/CON503/con_contract_inception.lview"/> -->
        <a:link id="con509_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="con509_con_contract_info_link" url="${/request/@context_path}/modules/prj/PRJ506/virtual_contract_query.lview"/>
        <script type="text/javascript"><![CDATA[
            function con_contract_query() {
                $('con_contract_result_ds').query();
                $('con_contract_approving_result_ds').query();
                $('con_contract_not_need_approve_result_ds').query();
                $('con_contract_inception_result_ds').query();
            }
            
            function con_contract_reset() {
                $('con_contract_query_ds').reset();
            }
            
            function contract_inception_submit() {
                contract_inception_apply();
            }
            
            function contract_inception_apply() {
                var records = $('con_contract_result_ds').getSelected();
                if (!$('con_contract_result_ds').validate(true)) {
                    return;
                } else if ($('con_contract_result_ds').isModified()) {
                    Leaf.showErrorMessage('错误', '页面有未保存数据，请先保存后再提交申请！');
                    return;
                } else if (records.length < 1) {
                    Leaf.showErrorMessage('错误', '请至少选择一条数据进行操作！');
                    return;
                }
                for (var i = 0;i < records.length;i++) {
                    if (records[i].get('incept_status') == 'APPROVED' || records[i].get('incept_status') == 'APPROVING') {
                        Leaf.showMessage('提示', '合同编号：' + records[i].get('contract_number') + '不能重复提交申请！');
                        return;
                    }
                    /* else if (records[i].get('inception_need_submit_flag') !== 'Y') {
                     Leaf.showMessage('提示', '合同编号：'+records[i].get('contract_number') + '起租方式为放款自动起租，无需提交起租申请！');
                     return;
                     } */
                    else if (Ext.isEmpty(records[i].get('pre_incept_date')) || typeof(records[i].get('pre_incept_date')) == 'undefined') {
                        Leaf.showMessage('提示', '合同编号：' + records[i].get('contract_number') + '申请起租日为不能为空！');
                        return;
                    }
                }
                Leaf.showConfirm('${HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function() {
                    for (var j = 0;j < records.length;j++) {
                        Leaf.request({
                            url: $('contract_incep_apply_wfl_start_link').getUrl(),
                            para: {
                                contract_id: records[j].get('contract_id')
                            },
                            success: function(res) {
                                requery_contract();
                            },
                            scope: this
                        });
                    }
                }, null);
            }
            
            function requery_contract() {
                $('con_contract_query_ds').reset();
                $('con_contract_result_ds').query();
            }
            
            function renderDate(value, record, name) {
                // var tag = record.get('tag');
                // if (tag == '-1') {
                // return '<font color="red">' + Leaf.formatDate(value) + '</font>';
                // }
                return Leaf.formatDate(value);
            }
            
            function con_contract_save() {
                $('con_contract_result_ds').submit($('contract_update_pre_incept_date_link').getUrl());
            }
            
            // function con_contract_incept() {
            // var records = $('con_contract_result_ds').getSelected();
            // if(records.length == 0) {
            // Leaf.showMessage('提示', '请勾选合同！');
            // return;
            // }else if (records.length > 1) {
            // Leaf.showMessage('提示', '不能同时起租多个合同！');
            // return;
            // }
            // var incept_status = records[0].get('incept_status');
            // var contract_id = records[0].get('contract_id');
            // var contract_number = records[0].get('contract_number');
            // if(incept_status == 'APPROVED') {
            // new Leaf.Window({
            // id: 'con_contract_inception_window',
            // url: $('con_contract_inception_link').getUrl() + '?contract_id=' + contract_id,
            // title: '合同起租',
            // height: "350",
            // width: "1100"
            // }).on('close', $('con_contract_result_ds').query());
            // }else {
            // Leaf.showMessage('提示', '审批通过的合同才能起租！');
            // return;
            // }
            // }
            
            function contract_inception_apply_render_func(value, record, name) {
                if (name === 'inception_need_submit_flag') {
                    if (value === 'Y') {
                        return '流程起租';
                    } else {
                        return '放款起租';
                    }
                }
                return value;
            }
            
            function contract_inception_apply_edit_func(record, name) {
                if (name === 'pre_incept_date' && (record.get('incept_status') === 'NEW' || record.get('incept_status') === 'REJECT') && record.get('contract_status') === 'SIGN') {
                    return 'dp_edit_id';
                }
                return '';
            }
            
            function beforeselect_func(tabPanel, index, tab) {
                if (index === 0) {
                    $('contract_inception_submit_btn_id').enable();
                    $('con_contract_save_btn_id').enable();
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_f').setReadOnly(false);
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_t').setReadOnly(false);
                    $('con_contract_query_ds').getAt(0).set('incept_date_f', '');
                    $('con_contract_query_ds').getAt(0).set('incept_date_t', '');
                    $('con_contract_query_ds').getAt(0).getField('incept_date_f').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('incept_date_t').setReadOnly(true);
                } else if (index === 1) {
                    $('contract_inception_submit_btn_id').disable();
                    $('con_contract_save_btn_id').disable();
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_f').setReadOnly(false);
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_t').setReadOnly(false);
                    $('con_contract_query_ds').getAt(0).set('incept_date_f', '');
                    $('con_contract_query_ds').getAt(0).set('incept_date_t', '');
                    $('con_contract_query_ds').getAt(0).getField('incept_date_f').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('incept_date_t').setReadOnly(true);
                } else if (index === 2) {
                    $('contract_inception_submit_btn_id').disable();
                    $('con_contract_save_btn_id').disable();
                    $('con_contract_query_ds').getAt(0).set('pre_incept_date_f', '');
                    $('con_contract_query_ds').getAt(0).set('pre_incept_date_t', '');
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_f').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_t').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).set('incept_date_f', '');
                    $('con_contract_query_ds').getAt(0).set('incept_date_t', '');
                    $('con_contract_query_ds').getAt(0).getField('incept_date_f').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('incept_date_t').setReadOnly(true);
                } else {
                    $('contract_inception_submit_btn_id').disable();
                    $('con_contract_save_btn_id').disable();
                    $('con_contract_query_ds').getAt(0).set('pre_incept_date_f', '');
                    $('con_contract_query_ds').getAt(0).set('pre_incept_date_t', '');
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_f').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('pre_incept_date_t').setReadOnly(true);
                    $('con_contract_query_ds').getAt(0).getField('incept_date_f').setReadOnly(false);
                    $('con_contract_query_ds').getAt(0).getField('incept_date_t').setReadOnly(false);
                }
            }
            
            function winOpen_upload(id) {
                  var record = $('con_contract_result_ds').findById(id);
                if (record.get('contract_id')) {
                    var url;
                       //设置虚拟表名CON_CONTRACT_CON509
                        url = $('con509_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT_CON509&header_id=' + record.get('contract_id');
                    var win = new Leaf.Window({
                        url: url,
                        title: '${l:HLS.SUPPORTING_DOCUMENT}',
                        id: 'tre610_cdd_uploadFile_screen_id',
                        width: 850,
                        height: 400
                    });
            
                    win.on('close', function() {
                        record.ds.query();
                    });
                }
            }
            
             function winOpen_upload1(id) {
                  var record = $('con_contract_approving_result_ds').findById(id);
                if (record.get('contract_id')) {
                    var url;
                       //设置虚拟表名CON_CONTRACT_CON509
                        url = $('con509_cdd_DownFile_id').getUrl() + '?table_name=CON_CONTRACT_CON509&header_id=' + record.get('contract_id');
                    var win = new Leaf.Window({
                        url: url,
                        title: '${l:HLS.SUPPORTING_DOCUMENT}',
                        id: 'tre610_cdd_uploadFile_screen_id',
                        width: 850,
                        height: 400
                    });
            
                    win.on('close', function() {
                        record.ds.query();
                    });
                }
            }
            
             function winOpen_upload2(id) {
                  var record = $('con_contract_inception_result_ds').findById(id);
                if (record.get('contract_id')) {
                    var url;
                       //设置虚拟表名CON_CONTRACT_CON509
                        url = $('con509_cdd_DownFile_id').getUrl() + '?table_name=CON_CONTRACT_CON509&header_id=' + record.get('contract_id');
                    var win = new Leaf.Window({
                        url: url,
                        title: '${l:HLS.SUPPORTING_DOCUMENT}',
                        id: 'tre610_cdd_uploadFile_screen_id',
                        width: 850,
                        height: 400
                    });
            
                    win.on('close', function() {
                        record.ds.query();
                    });
                }
            }
            
             function render_objectDs_grid(value, record, name) {
                if (!record.isNew) {
                    return '<a href="javascript:winOpen_upload(\'' + record.id + '\')">' + '起租附件' + '</a>';
                }
             }
             
              function render_objectDs_grid1(value, record, name) {
                if (!record.isNew) {
                    return '<a href="javascript:winOpen_upload1(\'' + record.id + '\')">' + '起租附件' + '</a>';
                }
             }
              function render_objectDs_grid2(value, record, name) {
                if (!record.isNew) {
                    return '<a href="javascript:winOpen_upload2(\'' + record.id + '\')">' + '起租附件' + '</a>';
                }
             }
             
               function con_contract_cashflow_link(record_id) {
                var record=$('con_contract_result_ds').findById(record_id);
                var contract_id = record.get('contract_id');
                new Leaf.Window({
                    title: '合同余额明细信息',
                    id: 'con_contract_balance_details_win',
                    url: $('con_contract_balance_details_link').getUrl(),
                    params: {
                        'contract_id': contract_id
                    },
                    fullScreen: true
                });
            }
             
              function contract_number_link(value, record, name) {
                if (!record.isNew&&name=='contract_number') {
                    return '<a href="javascript:con_contract_cashflow_link(\'' + record.id + '\')">' + value + '</a>';
                }
             }
              function con_contract_cashflow_link1(record_id) {

                var record=$('con_contract_approving_result_ds').findById(record_id);
                var contract_id = record.get('contract_id');
                new Leaf.Window({
                    title: '合同余额明细信息',
                    id: 'con_contract_balance_details_win',
                    url: $('con_contract_balance_details_link').getUrl(),
                    params: {
                        'contract_id': contract_id
                    },
                    fullScreen: true
                });
            }
             
              function contract_number_link1(value, record, name) {
                if (!record.isNew&&name=='contract_number') {
                    return '<a href="javascript:con_contract_cashflow_link1(\'' + record.id + '\')">' + value + '</a>';
                }
             }
             
               function con_contract_cashflow_link2(record_id) {
                var record=$('con_contract_inception_result_ds').findById(record_id);
                var contract_id = record.get('contract_id');
                new Leaf.Window({
                    title: '合同余额明细信息',
                    id: 'con_contract_balance_details_win',
                    url: $('con_contract_balance_details_link').getUrl(),
                    params: {
                        'contract_id': contract_id
                    },
                    fullScreen: true
                });
            }
             
              function contract_number_link2(value, record, name) {
                if (!record.isNew&&name=='contract_number') {
                    return '<a href="javascript:con_contract_cashflow_link2(\'' + record.id + '\')">' + value + '</a>';
                }
             }
                //合同明细
                function virtual_con_number(record_id){
                var record =$('con_contract_result_ds').findById(record_id);
                var param = record.data;

                param['function_code'] = 'CON301';
                //param['project_id'] = record.get('project_id');
                //param['document_id'] = record.get('project_id');
                param['function_usage'] = 'QUERY';
                param['maintain_type'] = 'READONLY';
                param['cond_para2'] = record.get('hn_industry_classification');
                param['url_title'] = '合同明细';
                param['winid']='con509_virtual_contract_query_detail_link_id_pre';
                hls_doc_get_layout_code('con509_get_layout_code_link_id', param, 'con509_con_contract_info_link');
                }
                
             
               function virtual_con_number_link(value, record, name) {
                if (!record.isNew&&name=='virtual_con_number') {
                    return '<a href="javascript:virtual_con_number(\'' + record.id + '\')">' + value + '</a>';
                }
             }
             
              //合同明细
                function virtual_con_number1(record_id){
                var record =$('con_contract_approving_result_ds').findById(record_id);
                var param = record.data;
                param['function_code'] = 'CON301';
                //param['document_id'] = record.get('project_id');
                param['function_usage'] = 'QUERY';
                param['maintain_type'] = 'READONLY';
                param['cond_para2'] = record.get('hn_industry_classification');
                param['url_title'] = '合同明细';
                param['winid']='con509_virtual_contract_query_detail_link_id_approving';
                hls_doc_get_layout_code('con509_get_layout_code_link_id', param, 'con509_con_contract_info_link');
                }
             
             function virtual_con_number_link1(value, record, name) {
                if (!record.isNew&&name=='virtual_con_number') {
                    return '<a href="javascript:virtual_con_number1(\'' + record.id + '\')">' + value + '</a>';
                }
             }
             
              //合同明细
                function virtual_con_number2(record_id){
                var record =$('con_contract_inception_result_ds').findById(record_id);
                var param = record.data;
                param['function_code'] = 'CON301';
                //param['document_id'] = record.get('project_id');
                param['function_usage'] = 'QUERY';
                param['maintain_type'] = 'READONLY';
                param['cond_para2'] = record.get('hn_industry_classification');
                param['url_title'] = '合同明细';
                param['winid']='con509_virtual_contract_query_detail_link_id_incept';
                hls_doc_get_layout_code('con509_get_layout_code_link_id', param, 'con509_con_contract_info_link');
                }
             
             function virtual_con_number_link2(value, record, name) {
                if (!record.isNew&&name=='virtual_con_number') {
                    return '<a href="javascript:virtual_con_number2(\'' + record.id + '\')">' + value + '</a>';
                }
             }
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON509"/>
        <a:dataSets>
            <a:dataSet id="con_contract_incept_type_ds">
                <a:datas>
                    <a:record name="放款即起租" incept_before_lend="Y"/>
                    <a:record name="放款待起租" incept_before_lend="N"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="lease_channel_ds" loadData="true" model="cont.CON509.con_contract_lease_channel_query"/>
            <a:dataSet id="contract_division_ds" loadData="true" model="cont.CON509.con_contract_division_query"/>
            <a:dataSet id="con_contract_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="contract_number" lovHeight="500" lovLabelWidth="100" lovService="cont.CON509.con_contract_query?company_id=${/session/@company_id}&amp;owner_user_id=${/session/@user_id}" lovWidth="500" title="合同编号">
                        <a:mapping>
                            <a:map from="contract_number" to="contract_number"/>
                            <a:map from="contract_name" to="contract_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="contract_name"/>
                    <a:field name="employee_name" lovHeight="500" lovLabelWidth="100" lovService="cont.CON509.exp_employee_query" lovWidth="500" title="客户经理">
                        <a:mapping>
                            <a:map from="name" to="employee_name"/>
                            <a:map from="employee_id" to="employee_id"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="employee_id"/>
                    <a:field name="unit_name" lovHeight="500" lovLabelWidth="100" lovService="cont.CON509.exp_org_unit_query?company_id=${/session/@company_id}" lovWidth="500" title="部门">
                        <a:mapping>
                            <a:map from="unit_name" to="unit_name"/>
                            <a:map from="unit_id" to="unit_id"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="unit_id"/>
                    <a:field name="loan_date_f"/>
                    <a:field name="loan_date_t"/>
                    <a:field name="incept_before_lend_des" displayField="name" options="con_contract_incept_type_ds" returnField="incept_before_lend" valueField="incept_before_lend"/>
                    <a:field name="lease_channel_desc" displayField="lease_channel_des" options="lease_channel_ds" returnField="lease_channel" valueField="lease_channel"/>
                    <a:field name="division_desc" displayField="division_des" options="contract_division_ds" returnField="division" valueField="division"/>
                    <a:field name="bp_name"/>
                    <a:field name="pre_incept_date_f"/>
                    <a:field name="pre_incept_date_t"/>
                    <a:field name="incept_date_f"/>
                    <a:field name="incept_date_t"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con_contract_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON509.con_contract_info" queryDataSet="con_contract_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON509.con_contract_info/query?contract_status=SIGN&amp;incept_status=(&apos;NEW&apos;,&apos;REJECT&apos;)&amp;check_flag=Y" selectable="true">
                <a:fields>
                    <!-- <a:field name="pre_incept_date" required="true"/> -->
                    <a:field name="pre_incept_date"/>
                </a:fields>
                <a:events>
                    <a:event name="submitsuccess" handler="requery_contract"/>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="con_contract_approving_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON509.con_contract_info" queryDataSet="con_contract_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON509.con_contract_info/query?contract_status=SIGN&amp;incept_status=(&apos;APPROVING&apos;)">
                <a:events>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
            <!--             <a:dataSet id="con_contract_not_need_approve_result_ds" autoPageSize="true" autoQuery="true" queryDataSet="con_contract_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON509.con_contract_info/query?contract_status=SIGN&amp;incept_status=(&apos;NEW&apos;)"/>
 -->
            <a:dataSet id="con_contract_inception_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON509.con_contract_info" queryDataSet="con_contract_query_ds" queryUrl="${/request/@context_path}/autocrud/cont.CON509.con_contract_info/query?contract_status=INCEPT">
                <a:events>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="con_contract_query" text="HLS.QUERY"/>
                <a:gridButton click="con_contract_reset" text="HLS.RESET"/>
                <a:gridButton id="con_contract_save_btn_id" click="con_contract_save" text="HLS.SAVE"/>
                <a:gridButton id="contract_inception_submit_btn_id" click="contract_inception_submit" text="起租申请"/>
            </a:screenTopToolbar>
            <a:form column="4" labelWidth="100" marginWidth="35" title="合同起租申请">
                <a:lov name="contract_number" bindTarget="con_contract_query_ds" prompt="HLS.CONTRACT_NUMBER"/>
                <a:textField name="contract_name" bindTarget="con_contract_query_ds" prompt="租赁合同名称"/>
                <a:textField name="bp_name" bindTarget="con_contract_query_ds" prompt="承租人名称"/>
                <a:comboBox name="division_desc" bindTarget="con_contract_query_ds" prompt="产品线"/>
                <a:datePicker name="pre_incept_date_f" bindTarget="con_contract_query_ds" prompt="款项支付日从"/>
                <a:datePicker name="pre_incept_date_t" bindTarget="con_contract_query_ds" prompt="款项支付日到"/>
                <a:datePicker name="incept_date_f" bindTarget="con_contract_query_ds" prompt="起租日期从"/>
                <a:datePicker name="incept_date_t" bindTarget="con_contract_query_ds" prompt="起租日期到"/>
            </a:form>
            <a:tabPanel marginWidth="35">
                <a:tabs>
                    <a:tab prompt="待提交" width="110">
                        <a:grid bindTarget="con_contract_result_ds" marginHeight="210" marginWidth="40" navBar="true">
                            <a:columns>
                                <a:column name="virtual_con_number" lock="true" prompt="合同号" renderer="virtual_con_number_link" width="100"/>
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER" renderer="contract_number_link" width="100"/>
                                <a:column name="contract_name" lock="true" prompt="租赁合同名称" showTitle="true" width="250"/>
                                <a:column name="finance_amount" align="right" prompt="实际融资金额" renderer="Leaf.formatMoney" width="120"/>
                                <a:column name="lease_aomunt_recevied_date" align="left" prompt="款项支付日" renderer="Leaf.formatDate" width="120"/>
                                <a:column name="pre_incept_date" align="center" editorFunction="contract_inception_apply_edit_func" prompt="起租日" renderer="renderDate" width="80"/>
                                <a:column name="employee_name" prompt="主办客户经理"/>
                                <a:column name="unit_name" align="center" prompt="业务部"/>
                                <a:column name="division_desc" align="center" prompt="产品线"/>
                                <a:column name="bp_name" prompt="承租人名称" showTitle="true" width="200"/>
                                <a:column name="upload_incept_att" align="center" prompt="附件上传" renderer="render_objectDs_grid" width="80"/>
                                <a:column name="contract_status_desc" align="center" prompt="合同状态" width="60"/>
                                <a:column name="incept_status_des" align="center" prompt="审批状态" width="80"/>
                            </a:columns>
                            <a:editors>
                                <a:datePicker id="dp_edit_id"/>
                            </a:editors>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="审批中" width="110">
                        <a:grid bindTarget="con_contract_approving_result_ds" marginHeight="210" marginWidth="40" navBar="true" showRowNumber="true">
                            <a:columns>
                                <a:column name="virtual_con_number" lock="true" prompt="合同号" renderer="virtual_con_number_link1" width="100"/>
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER" renderer="contract_number_link1" width="150"/>
                                <a:column name="contract_name" lock="true" prompt="租赁合同名称" showTitle="true" width="250"/>
                                <a:column name="finance_amount" align="right" prompt="实际融资金额" renderer="Leaf.formatMoney" width="120"/>
                                <a:column name="lease_aomunt_recevied_date" align="center" prompt="款项支付日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="pre_incept_date" align="center" prompt="起租日" renderer="renderDate" width="80"/>
                                <a:column name="employee_name" prompt="主办客户经理"/>
                                <a:column name="unit_name" align="center" prompt="业务部"/>
                                <a:column name="division_desc" align="center" prompt="产品线"/>
                                <a:column name="bp_name" prompt="承租人名称" showTitle="true" width="200"/>
                                <a:column name="upload_incept_att" align="center" prompt="附件上传" renderer="render_objectDs_grid1" width="80"/>
                                <a:column name="contract_status_desc" align="center" prompt="合同状态" width="60"/>
                                <a:column name="incept_status_des" align="center" prompt="审批状态" width="80"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <!--  <a:tab prompt="无需提交" width="110">
                        <a:grid bindTarget="con_contract_not_need_approve_result_ds" marginHeight="210" marginWidth="40" navBar="true" showRowNumber="true">
                            <a:columns>
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER" width="150"/>
                                <a:column name="contract_name" lock="true" prompt="租赁合同名称" showTitle="true" width="250"/>
                                <a:column name="finance_amount" align="right" prompt="实际融资金额" renderer="Leaf.formatMoney" width="120"/>
                                <a:column name="employee_name" prompt="主办客户经理"/>
                                <a:column name="unit_name" align="center" prompt="业务部"/>
                                <a:column name="division_desc" align="center" prompt="产品线"/>
                                <a:column name="bp_name" prompt="承租人名称" showTitle="true" width="200"/>
                                <a:column name="contract_status_desc" align="center" prompt="合同状态" width="60"/>
                                <a:column name="inception_need_submit_flag" align="center" prompt="起租方式" renderer="contract_inception_apply_render_func" width="80"/>
                            </a:columns>
                        </a:grid>
                    </a:tab> -->
                    <a:tab prompt="已起租" width="110">
                        <a:grid bindTarget="con_contract_inception_result_ds" marginHeight="210" marginWidth="40" navBar="true" showRowNumber="true">
                            <a:columns>
                                <a:column name="virtual_con_number" lock="true" prompt="合同号" renderer="virtual_con_number_link2" width="100"/>
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER" renderer="contract_number_link2" width="150"/>
                                <a:column name="contract_name" lock="true" prompt="租赁合同名称" showTitle="true" width="250"/>
                                <a:column name="finance_amount" align="right" prompt="实际融资金额" renderer="Leaf.formatMoney" width="120"/>
                                <a:column name="lease_aomunt_recevied_date" align="center" prompt="款项支付日" renderer="renderDate"/>
                                <a:column name="pre_incept_date" align="center" prompt="起租日" renderer="renderDate" width="80"/>
                                <a:column name="employee_name" prompt="主办客户经理"/>
                                <a:column name="unit_name" align="center" prompt="业务部"/>
                                <a:column name="division_desc" align="center" prompt="产品线"/>
                                <a:column name="bp_name" prompt="承租人名称" showTitle="true" width="200"/>
                                <a:column name="upload_incept_att" align="center" prompt="附件上传" renderer="render_objectDs_grid2" width="80"/>
                                <a:column name="contract_status_desc" align="center" prompt="合同状态" width="60"/>
                                <!--                                 <a:column name="inception_need_submit_flag" align="center" prompt="起租方式" renderer="contract_inception_apply_render_func" width="80"/>
 -->
                            </a:columns>
                        </a:grid>
                    </a:tab>
                </a:tabs>
                <a:events>
                    <a:event name="beforeselect" handler="beforeselect_func"/>
                </a:events>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
</a:screen>
