efile_atm_sql_lov.lview 1.54 KB
Newer Older
18083's avatar
18083 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: luochenglong
    $Date: 2023-02-09  早上 10:03:31
    $Revision: 1.0
    $Purpose: 附件取值SQL
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <script type="text/javascript"><![CDATA[
            function okbtn() {
                var record = $('para_lov_ds').getAt(0);
                $('${/parameter/@lovid}').commit(record);
            }
            
            function returnok() {
                $('${/parameter/@lovid}').win.close();
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="para_lov_ds" autoCreate="true">
                <a:fields>
                    <a:field name="lov_sql"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <script type="text/javascript"><![CDATA[
        	function initSql(){
        	    var sql=$('efile_type_ds').getCurrentRecord().get('atm_sql');
        	    $('para_lov_ds').getAt(0).set('lov_sql',sql);
        	}
        	initSql();
        
        ]]></script>
        <a:screenBody>
            <a:form column="1" style="margin-top:10px;margin-left:10px;">
                <a:textArea name="lov_sql" bindTarget="para_lov_ds" height="320" width="500"/>
            </a:form>
            <a:hBox style="margin-left:10px;margin-bottom:20px;">
                <a:button id="okbtnid" click="okbtn" text="PROMPT.OK"/>
                <a:button click="returnok" text="PROMPT.RETURN"/>
            </a:hBox>
        </a:screenBody>
    </a:view>
</a:screen>