Ejemplo n.º 1
0
 def exec_(self):
     name = self.edtName.text().simplified()
     if not name:
         self.new = True
         self.edtName.setInputMask(u'в/ч ' + 'X' * 8)
     else:
         self.code = self.edtCode.text().simplified()
     return CItemEditorBaseDialog.exec_(self)
Ejemplo n.º 2
0
 def exec_(self):
     QtGui.qApp.setJTR(self)
     result = CItemEditorBaseDialog.exec_(self)
     try:
         if not result:
             self.delAllJobTicketReservations()
     except:
         QtGui.qApp.logCurrentException()
     QtGui.qApp.setJTR(None)
     QtGui.qApp.disconnectClipboard()
     return result
Ejemplo n.º 3
0
 def exec_(self):
     result = CItemEditorBaseDialog.exec_(self)
     return result