<?xml version="1.0" encoding="UTF-8"?>
<ns1:model xmlns:s="leaf.plugin.script" xmlns:ns1="http://www.leaf-framework.org/schema/bm" alias="t1" extend="rsc.RSC501.con_contract" extendMode="reference" needAccessControl="false">
    <ns1:fields>
        <ns1:field name="contract_id"/>
        <ns1:field name="project_id"/>
        <ns1:field name="business_type"/>
        <ns1:field name="data_class"/>
        <ns1:field name="bp_id_tenant"/>
        <ns1:field name="contract_status"/>
        <ns1:field name="contract_number" forDisplay="true" forQuery="true" prompt="HLS.CONTRACT_NUMBER"/>
        <ns1:field name="contract_name" forDisplay="true" forQuery="true" prompt="HLS.CONTRACT_NAME"/>
        <ns1:field name="project_name" forDisplay="true" forQuery="true" prompt="HLS.PROJECT_NAME"/>
        <ns1:field name="project_number" forDisplay="true" forQuery="true" prompt="HLS.PROJECT_NUMBER"/>
        <ns1:field name="currency"/>
        <ns1:field name="currency_desc"/>
    </ns1:fields>
    <ns1:features>
        <s:bm-script><![CDATA[
        	var cx = Packages.leaf.javascript.Context.getCurrentContext();
        	Packages.leaf.plugin.script.engine.ScriptImportor.defineExternScript(cx, this, $ctx.getData(), "aut_authority_bm_validate.js");
    	]]></s:bm-script>
    </ns1:features>
    <ns1:query-fields>
        <ns1:query-field field="contract_number" queryOperator="like"/>
        <ns1:query-field field="project_number" queryOperator="like"/>
        <ns1:query-field field="project_name" queryOperator="like"/>
        <ns1:query-field field="contract_name" queryOperator="like"/>
    </ns1:query-fields>
    <ns1:data-filters>
        <ns1:data-filter name="data_class" expression="t1.data_class=&apos;NORMAL&apos;"/>
        <ns1:data-filter name="contract_status" expression="t1.contract_status not in(&apos;CANCEL&apos;,&apos;PENDING&apos;,&apos;TERMINATE&apos;,&apos;ET&apos;)"/>
    </ns1:data-filters>
</ns1:model>
