def identifyParty(self, inS): if self.t.fetchSupplierId(inS): self.customerName.SetLabel(self.t.supplierName) self.customerContact.SetLabel(self.t.supplierContact) else: dlg = nc.GetData(parent=self.m_papa) dlg.ShowModal()
def determineParty (self, event): dlg = nc.GetData(self.papa, self.t) dlg.ShowModal() if (self.t.customerId != 0): self.customerName.SetLabel("Name: " + self.t.customerName) self.customerContact.SetLabel("Contact: "+self.t.customerContact)
def identifyParty(self, inS): if not (self.t.fetchCustomerId(inS)): dlg = nc.GetData(self.papa, inS) dlg.ShowModal() self.customerName.SetLabel(self.t.customerName) self.customerContact.SetLabel(self.t.customerContact) '''self.t.fetchCustomerId(inS)
def determineParty(self, event): dlg = nc.GetData(self.papa, self.t) dlg.ShowModal() print('before if') if (self.t.customerId != -1): print('inside if') self.customerName.SetLabel("Name: " + self.t.customerName) self.customerContact.SetLabel("Contact: " + self.t.customerContact)
def newCust(self): dlg = nc.GetData(parent=self.m_papa) dlg.ShowModal()