fin_manager_lov.lwm 1.33 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-3-3 下午12:08:49  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:fields>
        <bm:field name="value_code" displayWidth="250" forDisplay="true" forQuery="true" prompt="驻外经理编号"/>
        <bm:field name="value_name" displayWidth="250" forDisplay="true" forQuery="true" prompt="驻外经理"/>
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    ee.employee_id value_code,
                    ee.employee_code,
                    ee.name value_name
                FROM
                    exp_employees ee #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="value_code" queryExpression="ee.employee_id = ${@value_code}"/>
        <bm:query-field name="value_name" queryExpression="ee.name like &apos;%&apos;||${@value_name}||&apos;%&apos;"/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter name="query" expression="(ee.employee_id in (select ea.employee_id from EXP_EMPLOYEE_ASSIGNS ea  where ea.position_id = 901) and ee.enabled_flag = &apos;Y&apos;)"/>
    </bm:data-filters>
</bm:model>