<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: gaoyang $Date: 2014-3-10 上午10:18:20 $Revision: 1.0 $Purpose: --> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_DOC_LAYOUT_CONFIG" defaultOrderBy="t1.display_flag"> <bm:fields> <bm:field name="config_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONFIG_ID" prompt="HLS_DOC_LAYOUT_CONFIG.CONFIG_ID"/> <bm:field name="layout_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LAYOUT_CODE" prompt="HLS_DOC_LAYOUT_CONFIG.LAYOUT_CODE"/> <bm:field name="tab_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TAB_CODE" prompt="HLS_DOC_LAYOUT_CONFIG.TAB_CODE"/> <bm:field name="column_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COLUMN_NAME" prompt="HLS_DOC_LAYOUT_CONFIG.COLUMN_NAME"/> <bm:field name="data_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DATA_TYPE" prompt="HLS_DOC_LAYOUT_CONFIG.DATA_TYPE"/> <bm:field name="system_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SYSTEM_FLAG" prompt="HLS_DOC_LAYOUT_CONFIG.SYSTEM_FLAG"/> <bm:field name="key_field_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="KEY_FIELD_FLAG" prompt="HLS_DOC_LAYOUT_CONFIG.KEY_FIELD_FLAG"/> <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HLS_DOC_LAYOUT_CONFIG.ENABLED_FLAG"/> <bm:field name="display_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISPLAY_FLAG" prompt="HLS_DOC_LAYOUT_CONFIG.DISPLAY_FLAG"/> <bm:field name="display_order" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DISPLAY_ORDER" prompt="HLS_DOC_LAYOUT_CONFIG.DISPLAY_ORDER"/> <bm:field name="prompt" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROMPT" prompt="HLS_DOC_LAYOUT_CONFIG.PROMPT"/> <bm:field name="input_mode" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INPUT_MODE" prompt="HLS_DOC_LAYOUT_CONFIG.INPUT_MODE"/> <bm:field name="validation_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALIDATION_TYPE" prompt="HLS_DOC_LAYOUT_CONFIG.VALIDATION_TYPE"/> <bm:field name="validation_sql" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALIDATION_SQL" prompt="HLS_DOC_LAYOUT_CONFIG.VALIDATION_SQL"/> <bm:field name="lov_return_vcode" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOV_RETURN_VCODE" prompt="HLS_DOC_LAYOUT_CONFIG.LOV_RETURN_VCODE"/> <bm:field name="precision" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRECISION" prompt="HLS_DOC_LAYOUT_CONFIG.PRECISION"/> <bm:field name="zero_fill" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ZERO_FILL" prompt="HLS_DOC_LAYOUT_CONFIG.ZERO_FILL"/> <bm:field name="allow_format" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ALLOW_FORMAT" prompt="HLS_DOC_LAYOUT_CONFIG.ALLOW_FORMAT"/> <bm:field name="allow_decimal" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ALLOW_DECIMAL" prompt="HLS_DOC_LAYOUT_CONFIG.ALLOW_DECIMAL"/> <bm:field name="alignment" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ALIGNMENT" prompt="HLS_DOC_LAYOUT_CONFIG.ALIGNMENT"/> <bm:field name="width" databaseType="NUMBER" datatype="java.lang.Long" physicalName="WIDTH" prompt="HLS_DOC_LAYOUT_CONFIG.WIDTH"/> <bm:field name="percent" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERCENT" prompt="HLS_DOC_LAYOUT_CONFIG.PERCENT"/> <bm:field name="default_value" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEFAULT_VALUE" prompt="HLS_DOC_LAYOUT_CONFIG.DEFAULT_VALUE"/> <bm:field name="upper_limit" databaseType="NUMBER" datatype="java.lang.Long" physicalName="UPPER_LIMIT" prompt="HLS_DOC_LAYOUT_CONFIG.UPPER_LIMIT"/> <bm:field name="lower_limit" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LOWER_LIMIT" prompt="HLS_DOC_LAYOUT_CONFIG.LOWER_LIMIT"/> <bm:field name="copy_from_parent_tab" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COPY_FROM_PARENT_TAB" prompt="HLS_DOC_LAYOUT_CONFIG.COPY_FROM_PARENT_TAB"/> <bm:field name="height" databaseType="NUMBER" datatype="java.lang.Long" physicalName="HEIGHT" prompt="HLS_DOC_LAYOUT_CONFIG.HEIGHT"/> <bm:field name="footerrenderer" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FOOTERRENDERER" prompt="HLS_DOC_LAYOUT_CONFIG.FOOTERRENDERER"/> <bm:field name="lov_cascade_para1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOV_CASCADE_PARA1" prompt="HLS_DOC_LAYOUT_CONFIG.LOV_CASCADE_PARA1"/> <bm:field name="lov_cascade_para2" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOV_CASCADE_PARA2" prompt="HLS_DOC_LAYOUT_CONFIG.LOV_CASCADE_PARA2"/> <bm:field name="lov_cascade_para3" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOV_CASCADE_PARA3" prompt="HLS_DOC_LAYOUT_CONFIG.LOV_CASCADE_PARA3"/> <bm:field name="field_javascript" databaseType="CLOB" datatype="java.sql.Clob" physicalName="FIELD_JAVASCRIPT" prompt="HLS_DOC_LAYOUT_CONFIG.FIELD_JAVASCRIPT"/> </bm:fields> <bm:features> <f:standard-who/> </bm:features> <bm:primary-key> <bm:pk-field name="config_id"/> </bm:primary-key> <bm:query-fields> <bm:query-field name="display_flag" queryOperator="="/> </bm:query-fields> <bm:data-filters> <bm:data-filter name="layout_code" enforceOperations="query" expression="t1.layout_code=${@layout_code}"/> <bm:data-filter name="tab_code" enforceOperations="query" expression="t1.tab_code=${@tab_code}"/> <bm:data-filter name="enabled_flag" enforceOperations="query" expression="t1.enabled_flag='Y'"/> </bm:data-filters> </bm:model>