<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hand  
    $Date: 2016-5-9 下午7:36:38  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_INFORMATION_QUERY_LV">
    <bm:fields>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="CON_INFORMATION_QUERY_LV.CONTRACT_ID"/>
        <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="CON_INFORMATION_QUERY_LV.CONTRACT_NUMBER"/>
        <bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="CON_INFORMATION_QUERY_LV.PROJECT_NUMBER"/>
        <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="CON_INFORMATION_QUERY_LV.BP_NAME"/>
        <bm:field name="lease_item_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LEASE_ITEM_AMOUNT" prompt="CON_INFORMATION_QUERY_LV.LEASE_ITEM_AMOUNT"/>
        <bm:field name="invoice_agent_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_AGENT_DESC" prompt="CON_INFORMATION_QUERY_LV.INVOICE_AGENT_DESC"/>
        <bm:field name="business_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE_DESC" prompt="CON_INFORMATION_QUERY_LV.BUSINESS_TYPE_DESC"/>
        <bm:field name="division_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION_DESC" prompt="CON_INFORMATION_QUERY_LV.DIVISION_DESC"/>
        <bm:field name="bp_class_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS_DESC" prompt="CON_INFORMATION_QUERY_LV.BP_CLASS_DESC"/>
        <bm:field name="full_write_off_date" databaseType="DATE" datatype="java.util.Date" physicalName="FULL_WRITE_OFF_DATE" prompt="CON_INFORMATION_QUERY_LV.FULL_WRITE_OFF_DATE"/>
        <bm:field name="archive_remind_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ARCHIVE_REMIND_N" prompt="CON_INFORMATION_QUERY_LV.ARCHIVE_REMIND_N"/>
        <bm:field name="archive_status_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ARCHIVE_STATUS_N" prompt="CON_INFORMATION_QUERY_LV.ARCHIVE_STATUS_N"/>
        <bm:field name="reg_status_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REG_STATUS_N" prompt="CON_INFORMATION_QUERY_LV.REG_STATUS_N"/>
        <bm:field name="chest_number_reg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHEST_NUMBER_REG" prompt="CON_INFORMATION_QUERY_LV.CHEST_NUMBER_REG"/>
        <bm:field name="chest_number_archive" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHEST_NUMBER_ARCHIVE" prompt="CON_INFORMATION_QUERY_LV.CHEST_NUMBER_ARCHIVE"/>
        <bm:field name="docu_number_reg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCU_NUMBER_REG" prompt="CON_INFORMATION_QUERY_LV.DOCU_NUMBER_REG"/>
        <bm:field name="docu_number_archive" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCU_NUMBER_ARCHIVE" prompt="CON_INFORMATION_QUERY_LV.DOCU_NUMBER_ARCHIVE"/>
        <bm:field name="storage_date_reg" databaseType="DATE" datatype="java.util.Date" physicalName="STORAGE_DATE_REG" prompt="CON_INFORMATION_QUERY_LV.STORAGE_DATE_REG"/>
        <bm:field name="storage_date_archive" databaseType="DATE" datatype="java.util.Date" physicalName="STORAGE_DATE_ARCHIVE" prompt="CON_INFORMATION_QUERY_LV.STORAGE_DATE_ARCHIVE"/>
        <bm:field name="invoice_agent" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_AGENT" prompt="CON_INFORMATION_QUERY_LV.INVOICE_AGENT"/>
        <bm:field name="archive_status" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="id_card_no"/>
        <bm:field name="reg_status" databaseType="VARCHAR2" datatype="java.lang.String"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field name="project_number" queryExpression="t1.project_number like upper(&apos;%&apos;||${@project_number}||&apos;%&apos;)"/>
        <!-- <bm:query-field name="contract_number" queryExpression="t1.contract_number like upper(&apos;%&apos;||${@contract_number}||&apos;%&apos;)"/> -->
        <bm:query-field name="contract_number" queryExpression="t1.contract_number like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
        <bm:query-field name="bp_name" queryExpression="t1.bp_name like &apos;%&apos;||${@bp_name}||&apos;%&apos;"/>
        <bm:query-field name="invoice_agent" queryExpression="t1.invoice_agent =${@invoice_agent}"/>
        <bm:query-field name="archive_status" queryExpression="t1.archive_status =${@archive_status}"/>
        <bm:query-field name="reg_status" queryExpression="t1.reg_status =${@reg_status}"/>
        <bm:query-field name="division_desc" queryExpression="t1.division_desc=${@division_desc}"/>
        <!--  <bm:query-field field="contract_number" queryOperator="like"/> -->
        <bm:query-field name="id_card_no" queryExpression="t1.id_card_no like &apos;%&apos;||${@id_card_no}||&apos;%&apos;"/>
    </bm:query-fields>
</bm:model>
