<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2012-11-12 下午02:31:13  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
            /* select * from (
            select b.code_value value, b.code_value_name name
         from sys_codes a, sys_code_values_vl b
        where a.code_id = b.code_id
          and a.code = 'RPT_REPORT_COLOR_STYLE') */
          select name value, name  from rpt_report_cell_style t
          #WHERE_CLAUSE#
          ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="value" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALUE"/>
        <bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="NAME" prompt="RPT_REPORT_CELL_STYLE.STYLE"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="value" queryOperator="like"/>
        <bm:query-field field="name" queryOperator="like"/>
    </bm:query-fields>
</bm:model>
