<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lpc 9874
    $Date: 2017/11/20 14:35:56 $
    $Revision: 1.0 $
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:init-procedure><![CDATA[     
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
             function masterDs_grid_query() {
                $('bp_master_result_ds').query();
            }
            
            function masterDs_grid_reset() {
                $('allConditionDs').reset();
            }
            
             function masterDs_grid_save() {
                $('bp_master_result_ds').submit();
            }
            
        ]]></script>
        <a:dataSet id="hls_bp_class_ds" lookupCode="HLS211_BP_CLASS"/>
        <a:dataSets>
            <a:dataSet id="allConditionDs" autoCreate="true">
                <a:fields>
                    <a:field name="bp_category_n" lovGridHeight="300" lovHeight="450" lovService="basic.hls_bp_category_lov" lovWidth="500" title="商业伙伴类别">
                        <a:mapping>
                            <a:map from="bp_category" to="bp_category"/>
                            <a:map from="description" to="bp_category_n"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_code" lovHeight="500" lovService="hls.HLS700.hls700_bp_master_lov" lovWidth="700" title="商业伙伴选择">
                        <a:mapping>
                            <a:map from="bp_id" to="bp_id"/>
                            <a:map from="bp_code" to="bp_code"/>
                            <a:map from="bp_name" to="bp_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_category"/>
                    <a:field name="bp_class_n" displayField="code_value_name" options="hls_bp_class_ds" returnField="bp_class" valueField="code_value"/>
                    <a:field name="bp_class"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="bp_master_result_ds" autoQuery="true" fetchAll="false" model="hls.HLS550.hls_bp_master" pageSize="15" queryDataSet="allConditionDs" selectable="true">
                <a:fields>
                    <a:field name="bp_name"/>
                    <a:field name="bp_class"/>
                    <a:field name="bp_category"/>
                    <a:field name="kingdee_bp_code"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="masterDs_grid_query" text="HLS.QUERY"/>
                <a:gridButton click="masterDs_grid_reset" text="重置条件"/>
                <a:gridButton click="masterDs_grid_save" text="HLS.SAVE"/>
            </a:screenTopToolbar>
            <a:form column="4" labelWidth="150" marginWidth="30" title="查询条件">
                <a:lov name="bp_code" bindTarget="allConditionDs" prompt="商业伙伴编码"/>
                <a:textField name="bp_name" bindTarget="allConditionDs" prompt="商业伙伴名称"/>
                <a:comboBox name="bp_class_n" bindTarget="allConditionDs" prompt="商业伙伴分类"/>
                <a:lov name="bp_category_n" bindTarget="allConditionDs" prompt="商业伙伴类别"/>
            </a:form>
            <a:grid bindTarget="bp_master_result_ds" marginHeight="200" marginWidth="30" navBar="true">
                <a:columns>
                    <a:column name="bp_name" prompt="商业伙伴名称" width="200"/>
                    <a:column name="bp_code" prompt="商业伙伴编码"/>
                    <a:column name="bp_class_n" prompt="商业伙伴分类" width="120"/>
                    <a:column name="bp_category_n" prompt="商业伙伴类别" width="120"/>
                    <a:column name="kingdee_bp_code" editor="textDs_tf" prompt="金蝶客户编码" width="120"/>
                </a:columns>
                <a:editors>
                    <a:textField id="textDs_tf"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
