sdic_sys_user_lov.lwm 1.86 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
            select * from (
                SELECT
                    su.user_id,
                    su.user_name,
                    su.description user_desc,
                    fd.description_text unit_name
                FROM
                    EXP_EMPLOYEE_ASSIGNS t,
                    exp_org_position_vl p,
                    exp_org_unit u,
                    fnd_descriptions fd,
                    sys_user su
                WHERE
                    t.primary_position_flag = 'Y' AND
                    t.position_id           = p.POSITION_ID AND
                    p.UNIT_ID               = u.unit_id AND
                    u.description_id        = fd.description_id AND
                    fd.language             = 'ZHS' AND
                    su.employee_id          = t.employee_id
                    ) t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID"/>
        <bm:field name="user_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="USER_NAME" prompt="用户代码"/>
        <bm:field name="user_desc" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="USER_DESC" prompt="用户名称"/>
        <bm:field name="unit_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="UNIT_NAME"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="user_name" queryOperator="like"/>
        <bm:query-field field="user_desc" queryOperator="like"/>
    </bm:query-fields>
</bm:model>