-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (64 loc) · 1.88 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
<title>Gerdau - Auto Atendimento</title>
<link rel="stylesheet" type="text/css" href="styles/styles.css">
<script id='sap-ui-bootstrap'
src='resources/sap-ui-core.js'
data-sap-ui-theme='sap_bluecrystal'
data-sap-ui-libs='sap.m,sap.ui.unified'
data-sap-ui-compatVersion='edge'
data-sap-ui-bindingSyntax='complex'
data-sap-ui-resourceroots='{
"com.gerdau.logistics.autoatendimento": "./"
}' data-sap-ui-preload='async'>
</script>
<script src="util/moment.min.js"></script>
<script src="util/moment-timezone-with-data.js"></script>
<script>
sap.ui.getCore().attachInit(function () {
sap.ui.require([
"sap/ui/unified/Shell",
"sap/ui/core/ComponentContainer"
], function (Shell, ComponentContainer) {
// initialize the UI component
var shell = new Shell({
id: "fioriShell",
headerHiding: true,
headerVisible: false,
content: new ComponentContainer({
id: "shellContent",
height: "100%",
name: "com.gerdau.logistics.autoatendimento"
})
}).placeAt("content");
/*
jQuery.ajax({
url: "../services/getSessionInfo.xsjs",
async: true,
method: "GET",
dataType: 'json',
success: function (data) {
window.userSession = data.username;
//TODO: RETIRAR APÓS DEBUG
//if (data.username.toLowerCase() === "raphael") {
// var token = "584791F2A73D2BBCE1000000C0A80122";
// document.cookie = "xsDebugToken=" + token + ";path=/";
//}
shell.getUser().setUsername(data.username);
},
error: function () {
shell.getUser().setUsername("(username)");
},
});
*/
});
})
;
</script>
</head>
<body class='sapUiBody'>
<div id='content'></div>
</body>
</html>