Beispiel #1
0
 def __init__( self, parent=None ):
     QDialog.__init__( self, parent )
     self.setupUi( self )
     self.uHost.setText( Database.host() )
     self.uPort.setText( Database.port() )
     self.uDatabase.setText( Database.database() )
     self.uUser.setText( Database.user() )
     self.uPassword.setText( Database.password() )
     self.uBdeSchema.setText( Database.bdeSchema() )
     self.uAddressSchema.setText( Database.addressSchema() )
     self.uDialogButtons.clicked.connect( self.buttonClicked )
Beispiel #2
0
    def installAddressLayer( self, job, where='' ):
        if not job and not self._adrLayer:
            return

        layerid = self._addressLayerId
        jobwhere = "job_id="+str(self._invalidJobId)
        layername = "Addresses (no job loaded)"
        if( job ):
            jobwhere = "job_id="+str(job.id())+" AND status <> 'MERG'"
            if where:
                jobwhere = jobwhere + ' AND '+where
            layername = 'Addresses (job '+str(job.id())+')'

        layer = self.installLayer( layerid, Database.addressSchema(), 'address', 'adr_id', False, jobwhere, layername )

        if layer.subsetString() != jobwhere:
            layer.setLayerName(layername)
            layer.setSubsetString(jobwhere)
        return layer