sys_notify_edit_update.lsc 1.77 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 26 27 28 29 30 31 32 33 34 35 36 37
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyi2652 $
    $Date: 2010/11/16 08:22:48 $
    $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/@_isdelete">
                <p:case value="delete">
                    <a:batch-apply sourcePath="@current_parameter/recipients">
                        <a:model-delete model="sys.SYS2020.sys_notify_recipient"/>
                    </a:batch-apply>
                </p:case>
                <p:case>
                    <p:switch test="@current_parameter/@_status">
                        <p:case value="update">
                            <a:model-batch-update model="sys.SYS2020.sys_notify_recipient" sourcePath="@current_parameter/recipients"/>
                            <a:model-update model="db.sys_notify_pkg.update_notify"/>
                        </p:case>
                        <p:case value="insert">
                            <a:model-batch-update model="sys.SYS2020.sys_notify_recipient" sourcePath="@current_parameter/recipients"/>
                        </p:case>
                        <p:case value="delete">
                            <a:batch-apply sourcePath="@current_parameter/recipients">
                                <a:model-delete model="sys.SYS2020.sys_notify_recipient"/>
                            </a:batch-apply>
                        </p:case>
                    </p:switch>
                </p:case>
            </p:switch>
        </a:batch-apply>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>