コード例 #1
0
    def OnButtonFind(self, evt):
        hosts = self.GetHostList()

        for key in hosts.keys():
            if key != 0:
                dn = dcm_net.DicomNet()
                dn.SetHost(self.hosts[key][1])
                dn.SetPort(self.hosts[key][2])
                dn.SetAETitleCall(self.hosts[key][3])
                dn.SetAETitle(self.hosts[0][3])
                dn.SetSearchWord(self.find_txt.GetValue())

                Publisher.sendMessage('Populate tree', dn.RunCFind())
コード例 #2
0
    def OnButtonCheck(self, evt):
        for key in self.hosts.keys():
            if key != 0:
                dn = dcm_net.DicomNet()
                dn.SetHost(self.hosts[key][1])
                dn.SetPort(self.hosts[key][2])
                dn.SetAETitleCall(self.hosts[key][3])
                dn.SetAETitle(self.hosts[0][3])

                if dn.RunCEcho():
                    self.tree_node.SetStringItem(key, 4, _("ok"))
                else:
                    self.tree_node.SetStringItem(key, 4, _("error"))
コード例 #3
0
    def OnActivate(self, evt):

        item = evt.GetItem()
        item_parent = self.tree.GetItemParent(item)

        patient_id = self.tree.GetItemPyData(item_parent)
        serie_id = self.tree.GetItemPyData(item)

        hosts = self.GetHostList()

        for key in hosts.keys():
            if key != 0:
                dn = dcm_net.DicomNet()
                dn.SetHost(self.hosts[key][1])
                dn.SetPort(self.hosts[key][2])
                dn.SetAETitleCall(self.hosts[key][3])
                dn.SetAETitle(self.hosts[0][3])
                dn.RunCMove((patient_id, serie_id))