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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: ericyin
$Date: 2013-4-1 下午3:11:36
$Revision: 1.0
$Purpose: ABC分类定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure/>
<a:view template="default">
<a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
<script type="text/javascript"><![CDATA[
function queryFunction() {
$('hls_abc_class_result_ds').query();
}
function hls_021_back() {
history.go(-1);
}
function hls_021_next() {
history.go(1);
}
function hls_021_quit() {
location.href = $('sys_service_welcome_link').getUrl();
parent.shMenu('show');
}
function hls_021_grid_add() {
var grid=$('hls_abc_class_grid');
$('hls_abc_class_grid').showEditorByRecord($('hls_abc_class_result_ds').create());
}
function hls_021_grid_clear() {
$('hls_abc_class_grid').clear();
}
function hls_021_grid_remove() {
$('hls_abc_class_grid').remove();
}
function hls_021_grid_submit() {
$('hls_abc_class_result_ds').submit();
}
function abcClassDs_editorOnlyOnce(record, name){
if(record.isNew){
if(name=='abc_class')
{
return 'abcClassDs_code_tf';
}
else
{
return '';
}
}
}
function hls_021_submitsuccess(){
$('hls_abc_class_result_ds').query();
}
]]></script>
<a:dataSets>
<a:dataSet id="hls_abc_class_result_ds" autoQuery="true" model="hls.HLS021.hls_abc_class" selectable="true">
<a:fields>
<a:field name="abc_class" required="true"/>
<a:field name="description" required="true"/>
<a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
</a:fields>
</a:dataSet>
<a:events>
<a:event name="submitsuccess" handler="hls_021_submitsuccess"/>
</a:events>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar height="29">
<a:button click="hls_021_back" height="20" icon="${/request/@context_path}/images/back.png" iconAlign="left" text="HLS.BACK" width="50"/>
<a:separator style="margin-left:3px;"/>
<a:button click="hls_021_next" height="20" icon="${/request/@context_path}/images/forward.png" iconAlign="left" text="HLS.FORWARD" width="50"/>
<a:separator style="margin-left:3px;"/>
<a:button click="hls_021_quit" height="20" icon="${/request/@context_path}/images/quit.png" iconAlign="left" text="HLS.EXIT" width="50"/>
<a:separator style="margin-left:3px;"/>
<a:button click="hls_021_grid_add" height="20" icon="${/request/@context_path}/images/add.png" iconAlign="left" text="HLS.NEW" width="50"/>
<a:separator style="margin-left:3px;"/>
<!--
<a:button click="hls_101_grid_remove" height="20" icon="${/request/@context_path}/images/remove.png" iconAlign="left" text="HLS_REMOVE" width="50"/>
<a:separator style="margin-left:3px;"/>
-->
<a:button click="hls_021_grid_clear" height="20" icon="${/request/@context_path}/images/clear.png" iconAlign="left" text="HLS.CLEAR" width="50"/>
<a:separator style="margin-left:3px;"/>
<a:button click="hls_021_grid_submit" height="20" icon="${/request/@context_path}/images/save.png" iconAlign="left" text="HLS.SAVE" width="50"/>
<a:separator style="margin-left:3px;"/>
<a:button click="queryFunction" height="20" icon="${/request/@context_path}/images/search.png" iconAlign="left" text="HLS.QUERY" width="50"/>
<a:separator style="margin-left:3px;"/>
</a:screenTopToolbar>
<a:grid id="hls_abc_class_grid" bindTarget="hls_abc_class_result_ds" marginHeight="80" marginWidth="30" navBar="true">
<a:columns>
<a:column name="abc_class" editorFunction="abcClassDs_editorOnlyOnce" width="100"/>
<a:column name="description" editor="abcClassDs_tf" width="200"/>
<a:column name="enabled_flag" editor="abcClassDs_chk" width="50"/>
</a:columns>
<a:editors>
<a:textField id="abcClassDs_code_tf" maxLength="1"/>
<a:textField id="abcClassDs_tf"/>
<a:checkBox id="abcClassDs_chk"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>