Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
jio
Commits
9729722a
Commit
9729722a
authored
Mar 17, 2017
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test retrieval of report + use login/password
parent
4be88b8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
nodejs/server.js
nodejs/server.js
+19
-8
No files found.
nodejs/server.js
View file @
9729722a
...
@@ -18,11 +18,10 @@ global.StreamBuffers = require('stream-buffers');
...
@@ -18,11 +18,10 @@ global.StreamBuffers = require('stream-buffers');
global
.
window
=
global
;
global
.
window
=
global
;
global
.
sessionStorage
=
{};
global
.
sessionStorage
=
{};
var
jIO
=
require
(
'
jio
'
);
var
jIO
=
require
(
'
jio
'
);
var
ClearRoadBillingPeriodRegistration
=
require
(
"
clearroad
"
);
var
clearroad
=
require
(
"
clearroad
"
);
var
i
=
0
;
var
cr
=
new
ClearRoadBillingPeriodRegistration
(
);
var
cr
=
new
clearroad
.
ClearRoadBillingPeriodRegistration
(
"
testam
"
,
"
testam
"
);
console
.
log
(
"
init
"
);
console
.
log
(
"
init
"
);
cr
.
post
({
cr
.
post
({
"
reference
"
:
"
Q421
"
,
"
reference
"
:
"
Q421
"
,
...
@@ -33,13 +32,25 @@ cr.post({
...
@@ -33,13 +32,25 @@ cr.post({
return
cr
.
sync
();
return
cr
.
sync
();
}).
push
(
function
(){
}).
push
(
function
(){
console
.
info
(
"
Sync done
"
);
console
.
info
(
"
Sync done
"
);
},
function
(
error
)
{
}).
push
(
function
()
{
console
.
info
(
"
Error :
"
);
cr
=
new
clearroad
.
ClearRoadBillingPeriodRegistrationReport
(
"
testam
"
,
"
testam
"
,
100
);
console
.
warn
(
error
.
stack
)
return
cr
.
sync
();
console
.
warn
(
error
);
}).
push
(
function
(){
console
.
log
(
"
sync done && loading result...
"
)
return
cr
.
allDocs
()
}).
push
(
function
(
result
)
{
console
.
log
(
"
browsing results :
"
+
result
.
data
.
total_rows
);
for
(
i
=
0
;
i
<
result
.
data
.
total_rows
;
i
+=
1
)
{
console
.
log
(
"
Ref :
"
+
result
.
data
.
rows
[
i
].
value
.
reference
+
"
, state :
"
+
result
.
data
.
rows
[
i
].
value
.
state
+
"
, comment
"
+
result
.
data
.
rows
[
i
].
value
.
comment
);
}
console
.
log
(
"
Finished
"
);
}).
push
(
undefined
,
function
(
error
)
{
throw
error
;
});
});
// init project
// init project
var
express
=
require
(
'
express
'
);
var
express
=
require
(
'
express
'
);
var
app
=
express
();
var
app
=
express
();
...
...
Write
Preview
Markdown
is supported
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