<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-6-29 下午4:09:07  
    $Revision: 1.0  
    $Purpose: 北京国资租赁-用友财务接口-凭证数据接口
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="BGFL_YONGYOU_JOURNALS">
    <bm:fields>
        <bm:field name="journals_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="JOURNALS_ID"/>
        <bm:field name="csign" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CSIGN" prompt="凭证类别"/>
        <bm:field name="cbill" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CBILL" prompt="凭证制单人"/>
        <bm:field name="ccode" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CCODE" prompt="凭证科目"/>
        <bm:field name="ccus_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CCUS_ID" prompt="客户编码"/>
        <bm:field name="cdept_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEPT_ID" prompt="部门编码"/>
        <bm:field name="cdigest" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDIGEST" prompt="摘要"/>
        <bm:field name="cexch_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CEXCH_NAME" prompt="币种名称"/>
        <bm:field name="cperson_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CPERSON_ID" prompt="业务员编码"/>
        <bm:field name="csup_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CSUP_ID" prompt="供应商编码"/>
        <bm:field name="dbill_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DBILL_DATE" prompt="制单日期"/>
        <bm:field name="inid" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INID" prompt="凭证行号"/>
        <bm:field name="ino_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INO_ID" prompt="凭证编号"/>
        <bm:field name="iperiod" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IPERIOD" prompt="会计期间"/>
        <bm:field name="mc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MC" prompt="贷方金额"/>
        <bm:field name="mc_f" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MC_F" prompt="外币贷方金额"/>
        <bm:field name="md" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MD" prompt="借方金额"/>
        <bm:field name="md_f" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MD_F" prompt="外币借方金额"/>
        <bm:field name="nc_s" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NC_S" prompt="数量贷方"/>
        <bm:field name="nd_s" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ND_S" prompt="数量借方"/>
        <bm:field name="nfrat" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NFRAT" prompt="汇率"/>
        <bm:field name="dt_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DT_DATE" prompt="发生日期"/>
        <bm:field name="cn_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CN_ID" prompt="票号"/>
        <bm:field name="csettle" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CSETTLE" prompt="结算方式"/>
        <bm:field name="cname" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CNAME" prompt="业务员"/>
        <bm:field name="cdefine10" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEFINE10" prompt="租赁类型"/>
        <bm:field name="cdefine11" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEFINE11" prompt="项目"/>
        <bm:field name="cdefine12" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEFINE12" prompt="合同"/>
        <bm:field name="cdefine13" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEFINE13" prompt="融资合同"/>
        <bm:field name="cdefine14" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CDEFINE14" prompt="借款机构"/>
        <bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="状态"/>
        <bm:field name="ref_ino_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_INO_ID" prompt="关联凭证号"/>
    </bm:fields>
    <bm:data-filters>
        <bm:data-filter name="1" enforceOperations="query" expression="t1.ino_id = ${@journal_num}"/>
    </bm:data-filters>
</bm:model>
