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
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niujiaqing1265 $
$Date: 2010/11/18 08:23:24 $
$Revision: 1.2 $
$Purpose: 页面注册
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure/>
<a:view>
<a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
<script type="text/javascript"><![CDATA[
function queryService(){
$('sys_service_result_ds').query();
}
function sys_8040_grid_add(){
$('sys_8040_sys_service_grid').showEditorByRecord($('sys_service_result_ds').create());
}
function sys_8040_grid_clear(){
$('sys_8040_sys_service_grid').clear();
}
function sys_8040_grid_remove(){
$('sys_8040_sys_service_grid').remove();
}
function sys_8040_grid_submit() {
var result_ds = $('sys_service_result_ds');
if (result_ds.validate()) {
result_ds.submit();
}
}
function sys_8040_next(){
history.go(1);
}
function sys_8040_back(){
history.go(-1);
}
function sys_8040_quit(){
location.href = $('sys_service_welcome_link').getUrl();
}
]]></script>
<a:dataSets>
<a:dataSet id="sys_service_query_ds" autoCreate="true" model="sys.sys_service"/>
<a:dataSet id="sys_service_result_ds" autoQuery="true" fetchAll="false" model="sys.sys_service" pageSize="15" queryDataSet="sys_service_query_ds" queryUrl="${/request/@context_path}/autocrud/sys.sys_service/query?ORDER_FIELD=service_name" selectable="true">
<a:fields>
<a:field name="service_name" required="true"/>
<a:field name="is_access_checked" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
<a:field name="is_login_required" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
<a:field name="is_entry_page" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
<a:field name="is_system_access" checkedValue="1" defaultValue="0" uncheckedValue="0"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="sys_8040_back" text="HLS.BACK"/>
<a:gridButton click="sys_8040_next" text="HLS.FORWARD"/>
<a:gridButton click="sys_8040_quit" text="HLS.EXIT"/>
<a:gridButton click="sys_8040_grid_add" text="HLS.NEW"/>
<a:gridButton click="sys_8040_grid_remove" text="HLS.REMOVE"/>
<a:gridButton click="sys_8040_grid_clear" text="HLS.CLEAR"/>
<a:gridButton click="sys_8040_grid_submit" text="HLS.SAVE"/>
<a:gridButton click="queryService" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form column="2" title="HAP_QUERY">
<a:textField name="service_name" bindTarget="sys_service_query_ds" width="300">
<a:events>
<a:event name="enterdown" handler="queryService"/>
</a:events>
</a:textField>
<a:textField name="title" bindTarget="sys_service_query_ds" width="300">
<a:events>
<a:event name="enterdown" handler="queryService"/>
</a:events>
</a:textField>
</a:form>
<a:grid id="sys_8040_sys_service_grid" bindTarget="sys_service_result_ds" marginHeight="180" marginWidth="30" navBar="true">
<a:columns>
<a:column name="service_name" editor="sys_service_result_grid_tf" width="350"/>
<a:column name="title" editor="sys_service_result_grid_tf" width="280"/>
<a:column name="is_access_checked" editor="sys_service_result_grid_ckb" width="70"/>
<a:column name="is_login_required" editor="sys_service_result_grid_ckb" width="70"/>
<a:column name="is_system_access" editor="sys_service_result_grid_ckb" width="70"/>
</a:columns>
<a:editors>
<a:textField id="sys_service_result_grid_tf"/>
<a:checkBox id="sys_service_result_grid_ckb"/>
</a:editors>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>