<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-7-27
    $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_AUTHORITY" defaultOrderBy="cf_item">
    <bm:fields>
        <bm:field name="auth_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTH_ID"/>
        <bm:field name="cf_item" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CF_ITEM" prompt="现金流项目编号"/>
        <bm:field name="description" expression="(select description from hls_cashflow_item where cf_item = t1.cf_item)" forInsert="false" forUpdate="false" prompt="现金流项目描述"/>
        <bm:field name="unit_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="UNIT_ID"/>
        <bm:field name="unit_name" expression="(select unit_name from exp_org_unit_v where unit_id = t1.unit_id)" forInsert="false" forUpdate="false" prompt="分配部门"/>
        <bm:field name="position_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POSITION_ID"/>
        <bm:field name="position_name" expression="(select description from exp_org_position_vl where position_id = t1.position_id)" forInsert="false" forUpdate="false" prompt="分配岗位"/>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID"/>
        <bm:field name="user_name" expression="(select description from sys_user where user_id = t1.user_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="auth_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter name="1" enforceOperations="query" expression="t1.cf_item = ${@cf_item}"/>
    </bm:data-filters>
</bm:model>
