Exemple #1
0
        public void MoveUnitToExistingStation(RouteStationProcess process)
        {
            InventoryItem item = process.Item;

            item.CurrentProcess = process;
            item.ChangeDomain(process.Station.Station.Domain);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }