<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hp  
    $Date: 2015-6-29 下午2:52:44  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="INS_PRJ_INS_POLICY_NEW_LV" needAccessControl="false">
    <bm:fields>
        <bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.PROJECT_NUMBER"/>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.PROJECT_ID"/>
        <bm:field name="quotation_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUOTATION_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.QUOTATION_ID"/>
        <bm:field name="insure_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURE_CLASS" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURE_CLASS"/>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.CONTRACT_ID"/>
        <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.CONTRACT_NUMBER"/>
        <bm:field name="policy_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POLICY_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_ID"/>
        <bm:field name="policy_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POLICY_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_NUMBER"/>
        <bm:field name="valid_from" expression="to_char(t1.valid_from,&apos;yyyy-mm-dd&apos;)" prompt="INS_PRJ_INS_POLICY_NEW_LV.VALID_FROM"/>
        <bm:field name="valid_to" expression="to_char(t1.valid_to,&apos;yyyy-mm-dd&apos;)" prompt="INS_PRJ_INS_POLICY_NEW_LV.VALID_TO"/>
        <bm:field name="insured_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURED_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURED_FLAG"/>
        <bm:field name="insured_flag_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURED_FLAG_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURED_FLAG_N"/>
        <bm:field name="endorsement_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENDORSEMENT_DESC" prompt="INS_PRJ_INS_POLICY_NEW_LV.ENDORSEMENT_DESC"/>
        <bm:field name="surrender_date" databaseType="DATE" datatype="java.util.Date" physicalName="SURRENDER_DATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.SURRENDER_DATE"/>
        <bm:field name="surrender_value" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SURRENDER_VALUE" prompt="INS_PRJ_INS_POLICY_NEW_LV.SURRENDER_VALUE"/>
        <bm:field name="surrender_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SURRENDER_ACCOUNT" prompt="INS_PRJ_INS_POLICY_NEW_LV.SURRENDER_ACCOUNT"/>
        <bm:field name="surrender_account_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SURRENDER_ACCOUNT_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.SURRENDER_ACCOUNT_N"/>
        <bm:field name="note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTE" prompt="INS_PRJ_INS_POLICY_NEW_LV.NOTE"/>
        <bm:field name="insurance_year" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_YEAR" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_YEAR"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.ENABLED_FLAG"/>
        <bm:field name="insure_date" databaseType="DATE" datatype="java.util.Date" physicalName="INSURE_DATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURE_DATE"/>
        <bm:field name="compulsory_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPULSORY_INSURANCE_AMOUNT" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMPULSORY_INSURANCE_AMOUNT"/>
        <bm:field name="commercial_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMMERCIAL_INSURANCE_AMOUNT" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMMERCIAL_INSURANCE_AMOUNT"/>
        <bm:field name="damage_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DAMAGE_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.DAMAGE_INSURANCE_FLAG"/>
        <bm:field name="third_party_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="THIRD_PARTY_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.THIRD_PARTY_INSURANCE_FLAG"/>
        <bm:field name="third_party_insurance_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="THIRD_PARTY_INSURANCE_NOTE" prompt="INS_PRJ_INS_POLICY_NEW_LV.THIRD_PARTY_INSURANCE_NOTE"/>
        <bm:field name="pilfer_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PILFER_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.PILFER_INSURANCE_FLAG"/>
        <bm:field name="basic_non_deductible_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASIC_NON_DEDUCTIBLE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.BASIC_NON_DEDUCTIBLE_FLAG"/>
        <bm:field name="glass_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GLASS_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.GLASS_INSURANCE_FLAG"/>
        <bm:field name="seat_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEAT_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.SEAT_INSURANCE_FLAG"/>
        <bm:field name="combustion_insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMBUSTION_INSURANCE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMBUSTION_INSURANCE_FLAG"/>
        <bm:field name="add_non_deductible_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ADD_NON_DEDUCTIBLE_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.ADD_NON_DEDUCTIBLE_FLAG"/>
        <bm:field name="compulsory_rebate_rate" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPULSORY_REBATE_RATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMPULSORY_REBATE_RATE"/>
        <bm:field name="combustion_rebate_rate" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMBUSTION_REBATE_RATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMBUSTION_REBATE_RATE"/>
        <bm:field name="compulsory_rebate" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPULSORY_REBATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMPULSORY_REBATE"/>
        <bm:field name="combustion_rebate" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMBUSTION_REBATE" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMBUSTION_REBATE"/>
        <bm:field name="insure_place" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURE_PLACE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURE_PLACE"/>
        <bm:field name="first_beneficiary" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIRST_BENEFICIARY" prompt="INS_PRJ_INS_POLICY_NEW_LV.FIRST_BENEFICIARY"/>
        <bm:field name="first_beneficiary_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIRST_BENEFICIARY_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.FIRST_BENEFICIARY_N"/>
        <bm:field name="insurance_party" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_PARTY" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_PARTY"/>
        <bm:field name="insurance_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_BP_CODE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_BP_CODE"/>
        <bm:field name="insurance_auto_fee" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INSURANCE_AUTO_FEE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_AUTO_FEE"/>
        <bm:field name="insurance_purchase_pattern" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_PURCHASE_PATTERN" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_PURCHASE_PATTERN"/>
        <bm:field name="insurance_purchase_pattern_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_PURCHASE_PATTERN_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_PURCHASE_PATTERN_N"/>
        <bm:field name="insurance_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_TYPE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_TYPE"/>
        <bm:field name="insurance_type_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_TYPE_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_TYPE_N"/>
        <bm:field name="insurance_bp_code_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_BP_CODE_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_BP_CODE_N"/>
        <bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_TENANT" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT"/>
        <bm:field name="bp_id_tenant_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_N"/>
        <bm:field name="engine_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENGINE_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.ENGINE_NUMBER"/>
        <bm:field name="serial_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SERIAL_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.SERIAL_NUMBER"/>
        <bm:field name="pattern" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PATTERN" prompt="INS_PRJ_INS_POLICY_NEW_LV.PATTERN"/>
        <bm:field name="specification" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIFICATION" prompt="INS_PRJ_INS_POLICY_NEW_LV.SPECIFICATION"/>
        <bm:field name="contract_lease_item_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_LEASE_ITEM_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.CONTRACT_LEASE_ITEM_ID"/>
        <bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION" prompt="INS_PRJ_INS_POLICY_NEW_LV.DIVISION"/>
        <bm:field name="lessor_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LESSOR_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.LESSOR_ID"/>
        <bm:field name="lessor_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LESSOR_ID_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.LESSOR_ID_N"/>
        <bm:field name="lessor_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LESSOR_NAME" prompt="INS_PRJ_INS_POLICY_NEW_LV.LESSOR_NAME"/>
        <bm:field name="lease_times" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LEASE_TIMES" prompt="INS_PRJ_INS_POLICY_NEW_LV.LEASE_TIMES"/>
        <!--  <bm:field name="insurance_fee" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INSURANCE_FEE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_FEE"/> -->
        <bm:field name="bp_id_insure" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_INSURE" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_INSURE"/>
        <bm:field name="bp_id_insure_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_INSURE_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_INSURE_N"/>
        <bm:field name="bp_id_machine" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_MACHINE" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_MACHINE"/>
        <bm:field name="bp_id_machine_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_MACHINE_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_MACHINE_N"/>
        <bm:field name="bp_id_machine_prn" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_MACHINE_PRN" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_MACHINE_PRN"/>
        <bm:field name="bp_id_tenant_ci_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_CI_NAME" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_CI_NAME"/>
        <bm:field name="bp_id_tenant_ci_phone" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_CI_PHONE" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_CI_PHONE"/>
        <bm:field name="bp_id_tenant_phone" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_PHONE" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_PHONE"/>
        <bm:field name="bp_id_tenant_address" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_ADDRESS" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_ADDRESS"/>
        <bm:field name="zipcode" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ZIPCODE" prompt="INS_PRJ_INS_POLICY_NEW_LV.ZIPCODE"/>
        <bm:field name="bp_id_tenant_id_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_ID_NO" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_TENANT_ID_NO"/>
        <bm:field name="insure_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURE_TYPE" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURE_TYPE"/>
        <bm:field name="machine_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MACHINE_NUMBER" prompt="INS_PRJ_INS_POLICY_NEW_LV.MACHINE_NUMBER"/>
        <bm:field name="bp_id_vender_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_VENDER_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.BP_ID_VENDER_N"/>
        <bm:field name="manufacturer_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MANUFACTURER_NAME" prompt="INS_PRJ_INS_POLICY_NEW_LV.MANUFACTURER_NAME"/>
        <bm:field name="policy_holder" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POLICY_HOLDER" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_HOLDER"/>
        <bm:field name="policy_holder_add" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POLICY_HOLDER_ADD" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_HOLDER_ADD"/>
        <bm:field name="policy_holder_call" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POLICY_HOLDER_CALL" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_HOLDER_CALL"/>
        <bm:field name="policy_holder_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POLICY_HOLDER_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.POLICY_HOLDER_ID"/>
        <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMPANY_ID"/>
        <bm:field name="company_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_ID_N" prompt="INS_PRJ_INS_POLICY_NEW_LV.COMPANY_ID_N"/>
        <bm:field name="lease_item_amount" expression="to_char(nvl(t1.lease_item_amount, 0), &apos;FM999,999,999,990.00&apos;)" physicalName="LEASE_ITEM_AMOUNT" prompt="INS_PRJ_INS_POLICY_NEW_LV.LEASE_ITEM_AMOUNT"/>
        <bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY" prompt="INS_PRJ_INS_POLICY_NEW_LV.QUANTITY"/>
        <bm:field name="full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FULL_NAME" prompt="INS_PRJ_INS_POLICY_NEW_LV.FULL_NAME"/>
        <bm:field name="insurance_amount_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_AMOUNT_FLAG" prompt="INS_PRJ_INS_POLICY_NEW_LV.INSURANCE_AMOUNT_FLAG"/>
        <bm:field name="insurance_fee" expression="to_char(nvl(t1.insurance_fee, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="price" expression="to_char(nvl(t1.price, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="single_price" expression="to_char(nvl(t1.single_price, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="cus_pay_insurance_amount" expression="to_char(nvl(t1.cus_pay_insurance_amount, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="cusfl_pay_insurance_amount" expression="to_char(nvl(t1.cusfl_pay_insurance_amount, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="cuntom_pay_insurance_amount" expression="to_char(nvl(t1.cuntom_pay_insurance_amount, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="insurance_rate" expression="to_char(nvl(t1.insurance_rate*100, 0), &apos;FM999,999,999,990.000&apos;)|| &apos;% &apos;"/>
        <bm:field name="insurance_fee_payable" expression="to_char(nvl(t1.insurance_fee_payable, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="insurance_fee_third_party" expression="to_char(nvl(t1.insurance_fee_third_party, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="insurance_fee_financing" expression="to_char(nvl(t1.insurance_fee_financing, 0), &apos;FM999,999,999,990.00&apos;)"/>
        <bm:field name="insurance_term" expression="to_char(nvl(t1.insurance_term, 0), &apos;FM999,999,999,990.00&apos;) "/>
        <bm:field name="branch_company_n"/>
        <bm:field name="organization_code"/>
        <bm:field name="branch_province_id_n"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="project_id" queryOperator="="/>
        <bm:query-field field="policy_id" queryOperator="="/>
        <bm:query-field field="quotation_id" queryOperator="="/>
    </bm:query-fields>
</bm:model>
