def Assistant(self, filtres=[], nomLot=None):
     typePrelevement = self.DemanderTypePrelevement() 
     if typePrelevement == False :
         return
     from Dlg import DLG_Saisie_prelevement_lot
     dlg = DLG_Saisie_prelevement_lot.Dialog(self, typePrelevement=typePrelevement)
     dlg.Assistant(filtres=filtres, nomLot=nomLot)
     if dlg.ShowModal() == wx.ID_OK:
         IDlot = dlg.GetIDlot()
         self.MAJ(IDlot)
     dlg.Destroy()
 def Ajouter(self, event):
     if UTILS_Utilisateurs.VerificationDroitsUtilisateurActuel("facturation_prelevements", "creer") == False : return
     typePrelevement = self.DemanderTypePrelevement() 
     if typePrelevement == False :
         return
     from Dlg import DLG_Saisie_prelevement_lot
     dlg = DLG_Saisie_prelevement_lot.Dialog(self, typePrelevement=typePrelevement)
     if dlg.ShowModal() == wx.ID_OK:
         IDlot = dlg.GetIDlot()
         self.MAJ(IDlot)
     dlg.Destroy()
 def Modifier(self, event):
     if UTILS_Utilisateurs.VerificationDroitsUtilisateurActuel("facturation_prelevements", "modifier") == False : return
     if len(self.Selection()) == 0 :
         dlg = wx.MessageDialog(self, _(u"Vous n'avez sélectionné aucun lot à modifier dans la liste"), _(u"Erreur de saisie"), wx.OK | wx.ICON_EXCLAMATION)
         dlg.ShowModal()
         dlg.Destroy()
         return
     track = self.Selection()[0]
     from Dlg import DLG_Saisie_prelevement_lot
     dlg = DLG_Saisie_prelevement_lot.Dialog(self, IDlot=track.IDlot, typePrelevement=track.typePrelevement)
     if dlg.ShowModal() == wx.ID_OK:
         self.MAJ(track.IDlot)
     dlg.Destroy()