<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-3 下午3:25:22  
    $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="hls_bp_type_input_authority_result_ds" autoQuery="true" fetchAll="true" model="hls.HLS106.hls_bp_type_input_authority" queryUrl="${/request/@context_path}/autocrud/hls.HLS106.hls_bp_type_input_authority/query?bp_type=${/parameter/@bp_type}" selectable="true">
                <a:fields>
                    <a:field name="bp_type" defaultValue="${/parameter/@bp_type}"/>
                    <a:field name="description" defaultValue="${/parameter/@description}"/>
                    <a:field name="role_id"/>
                    <a:field name="role_name" lovGridHeight="310" lovHeight="450" lovService="hls.HLS106.sys_role_vl_for_lov" lovWidth="600">
                        <a:mapping>
                            <a:map from="role_id" to="role_id"/>
                            <a:map from="role_name" to="role_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="unit_id"/>
                    <a:field name="unit_name" lovGridHeight="310" lovHeight="450" lovService="hls.HLS106.exp_org_unit_v" lovWidth="600">
                        <a:mapping>
                            <a:map from="unit_id" to="unit_id"/>
                            <a:map from="unit_name" to="unit_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="position_id"/>
                    <a:field name="position_name" lovGridHeight="310" lovHeight="450" lovService="hls.HLS106.exp_org_position_vl" lovWidth="600">
                        <a:mapping>
                            <a:map from="position_id" to="position_id"/>
                            <a:map from="description" to="position_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="user_id"/>
                    <a:field name="user_name" lovGridHeight="310" lovHeight="450" lovService="hls.HLS106.sys_user_a_v" lovWidth="600">
                        <a:mapping>
                            <a:map from="user_id" to="user_id"/>
                            <a:map from="user_desc" to="user_name"/>
                        </a:mapping>
                    </a:field>
                    <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="hls_bp_type_input_authority_result_ds" height="400" navBar="true" width="950">
                <a:toolBar>
                    <a:button type="add"/>
                    <a:button type="save"/>
                    <a:button type="delete"/>
                    <a:button type="clear"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="bp_type" prompt="商业伙伴类型编码" width="160"/>
                    <a:column name="description" prompt="商业伙伴类型编码描述" width="200"/>
                    <a:column name="role_name" editor="grid_id_lov_id" prompt="分配角色" width="120"/>
                    <a:column name="unit_name" editor="grid_id_lov_id" prompt="分配部门" width="120"/>
                    <a:column name="position_name" editor="grid_id_lov_id" prompt="分配岗位" width="120"/>
                    <a:column name="user_name" editor="grid_id_lov_id" prompt="分配用户" width="100"/>
                    <a:column name="enabled_flag" align="center" editor="grid_id_checkBox_id" prompt="是否启用" width="60"/>
                </a:columns>
                <a:editors>
                    <a:lov id="grid_id_lov_id"/>
                    <a:checkBox id="grid_id_checkBox_id"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
