Пример #1
0
 public override void serverConnection(DCXREQ req, Association serverino, DCXOBJ moveQuery)
 {
     req.MoveAndStore(
         serverino.myAET,      // The AE title that issue the C-MOVE
         serverino.TargetAET,  // The PACS AE title
         serverino.TargetIp,   // The PACS IP address
         serverino.TargetPort, // The PACS listener port
         serverino.myAET,      // The AE title to send the
         moveQuery,            // The matching criteria
         serverino.myPort,     // The port to receive the results
         accepter);            // The accepter to handle the results
 }
Пример #2
0
        public static void moveAndStore(Association ass, Selector sel)
        {
            // Create an object with the query matching criteria (Identifier)
            DCXOBJ query = fillData(sel);

            // Create an accepter to handle the incomming association
            DCXACC accepter = new DCXACC();

            accepter.StoreDirectory = @"C:/Users/daniele/Desktop/provaDicom";
            Directory.CreateDirectory(accepter.StoreDirectory);

            // Create a requester and run the query
            DCXREQ requester = new DCXREQ();

            requester.MoveAndStore(
                ass.myAET,      // The AE title that issue the C-MOVE
                ass.TargetAET,  // The PACS AE title
                ass.TargetIp,   // The PACS IP address
                ass.TargetPort, // The PACS listener port
                ass.myAET,      // The AE title to send the
                query,          // The matching criteria
                104,            // The port to receive the results
                accepter);      // The accepter to handle the results
        }