<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2014-11-24 下午04:14:32  
    $Revision: 1.0  
    $Purpose: 保存
-->
<a:service xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
    <a:init-procedure>
        <a:model-insert model="cont.CON556.yonda_document_lend_record_hd"/>
        <a:batch-apply sourcepath="/parameter/line_records">
            <p:switch test="@current_parameter/@_status">
                <p:case value="insert">
                    <a:model-insert model="cont.CON556.yonda_document_lend_record_ln"/>
                </p:case>
                <p:case value="update">
                    <a:model-update model="cont.CON556.yonda_document_lend_record_ln"/>
                </p:case>
            </p:switch>
        </a:batch-apply>
        <a:model-execute model="cont.CON556.yonda_document_lend_record_hd"/>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>
