<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-7 下午3:29:48  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
        
		]]></script>
        <a:dataSets>
            <a:dataSet id="lease_form_ds" lookupCode="LEASE_FORM"/>
            <a:dataSet id="bgfl_document_type_agn_ptype_result_ds" autoQuery="true" fetchAll="true" model="hls.HLS003.bgfl_document_type_agn_ptype" queryUrl="${/request/@context_path}/autocrud/hls.HLS003.bgfl_document_type_agn_ptype/query?document_type=${/parameter/@document_type}">
                <a:fields>
                    <a:field name="ptype_id"/>
                    <a:field name="document_type" defaultValue="${/parameter/@document_type}"/>
                    <a:field name="document_type_n" defaultValue="${/parameter/@document_type_n}"/>
                    <a:field name="lease_form"/>
                    <a:field name="lease_form_n" displayField="code_value_name" options="lease_form_ds" returnField="lease_form" valueField="code_value"/>
                    <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:grid id="grid_id" bindTarget="bgfl_document_type_agn_ptype_result_ds" height="300" navBar="true" width="580">
                <a:toolBar>
                    <a:button type="add"/>
                    <a:button type="save"/>
                    <a:button type="delete"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="document_type" prompt="单据类型代码" width="100"/>
                    <a:column name="document_type_n" prompt="单据类型描述" width="160"/>
                    <a:column name="lease_form_n" editor="grid_id_comboBox_id" prompt="租赁形式" width="140"/>
                    <a:column name="enabled_flag" align="center" editor="grid_id_checkBox_id" prompt="是否启用" width="80"/>
                </a:columns>
                <a:editors>
                    <a:comboBox id="grid_id_comboBox_id"/>
                    <a:checkBox id="grid_id_checkBox_id"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
