Exemplo n.º 1
0
        private BaseActor CreateActor(ActorName actorName)
        {
            BaseActor actor = null;

            switch (actorName.Type)
            {
            case ActorTypeEnum.AdtPatientRegistration:
                actor = new AdtPatientRegistrationActor(actorName.Id, this);
                break;

            case ActorTypeEnum.OrderPlacer:
                actor = new OrderPlacerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.DssOrderFiller:
                actor = new DssOrderFillerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.AcquisitionModality:
                actor = new AcquisitionModalityActor(actorName.Id, this);
                break;

            case ActorTypeEnum.ImageManager:
                actor = new ImageManagerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.ImageArchive:
                actor = new ImageArchiveActor(actorName.Id, this);
                break;

            case ActorTypeEnum.PerformedProcedureStepManager:
                actor = new PpsManagerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.EvidenceCreator:
                actor = new EvidenceCreatorActor(actorName.Id, this);
                break;

            case ActorTypeEnum.ImageDisplay:
                actor = new ImageDisplayActor(actorName.Id, this);
                break;

//				case ActorTypeEnum.ReportManager:
//					actor = new ReportManagerActor(actorName.Id, this);
//					break;
            case ActorTypeEnum.PrintComposer:
                actor = new PrintComposerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.PrintServer:
                actor = new PrintServerActor(actorName.Id, this);
                break;

            case ActorTypeEnum.Unknown:
            default:
                break;
            }

            return(actor);
        }
Exemplo n.º 2
0
        private BaseActor CreateActor(ActorName actorName)
        {
            BaseActor actor = null;
            switch(actorName.Type)
            {
                case ActorTypeEnum.AdtPatientRegistration:
                    actor = new AdtPatientRegistrationActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.OrderPlacer:
                    actor = new OrderPlacerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.DssOrderFiller:
                    actor = new DssOrderFillerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.AcquisitionModality:
                    actor = new AcquisitionModalityActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageManager:
                    actor = new ImageManagerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageArchive:
                    actor = new ImageArchiveActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.PerformedProcedureStepManager:
                    actor = new PpsManagerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.EvidenceCreator:
                    actor = new EvidenceCreatorActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageDisplay:
                    actor = new ImageDisplayActor(actorName.Id, this);
                    break;
            //				case ActorTypeEnum.ReportManager:
            //					actor = new ReportManagerActor(actorName.Id, this);
            //					break;
                case ActorTypeEnum.PrintComposer:
                    actor = new PrintComposerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.PrintServer:
                    actor = new PrintServerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.Unknown:
                default:
                    break;
            }

            return actor;
        }