<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author:  qianming
    $Date: 2015-8-31  
    $Revision: 1.0  
    $Purpose: 付款先决条件模版/内部审批要件资料模版（国资租赁）
-->
<bm:model xmlns:e="leaf.service.exception" xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="BGFL_CSH_PAYMENT_CON_TPL" defaultOrderBy="tpl_group">
    <bm:fields>
        <bm:field name="tpl_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TPL_ID"/>
        <bm:field name="tpl_group" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TPL_GROUP" prompt="模版分组编号"/>
        <bm:field name="tpl_description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TPL_DESCRIPTION" prompt="模版描述"/>
        <bm:field name="attachment_number" databaseType="NUMBER" datatype="java.lang.Double" physicalName="ATTACHMENT_NUMBER" prompt="附件数量"/>
        <bm:field name="original_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ORIGINAL_FLAG" prompt="附件含原件"/>
        <bm:field name="hard_copy_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="HARD_COPY_FLAG" prompt="附件含复印件"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="是否启用"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="tpl_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="tpl_id" queryOperator="="/>
        <bm:query-field field="tpl_group" queryExpression="upper(t1.tpl_group) like &apos;%&apos; || upper(${@tpl_group}) || &apos;%&apos;"/>
        <bm:query-field field="tpl_description" queryExpression="upper(t1.tpl_description) like &apos;%&apos; || upper(${@tpl_description}) || &apos;%&apos;"/>
        <bm:query-field name="attachment_number_from" queryExpression="t1.attachment_number &gt;= ${@attachment_numbe_from}"/>
        <bm:query-field name="attachment_number_to" queryExpression="t1.attachment_number &lt;= ${@attachment_number_to}"/>
        <bm:query-field field="enabled_flag" queryOperator="="/>
        <bm:query-field field="original_flag" queryOperator="="/>
        <bm:query-field field="hard_copy_flag" queryOperator="="/>
    </bm:query-fields>
</bm:model>
