Пример #1
0
        private void backgroundWorkerRetreive_DoWork(object sender, DoWorkEventArgs e)
        {
            Hashtable keys = new Hashtable();

            keys.Add("PatientId", patientId);
            keys.Add("StudyInstanceUID", studyInstId);
            keys.Add("SeriesUID", seriesInstId);
            keys.Add("SopInstanceUID", imageInstId);
            keys.Add("QueryRoot", selectedQueryRootSop);
            keys.Add("QueryLevel", queryLevel);
            keys.Add("MoveDestination", moveDest);

            retrieveThread = new SCURetrieveDicomThread(keys);

            String resultsBaseName = "QR_SCU_MOVE_OPERATION_" + System.DateTime.Now.ToString("yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture);

            retrieveThread.Initialize(threadManager);
            userControlActivityLogging.Attach(retrieveThread);

            retrieveThread.Options.Identifier = resultsBaseName;

            retrieveThread.Options.DataDirectory = scuDicomThread.Options.ResultsDirectory;

            retrieveThread.Options.LocalAeTitle   = aeTitScuText.Text;
            retrieveThread.Options.RemoteAeTitle  = aeTitScpText.Text;
            retrieveThread.Options.RemoteHostName = sutIPAddText.Text;
            retrieveThread.Options.RemotePort     = ushort.Parse(configPortNoText.Text);

            retrieveThread.Start();

            retrieveThread.WaitForCompletion();
        }
Пример #2
0
        private void backgroundWorkerRetreive_DoWork(object sender, DoWorkEventArgs e)
        {
            Hashtable keys = new Hashtable();
            keys.Add("PatientId", patientId);
            keys.Add("StudyInstanceUID", studyInstId);
            keys.Add("SeriesUID", seriesInstId);
            keys.Add("SopInstanceUID", imageInstId);
            keys.Add("QueryRoot", selectedQueryRootSop);
            keys.Add("QueryLevel", queryLevel);
            keys.Add("MoveDestination", moveDest);

            retrieveThread = new SCURetrieveDicomThread(keys);

            String resultsBaseName = "QR_SCU_MOVE_OPERATION_" + System.DateTime.Now.ToString("yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture);
            retrieveThread.Initialize(threadManager);
            userControlActivityLogging.Attach(retrieveThread);

            retrieveThread.Options.Identifier = resultsBaseName;

            retrieveThread.Options.DataDirectory = scuDicomThread.Options.ResultsDirectory;

            retrieveThread.Options.LocalAeTitle = aeTitScuText.Text;
            retrieveThread.Options.RemoteAeTitle = aeTitScpText.Text;
            retrieveThread.Options.RemoteHostName = sutIPAddText.Text;
            retrieveThread.Options.RemotePort = ushort.Parse(configPortNoText.Text);

            retrieveThread.Start();

            retrieveThread.WaitForCompletion();
        }