hls_fin_doc_quotation.lsc 1.46 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true">
    <a:init-procedure>
        <batch-apply sourcepath="/parameter">
            <p:switch test="@current_parameter/@_status">
                <p:case value="insert">
                    <a:model-execute model="hls.HLS500.hls_fin_calc_header_id" trace="true"/>
                    <a:model-insert model="prj.PRJ501.prj_quotation_save" trace="true"/>
                    <p:set field="@current_parameter/@from_doc_pk" value="${/parameter/@quotation_id}"/>
                    <a:model-update model="hls.HLS500.hls_fin_calc_quotation_transfer" trace="true"/>
                </p:case>
                <p:case value="update">
                    <a:model-execute model="hls.HLS500.hls_fin_calc_header_id" trace="true"/>
                    <a:model-update model="prj.PRJ501.prj_quotation_save" trace="true"/>
                    <a:model-update model="hls.HLS500.hls_fin_calc_quotation_transfer" trace="true"/>
                </p:case>
                <p:case value="execute">
                    <a:model-update model="prj.PRJ501.prj_quotation_save" trace="true"/>
                    <a:model-update model="hls.HLS500.hls_fin_calc_quotation_transfer" trace="true"/>
                </p:case>
            </p:switch>
        </batch-apply>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>