Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
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');
global
.
window
=
global
;
global
.
sessionStorage
=
{};
var
jIO
=
require
(
'
jio
'
);
var
ClearRoadBillingPeriodRegistration
=
require
(
"
clearroad
"
);
var
cr
=
new
ClearRoadBillingPeriodRegistration
(
);
var
clearroad
=
require
(
"
clearroad
"
);
var
i
=
0
;
var
cr
=
new
clearroad
.
ClearRoadBillingPeriodRegistration
(
"
testam
"
,
"
testam
"
);
console
.
log
(
"
init
"
);
cr
.
post
({
"
reference
"
:
"
Q421
"
,
...
...
@@ -33,13 +32,25 @@ cr.post({
return
cr
.
sync
();
}).
push
(
function
(){
console
.
info
(
"
Sync done
"
);
},
function
(
error
)
{
console
.
info
(
"
Error :
"
);
console
.
warn
(
error
.
stack
)
console
.
warn
(
error
);
}).
push
(
function
()
{
cr
=
new
clearroad
.
ClearRoadBillingPeriodRegistrationReport
(
"
testam
"
,
"
testam
"
,
100
);
return
cr
.
sync
();
}).
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
var
express
=
require
(
'
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