lease_chance_code_update.lview 1.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-2-26 下午2:37:49  
    $Revision: 1.0  
    $Purpose: chanceCode
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
        
        function save_chanceCodeScreen()
        {
            mask_chanceCodeScreen();
            
            var ds=$('chanceCodeDs');
            if(!ds.validate()){
                unmask_chanceCodeScreen();
                return;
            }
            var old_lease_chance_code='${/parameter/@lease_chance_code}';
            var lease_chance_code = ds.getAt(0).get('lease_chance_code');
            if(old_lease_chance_code==lease_chance_code)
            {
                unmask_chanceCodeScreen();
                close_chanceCodeScreen();
            }
            else
            {
                chanceCreate_update_leaseChanceCode(lease_chance_code);
        		chanceCreateScreen_save(false);
            }
        }
        
        ]]></script>
        <a:dataSets>
            <a:dataSet id="chanceCodeDs" autoCreate="true" model="lch.LCH501.lch_lease_chance_hds">
                <a:fields>
                    <a:field name="lease_chance_code" defaultValue="${/parameter/@lease_chance_code}" required="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form title=" ">
                <a:textField name="lease_chance_code" bindTarget="chanceCodeDs"/>
            </a:form>
            <a:hBox>
                <a:button click="save_chanceCodeScreen" text="HLS.SAVE"/>
                <a:button click="close_chanceCodeScreen" text="HLS.CLOSE"/>
            </a:hBox>
        </a:screenBody>
    </a:view>
</a:screen>