<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-7
    $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_PROJECT_APP_GRP_ASSIGN">
    <bm:fields>
        <bm:field name="assign_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ASSIGN_ID"/>
        <bm:field name="approver_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="APPROVER_USER_ID"/>
        <bm:field name="approver_user_desc" expression="(select description from sys_user where user_id = t1.approver_user_id)" forInsert="false" forUpdate="false" prompt="委员名称"/>
        <bm:field name="project_type" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="PROJECT_TYPE" lookupField="project_type_desc" physicalName="PROJECT_TYPE" prompt="项目类型编码"/>
        <bm:field name="project_type_desc" 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="assign_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.approver_user_id = ${@approver_user_id}"/>
    </bm:data-filters>
</bm:model>
