Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
78f18ed6
Commit
78f18ed6
authored
Jul 09, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update gantt widget to support capacity project
reapply
3e1b8dcd
parent
727ab731
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
dream/platform/src2/dream/Output_viewJobGantt.js
dream/platform/src2/dream/Output_viewJobGantt.js
+16
-7
No files found.
dream/platform/src2/dream/Output_viewJobGantt.js
View file @
78f18ed6
...
...
@@ -54,7 +54,10 @@
// station is visible
return
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.QueueManagedJob
"
)
&&
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.OperatorManagedJob
"
)
&&
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.ExitJobShop
"
);
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.ExitJobShop
"
)
&&
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.CapacityStationBuffer
"
)
&&
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.CapacityStationExit
"
)
&&
(
input_data
.
nodes
[
station
].
_class
!==
"
Dream.Queue
"
);
}
$
.
each
(
...
...
@@ -73,7 +76,8 @@
duration
,
seen_parts
=
{};
if
(
obj
.
_class
===
'
Dream.Job
'
)
{
if
(
obj
.
_class
===
'
Dream.Job
'
||
obj
.
_class
===
'
Dream.CapacityProject
'
)
{
// find the corresponding input
// find the input order and order component for this job
for
(
node_key
in
input_data
.
nodes
)
{
...
...
@@ -85,7 +89,7 @@
if
(
order
.
id
===
obj
.
id
)
{
input_job
=
input_order
=
order
;
}
if
(
input_job
===
null
)
{
if
(
input_job
===
null
&&
order
.
componentsList
)
{
for
(
j
=
0
;
j
<
order
.
componentsList
.
length
;
j
+=
1
)
{
component
=
order
.
componentsList
[
j
];
if
(
component
.
id
===
obj
.
id
)
{
...
...
@@ -122,11 +126,16 @@
entrance_date
=
new
Date
(
start_date
.
getTime
());
entrance_date
.
setTime
(
entrance_date
.
getTime
()
+
schedule
.
entranceTime
*
1000
*
3600
);
if
(
schedule
.
exitTime
)
{
duration
=
(
schedule
.
exitTime
-
schedule
.
entranceTime
);
}
else
{
if
(
obj
.
results
.
schedule
[
i
+
1
])
{
duration
=
obj
.
results
.
schedule
[
i
+
1
].
entranceTime
-
schedule
.
entranceTime
;
}
else
{
duration
=
obj
.
results
.
completionTime
-
schedule
.
entranceTime
;
duration
=
obj
.
results
.
completionTime
-
schedule
.
entranceTime
;
}
}
if
(
duration
>
0.0
)
{
task_start_date
=
new
Date
(
start_date
.
getTime
());
...
...
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