<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: CalvinK  
    $Date: 2017-2-4 下午3:44:08  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CSH_BANK_ACCOUNT_V" needAccessControl="false">
    <bm:fields>
        <bm:field name="bank_account_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BANK_ACCOUNT_ID" prompt="CSH_BANK_ACCOUNT_V.BANK_ACCOUNT_ID"/>
        <bm:field name="bank_branch_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BANK_BRANCH_ID" prompt="CSH_BANK_ACCOUNT_V.BANK_BRANCH_ID"/>
        <bm:field name="bank_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BANK_ID" prompt="CSH_BANK_ACCOUNT_V.BANK_ID"/>
        <bm:field name="bank_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_TYPE" prompt="CSH_BANK_ACCOUNT_V.BANK_TYPE"/>
        <bm:field name="bank_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_CODE" prompt="CSH_BANK_ACCOUNT_V.BANK_CODE"/>
        <bm:field name="bank_full_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" physicalName="BANK_FULL_NAME" prompt="银行名称"/>
        <bm:field name="bank_short_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_SHORT_NAME" prompt="CSH_BANK_ACCOUNT_V.BANK_SHORT_NAME"/>
        <bm:field name="zero_amounts_allowed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ZERO_AMOUNTS_ALLOWED" prompt="CSH_BANK_ACCOUNT_V.ZERO_AMOUNTS_ALLOWED"/>
        <bm:field name="bank_branch_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_BRANCH_CODE" prompt="CSH_BANK_ACCOUNT_V.BANK_BRANCH_CODE"/>
        <bm:field name="bank_branch_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="BANK_BRANCH_NAME" prompt="分公司"/>
        <bm:field name="bank_account_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_ACCOUNT_CODE" prompt="CSH_BANK_ACCOUNT_V.BANK_ACCOUNT_CODE"/>
        <bm:field name="bank_account_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" physicalName="BANK_ACCOUNT_NAME" prompt="账户名"/>
        <bm:field name="bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="BANK_ACCOUNT_NUM" prompt="银行账号"/>
        <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="CSH_BANK_ACCOUNT_V.COMPANY_ID"/>
        <bm:field name="currency_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_CODE" prompt="CSH_BANK_ACCOUNT_V.CURRENCY_CODE"/>
        <bm:field name="currency_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_NAME" prompt="CSH_BANK_ACCOUNT_V.CURRENCY_NAME"/>
        <bm:field name="precision" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRECISION" prompt="CSH_BANK_ACCOUNT_V.PRECISION"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="CSH_BANK_ACCOUNT_V.ENABLED_FLAG"/>
        <bm:field name="cash_account_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CASH_ACCOUNT_ID" prompt="CSH_BANK_ACCOUNT_V.CASH_ACCOUNT_ID"/>
        <bm:field name="cash_account_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CASH_ACCOUNT_CODE" prompt="CSH_BANK_ACCOUNT_V.CASH_ACCOUNT_CODE"/>
        <bm:field name="responsibility_center_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RESPONSIBILITY_CENTER_ID" prompt="CSH_BANK_ACCOUNT_V.RESPONSIBILITY_CENTER_ID"/>
        <bm:field name="responsibility_center_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="RESPONSIBILITY_CENTER_NAME" prompt="CSH_BANK_ACCOUNT_V.RESPONSIBILITY_CENTER_NAME"/>
        <bm:field name="bank_account_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_ACCOUNT_TYPE" prompt="CSH_BANK_ACCOUNT_V.BANK_ACCOUNT_TYPE"/>
        <bm:field name="bank_account_type_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" physicalName="BANK_ACCOUNT_TYPE_NAME" prompt="账户类型"/>
        <bm:field name="is_company_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IS_COMPANY_ACCOUNT" prompt="CSH_BANK_ACCOUNT_V.IS_COMPANY_ACCOUNT"/>
        <bm:field name="settlement_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SETTLEMENT_FLAG" prompt="CSH_BANK_ACCOUNT_V.SETTLEMENT_FLAG"/>
        <bm:field name="repayment_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPAYMENT_FLAG" prompt="CSH_BANK_ACCOUNT_V.REPAYMENT_FLAG"/>
        <bm:field name="loan_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOAN_FLAG" prompt="CSH_BANK_ACCOUNT_V.LOAN_FLAG"/>
        <bm:field name="spd_feeno" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPD_FEENO" prompt="CSH_BANK_ACCOUNT_V.SPD_FEENO"/>
        <bm:field name="spd_payment_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPD_PAYMENT_FLAG" prompt="CSH_BANK_ACCOUNT_V.SPD_PAYMENT_FLAG"/>
        <bm:field name="spd_project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPD_PROJECT_NAME" prompt="CSH_BANK_ACCOUNT_V.SPD_PROJECT_NAME"/>
        <bm:field name="spd_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPD_PROJECT_NUMBER" prompt="CSH_BANK_ACCOUNT_V.SPD_PROJECT_NUMBER"/>
        <bm:field name="spd_receipt_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPD_RECEIPT_FLAG" prompt="CSH_BANK_ACCOUNT_V.SPD_RECEIPT_FLAG"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="bank_branch_name" queryOperator="like"/>
        <bm:query-field field="bank_account_num" queryOperator="like"/>
        <bm:query-field field="bank_account_id" queryOperator="="/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter name="enabled_flag" enforceOperations="query" expression="t1.enabled_flag=&apos;Y&apos;"/>
    </bm:data-filters>
</bm:model>
