Commit faf87373 authored by Jérome Perrin's avatar Jérome Perrin

reapply more time unit partial work

parent 5009a14a
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
}; };
function job_gantt_widget(all_data) { function job_gantt_widget(all_data) {
// XXX: use dhx_gantt zoom level feature (
// http://dhtmlx.com/docs/products/dhtmlxGantt/02_features.html )
var now = new Date(), var now = new Date(),
start_date, start_date,
...@@ -140,7 +142,7 @@ ...@@ -140,7 +142,7 @@
// schedule['entranceTime']); // schedule['entranceTime']);
// for simulation time unit as days hours // for simulation time unit as days hours
task_start_date.setTime(task_start_date.getTime() + task_start_date.setTime(task_start_date.getTime() +
schedule.entranceTime * 1000 * 3600); schedule.entranceTime * 1000 * 3600 * 24);
job_full_id = input_job.id + "." + input_order.id; job_full_id = input_job.id + "." + input_order.id;
if (seen_parts[job_full_id] === undefined) { if (seen_parts[job_full_id] === undefined) {
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
schedule.entranceTime * 1000 * 3600); schedule.entranceTime * 1000 * 3600);
duration = 0; duration = 0;
if (schedule.exitTime) { if (schedule.exitTime) {
duration = (schedule.exitTime - schedule.entranceTime); duration = (schedule.exitTime - schedule.entranceTime * 24);
} else { } else {
// When duration is not returned by ManPy, it is calculated by // When duration is not returned by ManPy, it is calculated by
// difference of entranceTime of this step and entranceTime of the // difference of entranceTime of this step and entranceTime of the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment