prj_project_approver_comments.lview 5.97 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: ZLF  
    $Date: 2014-12-24 上午10:36:14  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query defaultWhereClause="t1.approver_user_id = ${/parameter/@user_id}" model="wfl_screen.PRJ_PROJECT.prj_project_approver_comment" rootPath="prj_approver_record"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
        ]]></script>
        <a:dataSets>
            <a:dataSet id="yesNo${/parameter/@user_id}_Ds" lookupCode="YES_NO"/>
            <a:dataSet id="prjApproverComment${/parameter/@user_id}_Ds" model="wfl_screen.PRJ_PROJECT.prj_project_approver">
                <a:datas dataSource="/model/prj_approver_record"/>
                <a:fields>
                    <a:field name="approve_status_desc" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="approval_id" defaultValue="${/parameter/@approval_id}"/>
                    <a:field name="approver_user_id" defaultValue="${/session/@user_id}"/>
                    <a:field name="comment_quotation" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_tenant_basic" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_fin_info_tenant" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_management_tenant" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_guarantor_basic" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_lease_item_info" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_fesibility_info" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="comment_others_info" readOnly="${/parameter/@readOnly}"/>
                    <a:field name="approve_comment" readOnly="${/parameter/@readOnly}"/>
                    <!-- <a:field name="exists_comment_flag_desc" displayField="code_value_name" options="yesNo${/parameter/@user_id}_Ds" readOnly="${/parameter/@readOnly}" required="${/parameter/@required}" returnField="exists_comment_flag" valueField="code_value"/> -->
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:switch test="/parameter/@show_approve_result">
                <a:case value="Y">
                    <a:form title="评审结果">
                        <a:textField name="approve_status_desc" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" prompt="审批结论"/>
                        <a:textArea name="approve_comment" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="50" prompt="意见" width="500"/>
                    </a:form>
                </a:case>
            </a:switch>
            <a:switch test="/parameter/@show_approve_comments">
                <a:case value="Y">
                    <a:form column="2" labelSeparator="" labelWidth="0" title="历史审批意见" width="1200">
                        <div><![CDATA[资料完备性]]></div>
                        <div><![CDATA[租赁方案]]></div>
                        <a:textArea name="comment_management_tenant" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <a:textArea name="comment_quotation" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <div><![CDATA[承租人基本信息]]></div>
                        <div><![CDATA[承租人财务信息]]></div>
                        <a:textArea name="comment_tenant_basic" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <a:textArea name="comment_fin_info_tenant" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <div><![CDATA[担保信息]]></div>
                        <div><![CDATA[租赁物信息]]></div>
                        <a:textArea name="comment_guarantor_basic" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <a:textArea name="comment_lease_item_info" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <div><![CDATA[项目可行性]]></div>
                        <div><![CDATA[其他]]></div>
                        <a:textArea name="comment_fesibility_info" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                        <a:textArea name="comment_others_info" autoSelect="false" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" height="80" prompt="" width="580"/>
                    </a:form>
                </a:case>
            </a:switch>
            <!-- <a:form column="4" labelWidth="100" title="是否需要项目经理答复" width="1200">
                <a:comboBox name="exists_comment_flag_desc" bindTarget="prjApproverComment${/parameter/@user_id}_Ds" prompt="需要答复"/>
            </a:form> -->
            <a:switch test="/parameter/@show_save">
                <a:case value="Y">
                    <script type="text/javascript"><![CDATA[
                    	window['prjApproverComment${/parameter/@user_id}_save'] = function (){
                    	    var ds = $('prjApproverComment${/parameter/@user_id}_Ds');
			        	    if(ds.validate())
			        	    {
			        	        ds.submit();
			        	    }
                    	};
			        ]]></script>
                    <a:hBox>
                        <a:gridButton click="prjApproverComment${/parameter/@user_id}_save" text="保存评审意见"/>
                    </a:hBox>
                </a:case>
            </a:switch>
        </a:screenBody>
    </a:view>
</a:screen>