public void MoveUnitToExistingStation(RouteStationProcess process) { InventoryItem item = process.Item; item.CurrentProcess = process; item.ChangeDomain(process.Station.Station.Domain); }
public void StageUnitAtFirstStation(ServiceRoute route, InventoryItem inventoryItem) { inventoryItem.Processes.Add( route.CreateRouteStationProcess(route.FirstStation(), inventoryItem)); Scout.Core.Service <ITransactionService>().CreateTransaction("ROUTETRANS", inventoryItem, "", inventoryItem.CurrentProcess. Station.FullLocation, "Unit was moved to the first station.", ""); inventoryItem.ChangeDomain(route.FirstStation().Station.Domain); }
public void MoveUnitToNextStation(RouteStationProcess process) { InventoryItem item = process.Item; ServiceRoute route = process.Station.ServiceRoute; Scout.Core.Service <ITransactionService>().CreateTransaction("STATIONTRANS", item, process.Station.FullLocation, process.NextStation. FullLocation, "Unit was moved to the next station.", ""); RouteStationProcess newProcess = route.CreateRouteStationProcess(process.NextStation, item); newProcess.PrevProcess = process; item.CurrentProcess = newProcess; item.ChangeDomain(process.NextStation.Station.Domain); }
public void MoveUnitToNewStation(RouteStationProcess process, RouteStation station) { InventoryItem item = process.Item; ServiceRoute route = process.Station.ServiceRoute; Scout.Core.Service <ITransactionService>().CreateTransaction("STATIONTRANS", item, process.Station.FullLocation, station.FullLocation, "Unit was manually moved to a new station.", ""); if (item.CurrentProcess != null) { item.CurrentProcess.PrevProcess = item.CurrentProcess; } RouteStationProcess newProcess = route.CreateRouteStationProcess(station, item); item.CurrentProcess = newProcess; item.ChangeDomain(newProcess.Station.Station.Domain); }