<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2013-12-10 下午02:40:38  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="insurance_date_from" input="true"/>
                <bm:parameter name="period_name" dataType="java.lang.String" input="false" output="true" outputPath="@period_name"/>
                <bm:parameter name="period_year" dataType="java.lang.String" input="false" output="true" outputPath="@period_year"/>
                <bm:parameter name="period_num" dataType="java.lang.String" input="false" output="true" outputPath="@period_num"/>
                <bm:parameter name="internal_period_num" dataType="java.lang.String" input="false" output="true" outputPath="@internal_period_num"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
            	begin
            		gld_common_pkg.get_period_name(p_company_id          =>${/session/@company_id},
						                                p_je_company_id      =>${@je_company_id},
						                                p_date               =>to_date(${@insurance_date_from},'yyyy-mm-dd'),
						                                p_period_name        =>${@period_name},
						                                p_period_year        =>${@period_year},
						                                p_period_num         =>${@period_num},
						                                p_internal_period_num =>${@internal_period_num});
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
