Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
b8c33ebb
Commit
b8c33ebb
authored
Jul 07, 2016
by
HERBERT Ryan
Browse files
export.js run and software end report
Moved software and parameters to the end of the sample log
parent
8b6e23db
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/export.js
View file @
b8c33ebb
...
...
@@ -94,6 +94,7 @@ Report.prototype = {
}
self
.
sampleLog
()
.
softwareInfo
(
self
.
m
.
t
)
self
.
m
.
resize
()
self
.
m
.
resume
()
...
...
@@ -220,8 +221,6 @@ Report.prototype = {
var
content
=
[
{
'
label
'
:
"
Filename:
"
,
value
:
this
.
m
.
samples
.
original_names
[
time
]},
{
'
label
'
:
"
Sample date:
"
,
value
:
this
.
m
.
getSampleTime
(
time
)},
{
'
label
'
:
"
Software used:
"
,
value
:
this
.
m
.
getSoftVersionTime
(
time
)},
{
'
label
'
:
"
Parameters:
"
,
value
:
this
.
m
.
getCommandTime
(
time
)},
{
'
label
'
:
"
Analysis date:
"
,
value
:
this
.
m
.
getTimestampTime
(
time
)}
]
...
...
@@ -243,6 +242,25 @@ Report.prototype = {
return
this
},
softwareInfo
:
function
(
time
)
{
var
sinfo
=
this
.
container
(
"
Software info(
"
+
this
.
m
.
getStrTime
(
time
)
+
"
)
"
);
var
div
=
$
(
'
<div/>
'
,
{
'
class
'
:
'
flex
'
}).
appendTo
(
sinfo
);
var
content
=
[
{
'
label
'
:
"
Software used:
"
,
value
:
this
.
m
.
getSoftVersionTime
(
time
)},
{
'
label
'
:
"
Parameters:
"
,
value
:
this
.
m
.
getCommandTime
(
time
)}
];
var
table
=
$
(
'
<table/>
'
,
{
'
class
'
:
'
info-table
'
}).
appendTo
(
div
);
for
(
var
key
in
content
)
{
var
v
=
content
[
key
];
var
row
=
$
(
'
<tr/>
'
).
appendTo
(
table
);
$
(
'
<td/>
'
,
{
'
class
'
:
'
label
'
,
'
text
'
:
v
.
label
}).
appendTo
(
row
);
$
(
'
<td/>
'
,
{
'
text
'
:
v
.
value
}).
appendTo
(
row
);
}
return
this
;
},
svg_graph
:
function
(
norm
)
{
if
(
typeof
norm
==
"
undefined
"
)
norm
=
-
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment