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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: huangtianyang
$Date: 2018/6/29 下午6:04
$Revision: 1.0
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure/>
<a:view template="default" package="leaf.ui.std">
<script src="${/request/@context_path}/javascripts/hls-all.js" type="text/javascript"/>
<script src="${/request/@context_path}/javascripts/hlsDataSource.js" type="text/javascript"/>
<script src="${/request/@context_path}/javascripts/hapGrid.js" type="text/javascript"/>
<script src="${/request/@context_path}/javascripts/jquery.mloading.js" type="text/javascript"/>
<script src="${/request/@context_path}/javascripts/hls-component.js" type="text/javascript"/>
<script src="${/request/@context_path}/javascripts/hls-component-grid.js" type="text/javascript"/>
<script src="${/request/@context_path}/leafresource/hls/beyondChart/assets/js/bootstrap.min.js"></script>
<link href="${/request/@context_path}/css/hls-component.css" rel="stylesheet" type="text/css"/>
<link href="${/request/@context_path}/css/jquery.mloading.css" type="text/css"/>
<link href="${/request/@context_path}/css/jquery.mloading.css" type="text/css"/>
<link href="${/request/@context_path}/lib/kendoui/styles/kendo.bootstrap.min.css" rel="stylesheet"
type="text/css"/>
<a:link id="lon103w_hls_bp_master_funds_lv_query" model="lon.lon100w.hls_bp_master_funds_lv"
modelaction="query"/>
<div></div>
<script type="text/javascript"></script>
<a:dataSets/>
<style>
html,body{
height: 360px;
width: 570px;
padding: 0;
}
</style>
<script type="text/javascript"><![CDATA[
function lon103w_time(rowdata, rowIndex) {
var creationTime = rowdata.cdate.substring(0, 10);
return creationTime;
}
function lon103w_collect(rowdata, rowIndex) {
if (rowdata.collectFlag == 'Y') {
return "<img id='" + rowdata.bpId + "' onclick='cara(" + rowdata.bpId + ")' style='cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;' src='${/requset/@context_path}/leafresource/images/BP/light1.png' alt='png'/>";
} else {
return "<img id='" + rowdata.bpId + "' onclick='cara(" + rowdata.bpId + ")' style='cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;' src='${/requset/@context_path}/leafresource/images/BP/unLight1.png' alt='png'/>";
}
}
function lon103w_edit(rowdata, rowIndex) {
return '<img onclick="lon100wSelectFunciton(\'' + rowdata.bp_name + '\')" style="cursor:pointer;width:15px;height:15px;display:inline-block;margin:0px;" src="${/request/@context_path}/images/lon/modify.png" alt="png"/>';
}
var lon103wSource = new hlsDataSource();
lon103wSource.setting({
"pageSize": "5",
"transport": {
"read": {
"contentType": "application/json; charset=utf-8",
"type": "GET",
"url": $('lon103w_hls_bp_master_funds_lv_query').getUrl()+'?ORDER_FIELD=creation_date&ORDER_TYPE=desc'
}
}
});
lon103wSource.read();
]]></script>
<div class="hls-pagging-grid" style="width:570px;height:360px;margin-top:0;float:left;">
<div id="lon103w-title" class="grid-title global-font-size13">
<img src="${/request/@context_path}/images/lon/new.png"/>
<span style="padding-left:8px;">最新添加</span>
</div>
<div id="lon103w" class="grid-body">
</div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
lon103wSource.fetch(function (datas) {
lon103w = new HlsRollTable();
var options = {
"pageSize": "5",
"titleStyle": "border-bottom:5px solid rgb(255,206,85);height:50px;line-height:50px;",
"id": "lon103w",
"filterable": true,
"titleImg": "${/request/context_path}/images/lon/new.png",
"columns": [
{
"field": "cdate",
"template": lon103w_time,
"title": "添加日期",
"filterable": true
},
{
"field": "credit_bp_id_n",
"title": "授信机构名称",
"filterable": true
},
{
"field": "credit_cate",
"title": "授信机构类型",
"filterable": true
},
{
"field": "",
"template": lon103w_edit,
"title": "编辑",
"filterable": true
}
],
"title": "最新添加"
};
options.hlsDataSource = datas;
lon103w.dataSource = this;
options.dataSource = this;
options.gridSelector = "#lon103w";
options.pageControlSelector = "#lon103w_grid_foot";
options.nextImgEnablePath = "${/requset/@context_path}/images/lon/next.png";
options.prevImgEnablePath = "${/requset/@context_path}/images/lon/lastCan.png";
options.nextImgUnenablePath = "${/requset/@context_path}/images/lon/nextNot.png";
options.prevImgUnenablePath = "${/requset/@context_path}/images/lon/last.png";
lon103w._init(options);
});
</script>
<a:screenBody style="display:none;"/>
</a:view>
</a:screen>