<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="report_name" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="check_company_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="check_user_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="check_role_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="check_date" datatype="java.util.Date" input="true" output="false"/>
                <bm:parameter name="check_period" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="control_id" dataType="java.lang.Long" input="true" output="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    RPT_REPORT_CONTROL_PKG.CHECKIN_RPT
                    (
                        p_report_name=>${@report_name},
                        p_check_company_id=>${@check_company_id},
                        p_check_user_id=>${@check_user_id},
                        p_check_role_id=>${@check_role_id},
                        p_check_date  =>to_date(${@check_date},'yyyy-mm-dd'),
                        p_check_period =>${@check_period},
                        p_user_id=>${/session/@user_id},
                        p_control_id=>${@control_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
