<?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>
