Commit 48d065d9 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

on setWIP for mouldAssembly components are set for assembly

parent f80fd02d
...@@ -225,7 +225,9 @@ def setWIP(entityList): ...@@ -225,7 +225,9 @@ def setWIP(entityList):
# if the entity is of type Job/OrderComponent/Order/Mould # if the entity is of type Job/OrderComponent/Order/Mould
# XXX Orders do no more run in the system, instead we have OrderDesigns # XXX Orders do no more run in the system, instead we have OrderDesigns
elif entity.type in ['Job', 'OrderComponent', 'Order','OrderDesign', 'Mould']: elif entity.type in ['Job', 'OrderComponent', 'Order','OrderDesign', 'Mould']:
# find the list of starting station of the entity # find the list of starting station of the entity
# XXX if the entity is in wip then the current station is already defined and the remainingRoute has to be redefined
currentObjectIds=entity.remainingRoute[0].get('stationIdsList',[]) currentObjectIds=entity.remainingRoute[0].get('stationIdsList',[])
# if the list of starting stations has length greater than one then there is a starting WIP definition error # if the list of starting stations has length greater than one then there is a starting WIP definition error
try: try:
...@@ -238,6 +240,9 @@ def setWIP(entityList): ...@@ -238,6 +240,9 @@ def setWIP(entityList):
# get the starting station of the entity and load it with it # get the starting station of the entity and load it with it
object = findObjectById(objectId) object = findObjectById(objectId)
object.getActiveObjectQueue().append(entity) # append the entity to its Queue object.getActiveObjectQueue().append(entity) # append the entity to its Queue
# if the entity is to be appended to a mouldAssemblyBuffer then it is readyForAsselbly
if object.__class__.__name__=='MouldAssemblyBuffer':
entity.readyForAssembly=1
# read the IDs of the possible successors of the object # read the IDs of the possible successors of the object
nextObjectIds=entity.remainingRoute[1].get('stationIdsList',[]) nextObjectIds=entity.remainingRoute[1].get('stationIdsList',[])
......
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