Commit fa0bcf41 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cosmetic change only.

parent 65f1898a
......@@ -336,7 +336,8 @@
working_data = [],
ticks = [],
counter = 1,
spreadsheet_data = [[
spreadsheet_data = [
[
"Jobs",
"ID",
"Order Date",
......@@ -346,7 +347,8 @@
"Entrance Time",
"Station ID",
"Step No."
]],
]
],
gantt_data = {
data: [],
link: []
......@@ -411,8 +413,8 @@
schedule['stationId'],
schedule['stepNumber']
]);
if (obj['results']['schedule'][i+1]) {
duration = obj['results']['schedule'][i+1]['entranceTime'] - schedule['entranceTime'];
if (obj['results']['schedule'][i + 1]) {
duration = obj['results']['schedule'][i + 1]['entranceTime'] - schedule['entranceTime'];
} else {
duration = obj['results'].completionTime - schedule['entranceTime'];
}
......@@ -420,7 +422,7 @@
var task_start_date = new Date(start_date.getTime());
task_start_date.setDate(task_start_date.getDate() + schedule['entranceTime']);
gantt_data.data.push({
id:obj['id'] + '.' + schedule['stepNumber'],
id: obj['id'] + '.' + schedule['stepNumber'],
text: schedule['stationId'],
start_date: task_start_date,
duration: duration,
......@@ -472,13 +474,12 @@
readOnly: true
});
spreadsheet.find('.htCore').width(spreadsheet.width());
gantt.templates.task_class = function(start, end, obj){
gantt.templates.task_class = function (start, end, obj) {
return obj.parent ? "sub_task" : "";
};
try {
gantt.clearAll();
} catch (e) {
}
} catch (e) {}
$('#gantt_output').show().dhx_gantt({
data: gantt_data,
scale_unit: 'day',
......
......@@ -113,7 +113,8 @@
priv.initSpreadSheet = function () {
var spreadsheet = $('#spreadsheet_input');
var data = [[
var data = [
[
"Jobs",
"ID",
"Order Date",
......@@ -122,7 +123,8 @@
"Material",
"Sequence",
"Processing Times"
]];
]
];
spreadsheet.handsontable({
data: data,
minSpareRows: 1,
......
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