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
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: hty
$Date: 2018/6/5 16:39
$Revision: 1.0
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure/>
<a:view template="default" package="leaf.ui.std">
<link href="${/request/@context_path}/leafresource/hls/default/hls-all.css" rel="stylesheet" type="text/css"/>
<link href="${/request/@context_path}/leafresource/hls/beyondChart/assets/css/beyond.min.css" rel="stylesheet"/>
<link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-11.css" rel="stylesheet"
type="text/css"/>
<link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-task.css" rel="stylesheet"
type="text/css"/>
<link href="${/request/@context_path}/lib/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet"
type="text/css"/>
<link href="${/request/@context_path}/leafresource/hls/beyondChart/assets/css/beyond.min.css" rel="stylesheet"/>
<link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-user.css" rel="stylesheet"
type="text/css"/>
<style>
html, body {
width: 270px;
height: 70px;
margin: 0;
padding: 0;
}
</style>
<div></div>
<script></script>
<a:dataSets></a:dataSets>
<div class="hls-block-x1 hls-block-y1 hls-float-left hls-mutilblock-bg">
<div class="hls-block-y1 hls-float-left hls-11-circle-common row-user-left"
style="background-image: url('${/request/@context_path}/leafresource/images/MAIN/common-person.png')">
<div id="row-user-left-circle" class="row-area-left-circle">
</div>
</div>
<div class="row-area-right hls-block-y1">
<div class="row-area-right-content">
<span class="row-area-right-number row-user-right-number"
id="userName">${Session.description!}</span>
<div class="row-area-right-msg">${Session.positionName!}</div>
</div>
<div class="row-area-right-content-image row-user-right-content-image">
<i class="fa fa-phone"></i>
</div>
</div>
</div>
<script><![CDATA[
(function () {
Leaf.request({
url: "${/request/@context_path}/autocrud/sys.sys_user/query",
para: {},
scope: this,
success: function (res) {
if (res.success) {
var userName = '';
res.result.record.forEach(function (value) {
if (value.user_id == ${/session/@user_id}) {
userName = value.user_name;
}
});
document.getElementById('userName').innerHTML = userName;
}
}
})
})();
]]></script>
<a:screenBody style="display:none;"/>
</a:view>
</a:screen>