con_contract_reject_reason.lview 2.35 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: ZLF  
    $Date: 2015-1-9 下午02:11:03  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="con504_contract_maintain_flag_update_link" model="cont.CON504.con_contract_maintain_flag_update" modelaction="execute"/>
        <script type="text/javascript"><![CDATA[
            function window_close(){
            $('${/parameter/@winId}').close();
        }
            function returnok() {
                window_close();
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="reject_reason_ds" autoQuery="true" model="cont.CON504.con_contract_get_reject_reason" queryUrl="${/request/@context_path}/autocrud/cont.CON504.con_contract_get_reject_reason/query?contract_id=${/parameter/@contract_id}">
                <a:fields>
                    <a:field name="reject_reason" readOnly="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="1" style="margin-top:10px;margin-left:10px;">
                <a:textArea name="reject_reason" bindTarget="reject_reason_ds" height="320" width="500"/>
            </a:form>
            <a:hBox style="margin-left:10px;margin-bottom:20px;">
                <a:button click="returnok" text="PROMPT.RETURN"/>
            </a:hBox>
            <script type="text/javascript"><![CDATA[
                // Leaf.onReady(function() {
                    // var record = $('reject_reason_ds').getAt(0);
                    // var contract_reject_reason;
                    // if('${/parameter/@name}'== 'verify_sql') {
                    	 // clob_validation_sql = $('${/parameter/@ds_name}').findById(${/parameter/@record_id}).get('verify_sql');
                    // }else if('${/parameter/@name}'== 'approve_sql') {
                         // clob_validation_sql = $('${/parameter/@ds_name}').findById(${/parameter/@record_id}).get('approve_sql');
                    // }else {
                         // clob_validation_sql = $('${/parameter/@ds_name}').findById(${/parameter/@record_id}).get('${/parameter/@name}');
                    // }
                    // record.set('clob_validation_sql', clob_validation_sql);
                // });
            ]]></script>
        </a:screenBody>
    </a:view>
</a:screen>