Commit 37d72f14 authored by Sebastien Robin's avatar Sebastien Robin

PartJobShop: find job informations in initial schedule

parent 34c1c8e6
...@@ -385,11 +385,15 @@ ...@@ -385,11 +385,15 @@
// find the corresponding input // find the corresponding input
var data = that.getData(), var data = that.getData(),
input_job; input_job;
$.each(data.wip_spreadsheet, function(i, line){ if (configuration['Dream-Configuration'].gui.wip_spreadsheet) {
if (line[1] == obj['id']) { $.each(data.wip_spreadsheet, function(i, line){
input_job = line; if (line[1] == obj['id']) {
} input_job = line;
}); }
});
} else if (configuration['Dream-Configuration'].gui.wip_part_spreadsheet) {
input_job = data.wip_part_spreadsheet[obj["id"]];
}
var duration = 0; var duration = 0;
gantt_data.data.push({ gantt_data.data.push({
......
{ {
"edges": { "edges": {
"con_10": [ "con_10": [
"QStart",
"CAD2",
{}
],
"con_15": [
"CAD1", "CAD1",
"Decomposition", "Decomposition",
{} {}
], ],
"con_20": [ "con_15": [
"Decomposition", "Decomposition",
"QCAM", "QCAM",
{} {}
], ],
"con_25": [ "con_20": [
"QCAM", "QCAM",
"CAM1", "CAM1",
{} {}
], ],
"con_30": [ "con_25": [
"QCAM", "QCAM",
"CAM2", "CAM2",
{} {}
], ],
"con_35": [ "con_30": [
"CAD2", "CAD2",
"Decomposition", "Decomposition",
{} {}
], ],
"con_5": [ "con_35": [
"QStart", "QStart",
"CAD1", "CAD1",
{} {}
],
"con_5": [
"QStart",
"CAD2",
{}
] ]
}, },
"general": { "general": {
...@@ -293,4 +293,4 @@ ...@@ -293,4 +293,4 @@
null null
] ]
] ]
} }
\ No newline at end of file
...@@ -132,7 +132,7 @@ class Simulation(ACO.Simulation): ...@@ -132,7 +132,7 @@ class Simulation(ACO.Simulation):
processing_time_list = processing_time_list.split('-') processing_time_list = processing_time_list.split('-')
order_dict["_class"] = "Dream.Order" order_dict["_class"] = "Dream.Order"
order_dict["id"] = order_id order_dict["id"] = "%i" % i # XXX hack, we use it in UI to retrieve spreadsheet line
order_dict["manager"] = project_manager order_dict["manager"] = project_manager
order_dict["name"] = order_id order_dict["name"] = order_id
# XXX can we do better than this ? # XXX can we do better than this ?
...@@ -174,7 +174,7 @@ class Simulation(ACO.Simulation): ...@@ -174,7 +174,7 @@ class Simulation(ACO.Simulation):
component_dict = {} component_dict = {}
component_dict["_class"] = "Dream.OrderComponent" component_dict["_class"] = "Dream.OrderComponent"
component_dict["componentType"] = part_type component_dict["componentType"] = part_type
component_dict["id"] = "%i" % i component_dict["id"] = "%i" % i # XXX hack, we use it in UI to retrieve spreadsheet line
component_dict["name"] = part component_dict["name"] = part
component_list.append(component_dict) component_list.append(component_dict)
route_list = [] route_list = []
......
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