Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e-share
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
e-share
Commits
4de5d4cc
Commit
4de5d4cc
authored
11 years ago
by
wactbprot
Browse files
Options
Downloads
Patches
Plain Diff
schedule --> events
parent
c1a6b14b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-5
5 additions, 5 deletions
README.md
views/events/map.js
+2
-3
2 additions, 3 deletions
views/events/map.js
views/lib/share.js
+1
-1
1 addition, 1 deletion
views/lib/share.js
with
8 additions
and
9 deletions
README.md
+
5
−
5
View file @
4de5d4cc
...
@@ -142,15 +142,15 @@ erhält man über die url:
...
@@ -142,15 +142,15 @@ erhält man über die url:
.../vaclab_db/_design/e-share/_view/reduceUnit?group=true
.../vaclab_db/_design/e-share/_view/reduceUnit?group=true
Die view __
schedule
__
Die view __
events
__
...vaclab_db/_design/e-share/_view/
schedule
...vaclab_db/_design/e-share/_view/
events
erzeugt auf der Value-Seite Objecte der Form:
erzeugt auf der Value-Seite Objecte der Form:
<pre>
<pre>
{"id":"910fd907311a80c24cee9ad18a07bf58",
{"id":"910fd907311a80c24cee9ad18a07bf58",
"title":"
<b>
Kunde@
Standard:
</b>
Sign",
"title":"Standard:
Kunde
Sign",
"start":"2013-08-29 02:00",
"start":"2013-08-29 02:00",
"end":"2013-09-05 02:00"}
"end":"2013-09-05 02:00"}
</pre>
</pre>
...
@@ -158,11 +158,11 @@ erzeugt auf der Value-Seite Objecte der Form:
...
@@ -158,11 +158,11 @@ erzeugt auf der Value-Seite Objecte der Form:
aus den Angaben unter Presettings.Date (Type:"schedule") in den
aus den Angaben unter Presettings.Date (Type:"schedule") in den
Kalibrierdokumenten. Auf der Key-Seite wird ein Array bestehend aus
Kalibrierdokumenten. Auf der Key-Seite wird ein Array bestehend aus
[ Standard,
Date
]
Date
emited. Die Auswahl kann z.B. über
emited. Die Auswahl kann z.B. über
.../
schedule
?startkey=
["CE3",
"2013-08-29
02:00"]
&endkey=
["CE3",
"2013-10-01 02:00"
]
.../
events
?startkey="2013-08-29
"
&endkey="2013-10-01 02:00"
eingeschränkt werden.
eingeschränkt werden.
...
...
This diff is collapsed.
Click to expand it.
views/
schedule
/map.js
→
views/
events
/map.js
+
2
−
3
View file @
4de5d4cc
...
@@ -26,11 +26,10 @@ function(doc) {
...
@@ -26,11 +26,10 @@ function(doc) {
dateObj
.
Value
&&
dateObj
.
Value
&&
dateObj
.
Value
!=
""
){
dateObj
.
Value
!=
""
){
var
keyObj
=
[
dc
.
Standard
,
dateObj
.
Value
],
var
keyObj
=
dateObj
.
Value
.
split
(
"
"
)[
0
],
startDate
=
share
.
vlDateString
(
dateObj
.
Value
),
startDate
=
share
.
vlDateString
(
dateObj
.
Value
),
valObj
=
{
id
:
doc
.
_id
,
valObj
=
{
id
:
doc
.
_id
,
title
:
"
<b>
"
+
customer
+
"
@
"
+
dc
.
Standard
+
"
:</b>
"
+
title
:
dc
.
Standard
+
"
:
"
+
customer
+
"
"
+
dc
.
Sign
,
dc
.
Sign
,
start
:
startDate
start
:
startDate
};
};
if
(
dateObj
.
Duration
){
if
(
dateObj
.
Duration
){
...
...
This diff is collapsed.
Click to expand it.
views/lib/share.js
+
1
−
1
View file @
4de5d4cc
...
@@ -20,7 +20,7 @@ var addDays = function(duration, dstr){
...
@@ -20,7 +20,7 @@ var addDays = function(duration, dstr){
var
dt
=
dstr
?
new
Date
(
dstr
)
:
new
Date
(),
var
dt
=
dstr
?
new
Date
(
dstr
)
:
new
Date
(),
n
=
typeof
duration
==
"
number
"
?
duration
:
parseInt
(
duration
,
10
);
n
=
typeof
duration
==
"
number
"
?
duration
:
parseInt
(
duration
,
10
);
dt
.
setDate
(
dt
.
getDate
()
+
n
);
dt
.
setDate
(
dt
.
getDate
()
+
(
n
-
1
)
);
return
vlDateString
(
dt
);
return
vlDateString
(
dt
);
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment