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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangyi2652 $
$Date: 2010/11/26 05:56:20 $
$Revision: 1.2 $
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure>
<a:model-query autoCount="false" defaultWhereClause="event_name=${/parameter/@event_name}" fetchAll="false" model="sys.evt_event" rootPath="evt_notify"/>
</a:init-procedure>
<a:view>
<script type="text/javascript"><![CDATA[
function onNofityValuesUpdate(ds,record,name,value){
record.set('event_name', '${/parameter/@event_name}');
}
function onNotifyUpdateSuccess(dateSet, datas, results){
Leaf.showMessage('${l:PROMPT_MESSAGE}','${l:SUCCESSFUL_OPERATION}');
}
]]></script>
<a:dataSets>
<a:dataSet id="evt_event_notify_filedset_ds" model="sys.evt_event">
<a:datas dataSource="/model/evt_notify"/>
<a:fields>
<a:field name="event_name" readOnly="true"/>
<a:field name="event_desc" readOnly="true"/>
</a:fields>
</a:dataSet>
<a:dataSet id="evt_event_notify_result_ds" autoCount="true" autoQuery="true" fetchAll="false" model="sys.EVT2010.evt_event_notify" queryUrl="${/request/@context_path}/autocrud/sys.EVT2010.evt_event_notify/query?ORDER_FIELD=notify_code&event_name=${/parameter/@event_name}" selectable="true">
<a:fields>
<a:field name="notify_code" lovGridHeight="340" lovHeight="500" lovUrl="${/request/@context_path}/modules/sys/EVT2010/evt_event_notify_lov.lview" lovWidth="550" required="true" title="HAP_NEW">
<a:mapping>
<a:map from="description" to="description"/>
<a:map from="notify_code" to="notify_code"/>
<a:map from="notify_id" to="notify_id"/>
</a:mapping>
</a:field>
<a:field name="notify_id"/>
</a:fields>
<a:events>
<a:event name="update" handler="onNofityValuesUpdate"/>
<a:event name="submitsuccess" handler="onNotifyUpdateSuccess"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:fieldSet column="2" title="EVT_EVENT.INFO">
<a:textField name="event_name" bindTarget="evt_event_notify_filedset_ds"/>
<a:textField name="event_desc" bindTarget="evt_event_notify_filedset_ds"/>
</a:fieldSet>
<a:grid id="notify_grid" bindTarget="evt_event_notify_result_ds" height="300" navBar="false" width="540">
<a:toolBar>
<a:button type="add"/>
<a:button type="delete"/>
<a:button type="save"/>
</a:toolBar>
<a:columns>
<a:column name="notify_code" align="center" editor="lov" prompt="SYS_MESSAGES.MESSAGE_CODE" sortable="true" width="300"/>
<a:column name="description" prompt="SYS_NOTIFY.NOTIFY_DESC" width="200"/>
</a:columns>
<a:editors>
<a:lov id="lov"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>