예제 #1
0
        public string GetFolderPath(IPersistenceContext context)
        {
            if (_location == null)
            {
                if (_studyStorage == null)
                {
                    _studyStorage = StudyStorage.Load(context, StudyStorageKey);
                }

                _location = StudyStorageLocation.FindStorageLocations(_studyStorage)[0];
            }

            String path = Path.Combine(_location.FilesystemPath, _location.PartitionFolder);

            path = Path.Combine(path, "Reconcile");
            path = Path.Combine(path, GroupID);
            path = Path.Combine(path, _location.StudyInstanceUid);

            return(path);
        }
예제 #2
0
        public string GetFolderPath()
        {
            if (_location == null)
            {
                if (_studyStorage == null)
                {
                    using (var context = new ServerExecutionContext())
                    {
                        _studyStorage = StudyStorage.Load(context.ReadContext, this.StudyStorageKey);
                    }
                }

                _location = StudyStorageLocation.FindStorageLocations(_studyStorage)[0];
            }

            XmlNode nodeStoragePath = Data.SelectSingleNode("//StoragePath");
            String  path            = Path.Combine(_location.FilesystemPath, _location.PartitionFolder);

            path = Path.Combine(path, "Reconcile");
            path = Path.Combine(path, nodeStoragePath.InnerText);
            return(path);
        }
예제 #3
0
        public IList <StudyStorageLocation> LoadStudyLocations(IPersistenceContext context)
        {
            StudyStorage storage = LoadStudyStorage(context);

            return(StudyStorageLocation.FindStorageLocations(context, storage));
        }