prj_risk_review.lview 7.79 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: 6590 Richen.Xu 
    $Date: 2015-5-11 下午3:16:14  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="prj.PRJ501N.get_project_report_save_path" rootPath="project_report_save_path"/>
    </a:init-procedure>
    <a:view package="leaf.ui.std" template="default">
        <a:link id="bgfl_prj_risk_review_report_link_id" url="${/request/@context_path}/modules/prj/PRJ501N/bgfl_project_risk_review.lview"/>
        <script type="text/javascript"><![CDATA[
            function prj501N_risk_review_back() {
                $('prj_risk_review_window').close();
            }
            
            function prj501N_risk_review_submit() {
                $('project_risk_review_ds').getAt(0).set('project_id', '${/parameter/@project_id}');
                $('project_risk_review_ds').submit();
            }
            
            function prj501N_risk_review_print() {
            

                var file_name = '租赁项目风险审查报告.doc';
                var description = '租赁项目风险审查报告';
                var templt_name = 'bgfl_risk_review_report.xml';
                var file_path = $('project_report_ds').getAt(0).get('save_path');
                var url = $('bgfl_prj_risk_review_report_link_id').getUrl() + '?templt_name=' + templt_name + '&project_id=' + '${/parameter/@project_id}';
                var form = document.createElement("form");
                form.target = "word_export_window";
                form.method = "post";
                form.action = url;
                var iframe = Ext.get('word_export_window') || new Ext.Template('<iframe id ="word_export_window" name="word_export_window" style="position:absolute;left:-10000px;top:-10000px;width:1px;height:1px;display:none"></iframe>').insertFirst(document.body, {}, true);
                document.body.appendChild(form);
                form.submit();
                Ext.fly(form).remove();
            
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="project_report_ds">
                <a:datas dataSource="/model/project_report_save_path"/>
            </a:dataSet>
            <a:dataSet id="project_info_ds" autoQuery="true" model="prj.PRJ501N.prj_wfl_info_for_risk_review" queryUrl="${/request/@context_path}/autocrud/prj.PRJ501N.prj_wfl_info_for_risk_review/query?project_id=${/parameter/@project_id}"/>
            <a:dataSet id="project_risk_review_ds" autoQuery="true" model="prj.PRJ501N.prj_risk_review" queryUrl="${/request/@context_path}/autocrud/prj.PRJ501N.prj_risk_review/query?project_id=${/parameter/@project_id}"/>
        </a:dataSets>
        <a:screenBody>
            <a:hBox>
                <a:button click="prj501N_risk_review_back" text="返回"/>
                <a:button click="prj501N_risk_review_submit" text="保存"/>
                <a:button click="prj501N_risk_review_print" text="打印"/>
            </a:hBox>
            <hr/>
            <a:fieldSet column="2" labelWidth="100" padding="5" title="一、项目概要" width="800">
                <a:textField name="bp_name" bindTarget="project_info_ds" colspan="2" prompt="承租人" readOnly="true" width="600"/>
                <a:textField name="lease_form_n" bindTarget="project_info_ds" prompt="承租模式" readOnly="true" width="200"/>
                <a:textField name="user_name" bindTarget="project_info_ds" prompt="调查人员" readOnly="true" width="200"/>
                <a:textField name="finance_amount" bindTarget="project_info_ds" prompt="租赁本金" readOnly="true" width="200"/>
                <a:textField name="lease_term" bindTarget="project_info_ds" prompt="租赁期限" readOnly="true" width="200"/>
                <a:textField name="deposit_ratio" bindTarget="project_info_ds" prompt="保证金比例" readOnly="true" width="200"/>
                <a:textField name="deposit" bindTarget="project_info_ds" prompt="保证金利率" readOnly="true" width="200"/>
                <a:textField name="int_rate" bindTarget="project_info_ds" prompt="年租息率" readOnly="true" width="200"/>
                <a:textField name="annual_pay_times" bindTarget="project_info_ds" prompt="还款周期" readOnly="true" width="200"/>
                <a:textField name="lease_charge_ratio" bindTarget="project_info_ds" prompt="手续费比例" readOnly="true" width="200"/>
                <a:textField name="lease_charge_type" bindTarget="project_info_ds" prompt="手续费收取方式" readOnly="true" width="200"/>
                <a:textField name="machinery_amount" bindTarget="project_info_ds" prompt="咨询服务费比例" readOnly="true" width="200"/>
                <a:textField name="other_fee2_type" bindTarget="project_info_ds" prompt="咨询服务费收取方式" readOnly="true" width="200"/>
                <a:textField name="down_payment" bindTarget="project_info_ds" prompt="首次租金" readOnly="true" width="200"/>
                <a:textField name="interim_rental" bindTarget="project_info_ds" prompt="租前息" readOnly="true" width="200"/>
                <a:textField name="hd_user_col_n03" bindTarget="project_info_ds" prompt="留购价款" readOnly="true" width="200"/>
                <a:textField name="residual_value" bindTarget="project_info_ds" prompt="留购价款优惠措施" readOnly="true" width="200"/>
                <a:textField name="full_name" bindTarget="project_info_ds" prompt="租赁物名称种类、型号" readOnly="true" width="200"/>
                <a:textField name="vender_name" bindTarget="project_info_ds" prompt="生产厂商" readOnly="true" width="200"/>
                <a:textField name="original_asset_value" bindTarget="project_info_ds" prompt="租赁物原值(含税/不含税)" readOnly="true" width="200"/>
                <a:textField name="used_time" bindTarget="project_info_ds" prompt="已使用年限" readOnly="true" width="200"/>
                <a:textField name="net_asset_value" bindTarget="project_info_ds" prompt="租赁物净值/评估值(含税/不含税)" readOnly="true" width="200"/>
                <a:textField name="irr" bindTarget="project_info_ds" prompt="内涵收益率" readOnly="true" width="200"/>
                <a:textField name="trust_way" bindTarget="project_info_ds" colspan="2" prompt="增信方式" readOnly="true" width="600"/>
            </a:fieldSet>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[二、承租人基本情况分析]]></font>
            </label>
            <a:textArea name="applicant_basic_info" bindTarget="project_risk_review_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[三、租赁项目要素分析]]></font>
            </label>
            <a:textArea name="project_info" bindTarget="project_risk_review_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[四、主要问题及风险]]></font>
            </label>
            <a:textArea name="enterprise_financial" bindTarget="project_risk_review_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[五、租赁项目风险防范措施分析]]></font>
            </label>
            <a:textArea name="strength_weakness" bindTarget="project_risk_review_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[六、项目综合意见]]></font>
            </label>
            <a:textArea name="conclusion" bindTarget="project_risk_review_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
        </a:screenBody>
    </a:view>
</a:screen>