<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-8-22 下午1:36:24  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
        	function dblclick_commit(record){
        	    $('${/parameter/@lovid}').commit(record);
        	}
        	function con_lovurl_validation_dblclick(tree,record,node){
        	    
        	    var tree_ds=$('con_contract_update_lov_tree_ds');
        	    var tree_records=tree_ds.find('parent_class_id',record.get('class_id'));
        	    if(tree_records){
	            	//Leaf.showMessage('${l:PROMPT}','XXX');
	            	
	            	return;
        	    }else{
        	        dblclick_commit(record);
        	    }
        	}
    	]]></script>
        <a:dataSets>
            <a:dataSet id="con_contract_update_lov_tree_ds" autoQuery="true" fetchAll="true" queryUrl="${/request/@context_path}/autocrud/hls.HLS211.hls_bp_master_lovurl/query"/>
        </a:dataSets>
        <a:screenBody>
            <a:tree bindTarget="con_contract_update_lov_tree_ds" displayField="value_name" expandField="expand_flag" idField="class_id" parentField="parent_class_id" sequenceField="order_seq">
                <a:events>
                    <a:event name="dblclick" handler="con_lovurl_validation_dblclick"/>
                </a:events>
            </a:tree>
        </a:screenBody>
    </a:view>
</a:screen>
