<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Byeongjoon Moon
    $Date: 2018-10-18
    $Revision: 1.0  
    $Purpose:
    $ETC: byeongjoon.moon@hlcm.com
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    AA.*
                FROM
                    (SELECT
                          D."OrgUnitID" AS org_unit_id
                        , D."RootOrgUnitID" AS root_org_unit_id
                        , D."DeptName" AS dept_name
                    FROM
                        DS_EXP_ADMASTER_DEPT D
                    WHERE   D."RootOrgUnitID" = '03084461'
                           or D."RootOrgUnitID" = '03066335'
                           or D."RootOrgUnitID" = '03077520'
                           or D."RootOrgUnitID" = '03066718'
                           or D."RootOrgUnitID" = '03085292'
                    ) AA #WHERE_CLAUSE#
                ORDER BY
                    AA.dept_name
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="org_unit_id" displayWidth="200" forDisplay="false" forQuery="false" prompt="Dept Code"/>
        <bm:field name="root_org_unit_id" displayWidth="200" forDisplay="false" forQuery="false" prompt="Parents Dept"/>
        <bm:field name="dept_name" displayWidth="500" forDisplay="true" forQuery="true" prompt="Dept Name"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="dept_name" queryOperator="like"/>
    </bm:query-fields>
</bm:model>
