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

<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:view>
        <script type="text/javascript"><![CDATA[
        function financing_commodities_detail_query() {
            $('financing_commodities_detail_grid_ds').query();
            $('financing_commodities_detail_grid_ds2').query();
        }

        function financing_commodities_detail_reset(){
            $('financing_commodities_detail_form_ds').reset();
        }

        function source_to_grid_export() {
            $('source_to_grid')._export();
        }

        function source_to_grid2_export() {
            $('source_to_grid2')._export();
        }


        ]]></script>
        <a:dataSets>
            <a:dataSet id="financing_commodities_detail_form_ds">
            </a:dataSet>
            <a:dataSet id="financing_commodities_detail_grid_ds"
                       model="hls.HLS2120.hls_financing_commodities_detail"
                       queryDataSet="financing_commodities_detail_form_ds" autoQuery="false" selectable="true" selectionModel="single">
            </a:dataSet>
            <a:dataSet id="financing_commodities_detail_grid_ds2"
                       model="hls.HLS2120.hls_financing_commodities_detail2"
                       queryDataSet="financing_commodities_detail_form_ds" autoQuery="false" selectable="true" selectionModel="single">
            </a:dataSet>
        </a:dataSets>

        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="financing_commodities_detail_query" text="查询"/>
                <a:gridButton click="financing_commodities_detail_reset" text="重置"/>
            </a:screenTopToolbar>
            <a:form column="4" marginWidth="100" title="查询条件">
                <a:textField name="available_agnt_all" bindTarget="financing_commodities_detail_form_ds" prompt="代理商"/>
                <a:textField name="goods_type_name" bindTarget="financing_commodities_detail_form_ds" prompt="商品类型" />
                <a:textField name="machine_types_all" bindTarget="financing_commodities_detail_form_ds" prompt="机型" />
                <a:textField name="goods_nm" bindTarget="financing_commodities_detail_form_ds" prompt="商品名称" />
                <a:numberField name="payment" bindTarget="financing_commodities_detail_form_ds" prompt="首付比例" allowDecimals="true"/>
                <a:numberField name="pay_months" bindTarget="financing_commodities_detail_form_ds" prompt="还款期限" allowDecimals="true"/>
            </a:form>
            <a:tabPanel height="500" marginWidth="30">
                <a:tabs>
                    <a:tab prompt="挖掘机" width="150">
                        <a:grid id="source_to_grid" bindTarget="financing_commodities_detail_grid_ds" navBar="true" height="400" marginWidth="100">
                            <a:toolBar>
                                <a:button click="source_to_grid_export" text="导出"/>
                            </a:toolBar>
                            <a:columns>
                                <a:column name="goods_cd" align="center" prompt="融资商品CODE" width="130"/>
                                <a:column name="goods_nm" align="center" prompt="商品名称" width="100"/>
                                <a:column name="goods_type_name" align="center" prompt="商品类型" width="100" />
                                <a:column name="column_a" align="center" prompt="客户保证金(%)" width="100"/>
                                <a:column name="column_b" align="center" prompt="客户手续费1(%)" width="100"/>
                                <a:column name="column_c" align="center" prompt="利率(%)" width="100"/>
                                <a:column name="column_d" align="center" prompt="代理商手续费率(%)" width="100"/>
                                <a:column name="column_e" align="center" prompt="IRR(%)" width="100"/>
                                <a:column name="column_f" align="center" prompt="客户手续费2(%)" width="100"/>
                                <a:column name="column_g" align="center" prompt="延期利率(%)" width="100"/>
                                <a:column name="payment" align="center" prompt="首付比例(%)" width="100"/>
                                <a:column name="pay_months" align="center" prompt="还款期限" width="100" renderer="Leaf.formatMoney"/>
                                <a:column name="available_period_begin" align="center" prompt="期间开始" width="100"/>
                                <a:column name="available_period_end" align="center" prompt="期间结束" width="100"/>
                                <a:column name="machine_types_all" align="center" prompt="机型" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="装载机" width="150">
                        <a:grid id="source_to_grid2" bindTarget="financing_commodities_detail_grid_ds2" navBar="true" height="400" marginWidth="100">
                            <a:toolBar>
                                <a:button click="source_to_grid2_export" text="导出"/>
                            </a:toolBar>
                            <a:columns>
                                <a:column name="goods_cd" align="center" prompt="融资商品CODE" width="130"/>
                                <a:column name="goods_nm" align="center" prompt="商品名称" width="100"/>
                                <a:column name="goods_type_name" align="center" prompt="商品类型" width="100" />
                                <a:column name="column_a" align="center" prompt="客户保证金(%)" width="100"/>
                                <a:column name="column_b" align="center" prompt="客户手续费1(%)" width="100"/>
                                <a:column name="column_c" align="center" prompt="利率(%)" width="100"/>
                                <a:column name="column_d" align="center" prompt="代理商手续费率(%)" width="100"/>
                                <a:column name="column_e" align="center" prompt="IRR(%)" width="100"/>
                                <a:column name="column_f" align="center" prompt="客户手续费2(%)" width="100"/>
                                <a:column name="column_g" align="center" prompt="延期利率(%)" width="100"/>
                                <a:column name="payment" align="center" prompt="首付比例(%)" width="100"/>
                                <a:column name="pay_months" align="center" prompt="还款期限" width="100" renderer="Leaf.formatMoney"/>
                                <a:column name="available_period_begin" align="center" prompt="期间开始" width="100"/>
                                <a:column name="available_period_end" align="center" prompt="期间结束" width="100"/>
                                <a:column name="machine_types_all" align="center" prompt="机型" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
</a:screen>