bgfl_common_template.lwm 2.03 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-4 下午9:31:45  
    $Revision: 1.0  
    $Purpose: 公共模版下载(如某功能的导出模版)
-->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="BGFL_COMMON_TEMPLATE">
    <bm:fields>
        <bm:field name="template_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLATE_ID" prompt="BGFL_COMMON_TEMPLATE.TEMPLATE_ID"/>
        <bm:field name="template_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_CODE" prompt="模版编码"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="模版描述"/>
        <bm:field name="function_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FUNCTION_ID"/>
        <bm:field name="function_code" expression="(select function_code from sys_function_v where function_id = t1.function_id)" forInsert="false" forUpdate="false" prompt="功能编码"/>
        <bm:field name="function_name" expression="(select function_name from sys_function_v where function_id = t1.function_id)" forInsert="false" forUpdate="false" 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="template_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="template_code" queryExpression="upper(t1.template_code) like &apos;%&apos; || upper(${@template_code}) || &apos;%&apos;"/>
        <bm:query-field field="description" queryExpression="upper(t1.description) like &apos;%&apos; || upper(${@description}) || &apos;%&apos;"/>
        <bm:query-field field="function_id" queryOperator="="/>
    </bm:query-fields>
</bm:model>