sys_notify_insert.lsc 972 Bytes
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyi2652 $
    $Date: 2010/11/16 08:49:10 $
    $Revision: 1.1 $
    $Purpose: “事件消息模板维护” 新增时的控制文件
-->
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
    <a:init-procedure>
        <a:batch-apply sourcepath="/parameter">
            <p:switch test="@current_parameter/@_status">
                <p:case value="insert">
                    <a:model-insert model="sys.SYS2020.sys_notify"/>
                    <a:model-batch-update model="sys.SYS2020.sys_notify_recipient" sourcePath="@current_parameter/recipients"/>
                </p:case>
                <p:case value="delete">
                    <a:model-delete model="sys.SYS2020.sys_notify_recipient_del"/>
                </p:case>
            </p:switch>
        </a:batch-apply>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>