<?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>
