示例#1
0
 def __init__(self,
              mobjIdList: List[str] = None,
              x: XGeschaeftsreise = None,
              parent=None):
     QWidget.__init__(self, parent)
     self._xgeschaeftsreise = x
     self._layout = QFormLayout()
     self.setLayout(self._layout)
     self._cboMobjId = QComboBox()
     self._sdVon = SmartDateEdit()
     self._sdBis = SmartDateEdit()
     self._beZiel = BaseEdit()
     self._meZweck = MultiLineEdit()
     self._ieKm = IntEdit()
     self._iePersonen = IntEdit()
     self._beUebernachtung = BaseEdit()
     self._feUebernachtKosten = FloatEdit()
     # self._btnSave = QPushButton( "Speichern" )
     # self._btnSaveClose = QPushButton( "Speichern und Schließen" )
     # self._btnCancel = QPushButton( "Abbrechen" )
     self._createGui()
     if mobjIdList:
         self.setMietobjekte(mobjIdList)
     if x:
         self.setData(x)
示例#2
0
 def __init__(self):
     QWidget.__init__( self )
     self._edName = BaseEdit()
     self._edBranche = BaseEdit()
     self._edAdresse = BaseEdit()
     self._layout = BaseGridLayout()
     self.setLayout( self._layout )
     self._createGui()
示例#3
0
 def __init__( self, notiz:XNotiz=None, parent=None ):
     QWidget.__init__( self, parent )
     self.setWindowTitle( "Bearbeiten einer Notiz" )
     self._layout = QGridLayout( self )
     self._bezug = BaseEdit()
     self._btnAuswahlBezug_Firma = QPushButton( text="F" )
     self._btnAuswahlBezug_Firma.clicked.connect( self.bezugAuswahlFirmaPressed.emit )
     self._btnAuswahlBezug_Vw = QPushButton( text="V" )
     self._btnAuswahlBezug_Vw.clicked.connect( self.bezugAuswahlVwPressed.emit )
     self._btnAuswahlBezug_Mieter = QPushButton( text="M" )
     self._btnAuswahlBezug_Mieter.clicked.connect( self.bezugAuswahlMieterPressed.emit )
     self._caption = BaseEdit()
     self._edi = MultiLineEdit()
     self._erledigt = CheckBox( "erledigt" )
     self._notiz:XNotiz = None
     self._createGui()
     if notiz:
         self.setNotiz( notiz )
示例#4
0
    def __init__(self):
        QWidget.__init__(self)
        ModifyInfo.__init__(self)
        self._layout = QGridLayout()
        self._btnSave = QPushButton()
        # altes Mietverhältnis
        self._edAlterMieter = BaseEdit()
        self._edAlteNettomiete = FloatEdit()
        self._edAlteNKV = FloatEdit()
        self._edAlteKaution = IntEdit()
        self._sdEndeMietverh = SmartDateEdit()
        self._sdEndeMietverh.textChanged.connect(self.onChange)
        # neues Mietverhältnis
        self._neuesMietvhView = MietverhaeltnisView(enableBrowsing=False)
        self._neuesMietvhView.dataChanged.connect(self.onChange)
        self._mieterwechsel: XMieterwechsel = None

        self._createGui()
        self.connectWidgetsToChangeSlot()
示例#5
0
    def __init__(self,
                 mietverhaeltnis: XMietverhaeltnis = None,
                 withSaveButton: bool = False,
                 enableBrowsing=False,
                 parent=None):
        QWidget.__init__(self, parent)
        ModifyInfo.__init__(self)
        self._mietverhaeltnis: XMietverhaeltnis = None
        self._withSaveButton = withSaveButton
        self._enableBrowsing = enableBrowsing  # ob die Browse-Buttons angezeigt werden
        self._layout = QGridLayout()
        self._btnSave = QPushButton()
        self._btnVor = QPushButton()
        self._btnRueck = QPushButton()
        self._sdBeginnMietverh = SmartDateEdit()
        self._sdEndeMietverh = SmartDateEdit()
        self._edMieterName_1 = BaseEdit()
        self._edMieterVorname_1 = BaseEdit()
        self._edMieterName_2 = BaseEdit()
        self._edMieterVorname_2 = BaseEdit()
        self._edMieterTelefon = BaseEdit()
        self._edMieterMobil = BaseEdit()
        self._edMieterMailto = BaseEdit()
        self._edAnzPers = IntEdit()
        self._edNettomiete = FloatEdit()
        self._edNkv = FloatEdit()
        self._edKaution = IntEdit()
        self._sdKautionBezahltAm = SmartDateEdit()
        self._txtBemerkung1 = MultiLineEdit()
        self._txtBemerkung2 = MultiLineEdit()

        self._createGui()
        if mietverhaeltnis:
            self.setMietverhaeltnisData(mietverhaeltnis)
        #self.connectWidgetsToChangeSlot( self.onChange )
        self.connectWidgetsToChangeSlot(self.onChange, self.onResetChangeFlag)