<?xml version="1.0" encoding="UTF-8"?>

<a:screen xmlns:a="http://www.leaf-framework.org/application" >
    <a:view>
        <a:link id="update_text_ds_link_id" model="rsc.RSC510.rsc_update_text" modelaction="update"></a:link>
        <script><![CDATA[
        function back() {
            $('update_text_winid').close();
        }

        function commit(){
            debugger;
            var count_ds=$('rsc_text_ds');
            var  new_record = $('RSC_FIVE_CLASS_WFL_RESULT_con_five_classification_ds').getSelected();
            var record=count_ds.getCurrentRecord();
            var text =  record.get('text');
            for (var i = 0;i < new_record.length;i++) {
                var record = new_record[i];
                record.set('text',text);
            }
            $('update_text_winid').close();

        }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="rsc_text_ds" autoCreate="true">
                <a:fields>
                    <a:field name="text" required="true" />
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="back" text="后退"/>
                <a:gridButton click="commit" text="提交"/>
            </a:screenTopToolbar>
            <a:fieldSet style="margin-left:10px;margin-top:10px;" labelWidth="130"  title="说明信息" width="400">
                <a:textField name="text" prompt="说明"  bindTarget="rsc_text_ds" width="180" />
            </a:fieldSet>
        </a:screenBody>

    </a:view>
</a:screen>