<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:c="leaf.application.action" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="general_imp.fnd_transfer_table" rootPath="gerneral_cols"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
    		/* window['${/parameter/@sheet_name}_indexchange_fun'] = function(ds,record){
    		  var line_id = record.get('line_id');
    		  $('general_error_mes_ds').setQueryParameter('line_id',line_id);  
    		  $('general_error_mes_ds').query();
    		}; */
    		general_ds_list.push({ds_id:'general_detail_${/parameter/@sheet_name}_ds'});
    	]]></script>
        <a:dataSets>
            <a:dataSet id="general_detail_${/parameter/@sheet_name}_ds" autoPageSize="true" autoQuery="true" model="general_imp.fnd_interface_lines" queryUrl="${/request/@context_path}/autocrud/general_imp.fnd_interface_lines/query?header_id=${/parameter/@header_id}&amp;sheet_name=${/parameter/@sheet_name}">
                <a:events>
                    <a:event name="indexchange" handler="indexchange_fun"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:grid bindTarget="general_detail_${/parameter/@sheet_name}_ds" marginHeight="340" marginWidth="70" navBar="true">
            <a:columns>
                <a:column name="line_number" prompt="行号"/>
                <a:column name="err_flag" prompt="错误标志" sortable="true"/>
                <a:placeHolder id="dynamic_cols"/>
            </a:columns>
            <a:editors>
                <a:textField id="${/parameter/@sheet_name}_texted"/>
            </a:editors>
        </a:grid>
    </a:view>
    <a:view-config>
        <c:create-config targetId="dynamic_cols">
            <p:loop source="/model/gerneral_cols">
                <c:process-config>
                    <a:column name="${@col_name}" editor="${/parameter/@sheet_name}_texted" prompt="${@col_prompt}"/>
                </c:process-config>
            </p:loop>
        </c:create-config>
    </a:view-config>
</a:screen>