Exemple #1
0
    def __init__(self, parent, IDreglement=None):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_Impression_recu",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent
        self.IDreglement = IDreglement
        self.dictSave = {}
        self.listeAdresses = []

        # Importation des données
        self.dictReglement = self.Importation()
        self.IDfamille = self.dictReglement["IDfamille"]

        # Bandeau
        intro = _(
            u"Vous pouvez ici éditer un reçu de règlement au format PDF. Pour un reçu standard, cliquez tout simplement sur 'Aperçu' ou sur 'Envoyer Par Email'."
        )
        titre = _(u"Edition d'un reçu de règlement")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Imprimante.png")

        # Données
        self.staticbox_donnees_staticbox = wx.StaticBox(
            self, -1, _(u"Données"))
        self.ctrl_donnees = CTRL_Donnees(self)

        # Options
        self.staticbox_options_staticbox = wx.StaticBox(
            self, -1, _(u"Options"))
        self.label_modele = wx.StaticText(self, -1, _(u"Modèle :"))
        self.ctrl_modele = CTRL_Choix_modele.CTRL_Choice(self,
                                                         categorie="reglement")
        self.bouton_gestion_modeles = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Mecanisme.png"),
                      wx.BITMAP_TYPE_ANY))

        self.label_signataire = wx.StaticText(self, -1, _(u"Signataire :"))
        self.ctrl_signataire = CTRL_Signataires(self)

        self.label_intro = wx.StaticText(self, -1, _(u"Intro :"))
        self.ctrl_intro = wx.CheckBox(self, -1, u"")
        self.ctrl_intro.SetValue(True)
        self.ctrl_texte_intro = wx.TextCtrl(self, -1, TEXTE_INTRO)
        self.label_prestations = wx.StaticText(self, -1, _(u"Prestations :"))
        self.ctrl_prestations = wx.CheckBox(
            self, -1,
            _(u"Afficher la liste des prestations payées avec ce règlement"))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_email = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Envoyer par Email"),
            cheminImage="Images/32x32/Emails_exp.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aperçu"), cheminImage="Images/32x32/Apercu.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonModeles,
                  self.bouton_gestion_modeles)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckIntro, self.ctrl_intro)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonEmail, self.bouton_email)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_CLOSE, self.OnBoutonAnnuler)

        # Importation des paramètres perso
        dictValeursDefaut = {
            "intro_activer": True,
            "intro_texte": TEXTE_INTRO,
            "prestations_afficher": False,
        }
        dictParametres = UTILS_Parametres.ParametresCategorie(
            mode="get",
            categorie="impression_recu",
            dictParametres=dictValeursDefaut)

        # Init contrôles
        self.ctrl_intro.SetValue(dictParametres["intro_activer"])
        if dictParametres["intro_texte"] != None:
            self.ctrl_texte_intro.SetValue(dictParametres["intro_texte"])
        self.ctrl_prestations.SetValue(dictParametres["prestations_afficher"])

        self.OnCheckIntro(None)
Exemple #2
0
    def __init__(self, parent, IDperiode=None, IDactivite=None):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE)
        self.parent = parent
        self.IDperiode = IDperiode
        self.IDactivite = IDactivite

        # Bandeau
        if self.IDperiode == None:
            titre = _(u"Saisie d'une nouvelle période de réservations")
        else:
            titre = _(u"Modification d'une période de réservations")
        self.SetTitle(titre)
        intro = _(
            u"Définissez ici une période en renseignant le nom de la période, la période correspondante dans le calendrier des ouvertures et une éventuelle période daffichage sur le portail."
        )
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Emails_exp.png")

        # Nom
        self.box_nom_staticbox = wx.StaticBox(self, -1,
                                              _(u"Nom de la période"))
        self.ctrl_nom = wx.TextCtrl(self, -1, "")

        # Introduction
        self.box_intro_staticbox = wx.StaticBox(self, -1,
                                                _(u"Texte d'introduction"))
        self.ctrl_intro = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE)
        self.ctrl_intro.SetMinSize((10, 50))

        # Période
        self.box_periode_staticbox = wx.StaticBox(
            self, -1, _(u"Période de réservations"))
        self.label_date_debut = wx.StaticText(self, -1, u"Du")
        self.ctrl_date_debut = CTRL_Saisie_date.Date2(self)
        self.label_date_fin = wx.StaticText(self, -1, _(u"au"))
        self.ctrl_date_fin = CTRL_Saisie_date.Date2(self)

        # Affichage
        self.box_affichage_staticbox = wx.StaticBox(
            self, -1, _(u"Affichage sur le portail"))
        self.radio_oui = wx.RadioButton(self,
                                        -1,
                                        _(u"Toujours afficher"),
                                        style=wx.RB_GROUP)
        self.radio_dates = wx.RadioButton(
            self, -1, _(u"Afficher uniquement sur la période suivante :"))
        self.label_affichage_date_debut = wx.StaticText(self, -1, _(u"Du"))
        self.ctrl_affichage_date_debut = CTRL_Saisie_date.Date2(self)
        self.ctrl_affichage_heure_debut = CTRL_Saisie_heure.Heure(self)
        self.label_affichage_date_fin = wx.StaticText(self, -1, _(u"au"))
        self.ctrl_affichage_date_fin = CTRL_Saisie_date.Date2(self)
        self.ctrl_affichage_heure_fin = CTRL_Saisie_heure.Heure(self)
        self.radio_non = wx.RadioButton(self, -1, _(u"Ne pas afficher"))

        # Modèle d'Email de réponse associé
        self.box_modele_staticbox = wx.StaticBox(
            self, -1, _(u"Modèle d'Email de réponse"))
        self.radio_modele_defaut = wx.RadioButton(
            self, -1, _(u"Utiliser le modèle par défaut"), style=wx.RB_GROUP)
        self.radio_modele_choix = wx.RadioButton(
            self, -1, _(u"Utiliser le modèle suivant :"))
        self.ctrl_modele_email = CTRL_Choix_modele(self)
        self.bouton_gestion_modeles = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Mecanisme.png"),
                      wx.BITMAP_TYPE_ANY))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        # Binds
        self.Bind(wx.EVT_RADIOBUTTON, self.OnRadioAffichage, self.radio_oui)
        self.Bind(wx.EVT_RADIOBUTTON, self.OnRadioAffichage, self.radio_dates)
        self.Bind(wx.EVT_RADIOBUTTON, self.OnRadioAffichage, self.radio_non)
        self.Bind(wx.EVT_RADIOBUTTON, self.OnRadioModele,
                  self.radio_modele_defaut)
        self.Bind(wx.EVT_RADIOBUTTON, self.OnRadioModele,
                  self.radio_modele_choix)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonModeles,
                  self.bouton_gestion_modeles)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)

        # Init contrôles
        self.Importation()
        self.OnRadioAffichage(None)
        self.OnRadioModele(None)
Exemple #3
0
    def __init__(self, parent, IDfamille=None):
        wx.Dialog.__init__(self, parent, -1, name="DLG_Rattachement", style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX)
        self.IDfamille = IDfamille
        self.mode = None

        # Adapte taille Police pour Linux
        from Utils import UTILS_Linux
        UTILS_Linux.AdaptePolice(self)

        self.nbreTitulaires = self.GetNbreTitulairesFamille() 
        
        # Bandeau
        titre = _(u"Rattachement d'un individu")
        intro = _(u"Commencez par sélectionner une catégorie de rattachement puis saisissez son nom et son prénom. Si l'individu apparait dans la liste, sélectionnez-le. Sinon créez une nouvelle fiche individuelle.")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(self, titre=titre, texte=intro, hauteurHtml=30, nomImage="Images/32x32/Famille.png")
        
        # Categorie
        self.staticbox_categorie_staticbox = wx.StaticBox(self, -1, _(u"1. Sélection de la catégorie de rattachement"))
        self.bouton_categorie_1 = wx.ToggleButton(self, 1, _(u"Représentant"))
        self.bouton_categorie_2 = wx.ToggleButton(self, 2, _(u"Enfant"))
        self.bouton_categorie_3 = wx.ToggleButton(self, 3, _(u"Contact"))
        self.ctrl_titulaire = wx.CheckBox(self, -1, _(u"Titulaire du dossier famille"))
        self.selection_categorie = None
        
        if self.nbreTitulaires == 0 :
            self.bouton_categorie_2.Enable(False)
            self.bouton_categorie_3.Enable(False)
        
        # Sélection individu
        self.staticbox_selection_staticbox = wx.StaticBox(self, -1, _(u"2. Saisie du nom de l'individu"))
        self.ctrl_propositions = OL_Individus.ListView(self, id=-1, style=wx.LC_REPORT|wx.SUNKEN_BORDER|wx.LC_SINGLE_SEL|wx.LC_HRULES|wx.LC_VRULES)
        self.label_nom = wx.StaticText(self, -1, _(u"Nom :"))
        self.ctrl_nom = CtrlRecherche(self, numColonne=1)
        self.label_prenom = wx.StaticText(self, -1, _(u"Prénom :"))
        self.ctrl_prenom = wx.TextCtrl(self, -1, "") #CtrlRecherche(self, numColonne=2)
        
        # Txt remarque
        txtRemarque = u"""
        <IMG SRC="Static/Images/16x16/Attention2.png">
        <FONT SIZE=-1>
        Si l'individu à rattacher n'apparaît pas dans cette liste, 
        vous devez cliquez sur ce bouton 
        <A HREF="Saisie">Saisir un nouvel individu</A>
        pour créer une nouvelle fiche individuelle.
        </FONT>
        """
        self.ctrl_html = MyHtml(self, texte=txtRemarque, hauteur=31)
        
        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(self, id=wx.ID_CANCEL, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()
        
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_TOGGLEBUTTON, self.OnToggle, self.bouton_categorie_1)
        self.Bind(wx.EVT_TOGGLEBUTTON, self.OnToggle, self.bouton_categorie_2)
        self.Bind(wx.EVT_TOGGLEBUTTON, self.OnToggle, self.bouton_categorie_3)
        
        self.ActiveControles(False)
        self.ctrl_titulaire.Enable(False)
    def __init__(self, parent, nouveau=False, heure_min=None, heure_max=None):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE)
        self.parent = parent
        self.heure_min = heure_min
        self.heure_max = heure_max

        if nouveau == True:
            intro = _(
                u"Vous pouvez saisir ici une consommation horaire. Cliquez sur le bouton Horloge pour insérer l'heure actuelle."
            )
            titre = _(u"Saisie d'un horaire")
        else:
            intro = _(
                u"Vous pouvez modifier ici une consommation horaire. Cliquez sur le bouton Horloge pour insérer l'heure actuelle."
            )
            titre = _(u"Modification d'un horaire")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Horloge2.png")

        fontLabel = wx.Font(12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL,
                            wx.FONTWEIGHT_NORMAL, False, 'Arial')
        fontHeure = wx.Font(22, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL,
                            wx.FONTWEIGHT_NORMAL, False, 'Arial')

        self.label_heure_debut = wx.StaticText(self, -1, _(u"De"))
        self.label_heure_debut.SetFont(fontLabel)
        self.ctrl_heure_debut = CTRL_Saisie_heure.Heure(
            self, style=wx.TE_PROCESS_ENTER | wx.TE_CENTER)
        self.ctrl_heure_debut.SetFont(fontHeure)
        self.ctrl_heure_debut.SetMinSize((100, 40))
        self.bouton_heure_debut_now = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Horloge3.png"),
                      wx.BITMAP_TYPE_ANY))

        self.label_heure_fin = wx.StaticText(self, -1, u"à")
        self.label_heure_fin.SetFont(fontLabel)
        self.ctrl_heure_fin = CTRL_Saisie_heure.Heure(self,
                                                      style=wx.TE_PROCESS_ENTER
                                                      | wx.TE_CENTER)
        self.ctrl_heure_fin.SetFont(fontHeure)
        self.ctrl_heure_fin.SetMinSize((100, 40))
        self.bouton_heure_fin_now = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Horloge3.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(
                Chemins.GetStaticPath("Images/BoutonsImages/Supprimer.png"),
                wx.BITMAP_TYPE_ANY))
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Annuler"),
            cheminImage="Images/32x32/Annuler.png")

        if nouveau == True:
            self.bouton_supprimer.Enable(False)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonHeureDebutNow,
                  self.bouton_heure_debut_now)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonHeureFinNow,
                  self.bouton_heure_fin_now)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonSupprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        ##        self.ctrl_heure_debut.Bind(wx.EVT_TEXT_ENTER, self.OnBoutonOk)
        ##        self.ctrl_heure_fin.Bind(wx.EVT_TEXT_ENTER, self.OnBoutonOk)
        self.ctrl_heure_debut.Bind(wx.EVT_KEY_DOWN, self.OnKey)
        self.ctrl_heure_fin.Bind(wx.EVT_KEY_DOWN, self.OnKey)
Exemple #5
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Bandeau
        intro = _(
            u"Vous pouvez ici afficher la répartition des modes de règlements par activité. Commencez par sélectionner un mode de calcul, saisir une période de référence puis sélectionner les activités souhaitées. Il est ensuite possible d'exporter les résultats sous forme de PDF ou sous Ms Excel."
        )
        titre = _(u"Synthèse des modes de règlements")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Diagramme.png")
        self.SetTitle(titre)

        # Panel Paramètres
        self.ctrl_parametres = Parametres(self)

        # CTRL Coefficients
        self.staticbox_stats_staticbox = wx.StaticBox(self, -1,
                                                      _(u"Résultats"))
        self.ctrl_stats = CTRL_Synthese_modes_reglements.CTRL(self)

        # Commandes de liste
        self.bouton_apercu = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_excel = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Excel.png"),
                      wx.BITMAP_TYPE_ANY))

        # Commandes de résultats
        self.check_details = wx.CheckBox(self, -1, _(u"Afficher détails"))
        self.check_details.SetValue(True)

        self.hyper_developper = self.Build_Hyperlink_developper()
        self.label_barre = wx.StaticText(self, -1, u"|")
        self.hyper_reduire = self.Build_Hyperlink_reduire()

        # Commandes
        self.label_ventilation = wx.StaticText(self, -1,
                                               _(u"Filtre de ventilation :"))
        self.ctrl_ventilation = wx.Choice(self, -1, choices=[])
        self.ctrl_ventilation.Select(0)
        self.label_du = wx.StaticText(self, -1, u"du")
        self.ctrl_ventilation_debut = CTRL_Saisie_date.Date2(self)
        self.label_au = wx.StaticText(self, -1, _(u"au"))
        self.ctrl_ventilation_fin = CTRL_Saisie_date.Date2(self)
        self.bouton_actualiser = wx.Button(self, -1, _(u"Actualiser"))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.Bind(wx.EVT_CHOICE, self.OnChoixVentilation,
                  self.ctrl_ventilation)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonImprimer, self.bouton_apercu)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonExcel, self.bouton_excel)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckDetails, self.check_details)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonActualiser,
                  self.bouton_actualiser)

        self.__set_properties()
        self.__do_layout()

        # Initialisation des contrôles
        anneeActuelle = datetime.date.today().year
        self.ctrl_parametres.ctrl_date_debut.SetDate(
            datetime.date(anneeActuelle, 1, 1))
        self.ctrl_parametres.ctrl_date_fin.SetDate(
            datetime.date(anneeActuelle, 12, 31))

        self.MAJ()

        self.OnChoixVentilation(None)
Exemple #6
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Bandeau
        intro = _(
            u"Vous pouvez ici effectuer des procédures de badgeage. Commencez par sélectionner la procédure souhaitée dans la liste pour cliquez sur le bouton 'Ok' pour lancer la procédure. Vous pourrez interrompre celle-ci en appuyant sur CTRL+SHIFT+Q."
        )
        titre = _(u"Badgeage")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Badgeage.png")

        # Paramètres
        self.box_parametres_staticbox = wx.StaticBox(self, -1,
                                                     _(u"Paramètres"))

        self.label_procedure = wx.StaticText(self, -1, _(u"Procédure :"))
        self.ctrl_procedure = CTRL_Procedure(self)
        self.bouton_procedures = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Mecanisme.png"),
                      wx.BITMAP_TYPE_ANY))

        self.label_date = wx.StaticText(self, -1, _(u"Date :"))
        self.ctrl_date = CTRL_Saisie_date.Date2(self)
        self.ctrl_date.SetDate(datetime.date.today())

        self.check_dateauto = wx.CheckBox(self, -1, _(u"Date auto."))

        # Log
        self.box_log_staticbox = wx.StaticBox(self, -1, _(u"Journal"))

        self.ctrl_log = OL_Badgeage_log.ListView(
            self,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_VRULES)
        self.log = self.ctrl_log

        self.bouton_log_apercu = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Apercu.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_log_imprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Imprimante.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_log_excel = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Excel.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_log_texte = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Texte.png"),
                      wx.BITMAP_TYPE_ANY))

        self.hyper_journal = Hyperlien(
            self,
            label=_(u"Consulter l'historique du journal"),
            infobulle=_(u"Cliquez ici pour consulter l'historique du journal"),
            URL="historique")
        self.label_separation = wx.StaticText(self, -1, u"|")
        self.hyper_purger = Hyperlien(
            self,
            label=_(u"Purger l'historique"),
            infobulle=_(u"Cliquez ici pour purger l'historique du journal"),
            URL="purger")

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_vocal = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Configuration de la synthèse vocale"),
            cheminImage="Images/32x32/Vocal.png")
        self.bouton_importation = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Importer"),
            cheminImage="Images/32x32/Fleche_bas.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Commencer le badgeage"),
            cheminImage="Images/32x32/Badgeage.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHOICE, self.OnChoixProcedure, self.ctrl_procedure)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckDateauto, self.check_dateauto)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonProcedures,
                  self.bouton_procedures)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonLogApercu,
                  self.bouton_log_apercu)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonLogImprimer,
                  self.bouton_log_imprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonLogExcel, self.bouton_log_excel)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonLogTexte, self.bouton_log_texte)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonVocal, self.bouton_vocal)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonImportation,
                  self.bouton_importation)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)
Exemple #7
0
    def __init__(self, parent, IDfamille=None, dictDonnees={}):
        wx.Frame.__init__(self,
                          parent,
                          wx.ID_ANY,
                          "",
                          wx.DefaultPosition,
                          wx.DefaultSize,
                          style=wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP)
        self.parent = parent
        self.IDfamille = IDfamille

        self.panel = wx.Panel(self)

        # Bandeau
        titre = _(u"Consultation CAF-CDAP")
        intro = _(
            u"Glissez-déposez le numéro d'allocataire et le nom vers le formulaire de CDAP. Puis sélectionnez et glissez-déposez le QF ou le revenu ci-dessous."
        )
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self.panel,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Caf.png")

        # Informations
        self.box_informations = wx.StaticBox(self.panel, -1,
                                             _(u"Informations"))
        self.label_nom = wx.StaticText(self.panel, -1, _(u"Nom de famille :"))
        self.ctrl_nom = CTRL_Drag(self.panel, texte="")
        self.label_numero = wx.StaticText(self.panel, -1,
                                          _(u"Numéro d'allocataire :"))
        self.ctrl_numero = CTRL_Drag(self.panel, texte="")

        # Informations
        self.box_quotient = wx.StaticBox(self.panel, -1,
                                         _(u"Quotient familial/Revenu"))
        self.ctrl_quotient = CTRL_Drop(
            self.panel,
            taille=(180, 80),
            texte_defaut=_(
                u"Sélectionnez et glissez-déposez\nle quotient familial ici"
            ),
            tip=
            _(u"Double-cliquez sur le quotient dans votre navigateur internet pour le sélectionner et glissez-le jusqu'ici.\n\nVous pouvez également faire un double-clic pour saisir ou modifier la valeur manuellement."
              ))
        self.ctrl_revenu = CTRL_Drop(
            self.panel,
            taille=(180, 80),
            texte_defaut=_(
                u"Sélectionnez et glissez-déposez\nle revenu annuel ici"),
            tip=
            _(u"Double-cliquez sur le revenu dans votre navigateur internet pour le sélectionner et glissez-le jusqu'ici.\n\nVous pouvez également faire un double-clic pour saisir ou modifier la valeur manuellement."
              ))

        texte_dernier_qf = self.GetTexteDernierQF()
        self.label_dernier_qf = wx.StaticText(self.panel,
                                              -1,
                                              texte_dernier_qf,
                                              style=wx.ALIGN_CENTER)
        self.label_dernier_qf.SetFont(
            wx.Font(7, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL,
                    wx.FONTWEIGHT_LIGHT, False, 'Arial'))
        self.label_dernier_qf.SetForegroundColour(wx.Colour(150, 150, 150))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self.panel, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self.panel,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self.panel,
            texte=_(u"Enregistrer"),
            cheminImage="Images/32x32/Sauvegarder.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_CLOSE, self.OnClose)

        # Init
        self.bouton_ok.Enable(False)

        # Remplissage des champs
        if "nom_allocataire" in dictDonnees:
            self.ctrl_nom.SetValue(dictDonnees["nom_allocataire"])
        if "numero_allocataire" in dictDonnees:
            self.ctrl_numero.SetValue(dictDonnees["numero_allocataire"])
    def __init__(self, parent, categorie=None):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_modeles_docs",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Bandeau
        titre = _(u"Modèles d'Emails")
        intro = _(u"Vous pouvez paramétrer ici des modèles d'Emails.")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Emails_modele.png")

        # Catégorie
        self.staticbox_categorie_staticbox = wx.StaticBox(
            self, -1, _(u"Catégorie"))
        self.label_categorie = wx.StaticText(self, -1, _(u"Catégorie :"))
        self.ctrl_categorie = CTRL_Categorie(self)
        if categorie != None:
            self.ctrl_categorie.SetCategorie(categorie)

        # Modèles
        self.staticbox_modeles_staticbox = wx.StaticBox(
            self, -1, _(u"Modèles disponibles"))
        self.ctrl_modeles = OL_Modeles_emails.ListView(
            self,
            id=-1,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_dupliquer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Dupliquer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_defaut = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Ok.png"),
                      wx.BITMAP_TYPE_ANY))

        ##        self.hyper_telecharger = Hyperlien(self, label=_(u"Télécharger de nouveaux modèles"), infobulle=_(u"Cliquez ici pour télécharger de nouveaux modèles de documents sur internet"), URL="telecharger")
        ##        self.label_separation = wx.StaticText(self, -1, u"|")
        ##        self.hyper_proposer = Hyperlien(self, label=_(u"Proposer un modèle"), infobulle=_(u"Cliquez ici pour proposer un modèle à la communauté"), URL="proposer")

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHOICE, self.OnChoixCategorie, self.ctrl_categorie)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAjouter, self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonModifier, self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonSupprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonDupliquer, self.bouton_dupliquer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonDefaut, self.bouton_defaut)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)

        # Init contrôle
        self.OnChoixCategorie(None)
Exemple #9
0
    def __init__(self, parent, type="individu"):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent
        self.type = type

        intro = _(
            u"Vous pouvez ici concevoir des questionnaires personnalisés pour les fiches individuelles. Commencez par créer des catégories puis paramétrez des questions basées sur les contrôles de votre choix en fonction des données à saisir : texte, liste, entier, etc..."
        )
        titre = _(u"Questionnaires")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage=Chemins.GetStaticPath("Images/32x32/Questionnaire.png"))

        # Questionnaire
        self.box_questionnaire_staticbox = wx.StaticBox(
            self, -1, _(u"Questionnaire"))
        self.ctrl_questionnaire = CTRL_Questionnaire.CTRL(
            self, type=type, menuActif=True, afficherInvisibles=True)

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_monter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Fleche_haut.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_descendre = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Fleche_bas.png"),
                      wx.BITMAP_TYPE_ANY))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Aide"),
            cheminImage=Chemins.GetStaticPath("Images/32x32/Aide.png"))
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Fermer"),
            cheminImage=Chemins.GetStaticPath("Images/32x32/Fermer.png"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonAjouter, self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonModifier, self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonSupprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonMonter, self.bouton_monter)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonDescendre, self.bouton_descendre)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)

        # Init contrôles
        self.ctrl_questionnaire.MAJ()
Exemple #10
0
    def __init__(self, parent, track_mensualite=None, titre_detail=""):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent
        self.track_mensualite = track_mensualite

        intro = _(
            u"Vous pouvez consulter ici le détail de la mensualité sélectionnée avec un regroupement par date."
        )
        titre = _(u"Détail de la mensualité")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Contrat.png")

        # dates
        self.box_dates_staticbox = wx.StaticBox(
            self, -1,
            _(u"Détail de la mensualité de %s pour %s" %
              (titre_detail, track_mensualite.individu_nom_complet)))
        self.listviewAvecFooter = OL_Contratspsu_detail.ListviewAvecFooter(
            self)
        self.ctrl_dates = self.listviewAvecFooter.GetListview()
        self.ctrl_recherche = OL_Contratspsu_detail.CTRL_Outils(
            self, listview=self.ctrl_dates)

        self.bouton_apercu = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_imprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Imprimante.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_texte = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Texte2.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_excel = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Excel.png"),
                      wx.BITMAP_TYPE_ANY))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=-1,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.ctrl_dates.Apercu, self.bouton_apercu)
        self.Bind(wx.EVT_BUTTON, self.ctrl_dates.Imprimer,
                  self.bouton_imprimer)
        self.Bind(wx.EVT_BUTTON, self.ctrl_dates.ExportTexte,
                  self.bouton_texte)
        self.Bind(wx.EVT_BUTTON, self.ctrl_dates.ExportExcel,
                  self.bouton_excel)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_CLOSE, self.OnBoutonAnnuler)

        # Init
        self.ctrl_dates.SetDonnees(self.track_mensualite)
Exemple #11
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_Impression_infos_medicales",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent

        intro = _(
            u"Vous pouvez ici imprimer une liste au format PDF des informations médicales des individus présents sur la période de votre choix. Pour une liste standard, sélectionnez simplement une période puis cliquez sur 'Aperçu'."
        )
        titre = _(u"Impression de la liste des informations médicales")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Imprimante.png")

        # Calendrier
        self.staticbox_date_staticbox = wx.StaticBox(self, -1, _(u"Période"))
        self.ctrl_calendrier = CTRL_Grille_periode.CTRL(self)
        self.ctrl_calendrier.SetMinSize((200, 150))

        # Activités
        self.staticbox_activites_staticbox = wx.StaticBox(
            self, -1, _(u"Activités"))
        self.ctrl_activites = CTRL_Activites(self)
        self.ctrl_activites.SetMinSize((10, 50))

        # Groupes
        self.staticbox_groupes_staticbox = wx.StaticBox(
            self, -1, _(u"Groupes"))
        self.ctrl_groupes = CTRL_Groupes(self)

        # Options
        self.staticbox_options_staticbox = wx.StaticBox(
            self, -1, _(u"Options"))
        self.label_modele = wx.StaticText(self, -1, _(u"Modèle :"))
        self.ctrl_modele = wx.Choice(self,
                                     -1,
                                     choices=[
                                         _(u"Modèle par défaut"),
                                     ])
        self.ctrl_modele.Select(0)
        self.label_tri = wx.StaticText(self, -1, _(u"Tri :"))
        self.ctrl_tri = wx.Choice(self,
                                  -1,
                                  choices=["Nom",
                                           _(u"Prénom"),
                                           _(u"Age")])
        self.ctrl_tri.Select(0)
        self.ctrl_ordre = wx.Choice(self,
                                    -1,
                                    choices=["Croissant",
                                             _(u"Décroissant")])
        self.ctrl_ordre.Select(0)
        self.checkbox_lignes_vierges = wx.CheckBox(
            self, -1, _(u"Afficher des lignes vierges :"))
        self.checkbox_lignes_vierges.SetValue(True)
        self.ctrl_nbre_lignes = wx.Choice(self,
                                          -1,
                                          choices=[
                                              "1", "2", "3", "4", "5", "6",
                                              "7", "8", "9", "10", "11", "12",
                                              "13", "14", "15"
                                          ])
        self.ctrl_nbre_lignes.Select(2)
        self.checkbox_page_groupe = wx.CheckBox(
            self, -1, _(u"Insérer un saut de page après chaque groupe"))
        self.checkbox_page_groupe.SetValue(True)
        self.checkbox_nonvides = wx.CheckBox(
            self, -1, _(u"Afficher uniquement les individus avec infos"))
        self.checkbox_nonvides.SetValue(False)
        self.checkbox_age = wx.CheckBox(self, -1,
                                        _(u"Afficher l'âge des individus"))
        self.checkbox_age.SetValue(True)
        self.checkbox_photos = wx.CheckBox(self, -1,
                                           _(u"Afficher les photos :"))
        self.checkbox_photos.SetValue(False)
        self.ctrl_taille_photos = wx.Choice(self,
                                            -1,
                                            choices=[
                                                _(u"Petite taille"),
                                                _(u"Moyenne taille"),
                                                _(u"Grande taille")
                                            ])
        self.ctrl_taille_photos.SetSelection(1)

        # Mémorisation des paramètres
        self.ctrl_memoriser = wx.CheckBox(self, -1,
                                          _(u"Mémoriser les paramètres"))
        font = self.GetFont()
        font.SetPointSize(7)
        self.ctrl_memoriser.SetFont(font)
        self.ctrl_memoriser.SetValue(True)

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aperçu"), cheminImage="Images/32x32/Apercu.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self.OnCheckLignesVierges,
                  self.checkbox_lignes_vierges)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckPhotos, self.checkbox_photos)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)

        # Récupération des paramètres dans le CONFIG
        param_tri = UTILS_Config.GetParametre("impression_infos_med_tri",
                                              defaut=0)
        self.ctrl_tri.Select(param_tri)

        param_ordre = UTILS_Config.GetParametre("impression_infos_med_ordre",
                                                defaut=0)
        self.ctrl_ordre.Select(param_ordre)

        param_lignes_vierges = UTILS_Config.GetParametre(
            "impression_infos_med_lignes_vierges", defaut=1)
        self.checkbox_lignes_vierges.SetValue(param_lignes_vierges)

        if param_lignes_vierges == 1:
            param_nbre_lignes_vierges = UTILS_Config.GetParametre(
                "impression_infos_med_nbre_lignes_vierges", defaut=2)
            self.ctrl_nbre_lignes.Select(param_nbre_lignes_vierges)

        param_page_groupe = UTILS_Config.GetParametre(
            "impression_infos_med_page_groupe", defaut=1)
        self.checkbox_page_groupe.SetValue(param_page_groupe)

        param_nonvides = UTILS_Config.GetParametre(
            "impression_infos_med_nonvides", defaut=0)
        self.checkbox_nonvides.SetValue(param_nonvides)

        param_age = UTILS_Config.GetParametre("impression_infos_med_age",
                                              defaut=1)
        self.checkbox_age.SetValue(param_age)

        param_photos = UTILS_Config.GetParametre("impression_infos_med_photos",
                                                 defaut=1)
        self.checkbox_photos.SetValue(param_photos)

        param_taille_photos = UTILS_Config.GetParametre(
            "impression_infos_med_taille_photos", defaut=1)
        self.ctrl_taille_photos.SetSelection(param_taille_photos)

        param_memoriser = UTILS_Config.GetParametre(
            "impression_infos_med_memoriser", defaut=1)
        self.ctrl_memoriser.SetValue(param_memoriser)

        # Init Contrôles
        self.OnCheckLignesVierges(None)
        self.OnCheckPhotos(None)
        self.bouton_ok.SetFocus()

        self.ctrl_calendrier.SetVisibleSelection()
        self.SetListesPeriodes(self.ctrl_calendrier.GetDatesSelections())

        self.grid_sizer_base.Fit(self)
Exemple #12
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Bandeau
        titre = _(u"Saisir un lot de forfaits-crédits")
        intro = _(
            u"Vous pouvez ici saisir des forfaits-crédits individuels pour un ensemble d'individus. Sélectionnez une activité, le forfait-crédit à appliquer puis la période à impacter. Cochez les individus souhaités puis cliquez sur le bouton Commencer pour lancer le traitement."
        )
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Euro.png")

        # Paramètres
        self.box_parametres_staticbox = wx.StaticBox(
            self, -1, _(u"Paramètres du forfait"))
        self.label_periode = wx.StaticText(self, -1, u"Période :")
        self.ctrl_date_debut = CTRL_Saisie_date.Date2(self)
        self.label_date_fin = wx.StaticText(self, -1, "au")
        self.ctrl_date_fin = CTRL_Saisie_date.Date2(self)

        self.label_activite = wx.StaticText(self, -1, u"Activité :")
        self.ctrl_activite = CTRL_Activite(self)

        self.label_forfait = wx.StaticText(self, -1, u"Forfait :")
        self.ctrl_forfait = CTRL_Forfait(self)

        self.bouton_actualiser = wx.Button(self, -1, _(u"Actualiser la liste"))

        # Individus
        self.box_individus_staticbox = wx.StaticBox(
            self, -1, _(u"Sélection des individus"))
        self.listviewAvecFooter = OL_Saisie_lot_forfaits_credits.ListviewAvecFooter(
            self, kwargs={})
        self.ctrl_individus = self.listviewAvecFooter.GetListview()
        self.ctrl_recherche = OL_Saisie_lot_forfaits_credits.CTRL_Outils(
            self, listview=self.ctrl_individus, afficherCocher=True)

        # Grille des conso
        self.box_grille_staticbox = wx.StaticBox(self, -1, _(u"Journal"))
        self.ctrl_log = wx.TextCtrl(self,
                                    -1,
                                    style=wx.TE_MULTILINE | wx.TE_READONLY)
        self.ctrl_log.SetMinSize((-1, 60))
        self.ctrl_gauge = wx.Gauge(self, -1, style=wx.GA_SMOOTH)
        self.ctrl_grille = DLG_Badgeage_grille.CTRL(self)
        self.ctrl_grille.Show(False)

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Commencer"),
            cheminImage="Images/32x32/Valider.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHOICE, self.OnChoixActivite, self.ctrl_activite)
        self.Bind(wx.EVT_COMBOBOX, self.OnChoixForfait, self.ctrl_forfait)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonActualiser,
                  self.bouton_actualiser)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_fermer)
        self.Bind(wx.EVT_CLOSE, self.OnBoutonAnnuler)

        self.ctrl_individus.MAJ()
        wx.CallLater(0, self.Layout)
    def __init__(self, parent):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE)
        self.parent = parent

        # Bandeau
        titre = _(u"Import/Export de traductions au format texte")
        intro = _(
            u"Sélectionnez une langue dans la liste puis exportez ou importez les textes au format TXT."
        )
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Traduction.png")

        # Langue
        self.box_langue_staticbox = wx.StaticBox(self, -1, _(u"Langue"))
        self.ctrl_langues = CTRL_Langue(self)

        # Exporter
        self.box_exporter_staticbox = wx.StaticBox(self, -1, _(u"Exporter"))
        self.check_nontraduits = wx.CheckBox(
            self, -1, _(u"Inclure uniquement les textes non traduits"))
        self.check_nontraduits.SetValue(True)
        self.bouton_exporter = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Exporter"),
            cheminImage="Images/32x32/Fleche_haut.png")
        self.bouton_exporter.SetMinSize((400, -1))

        # Importer
        self.box_importer_staticbox = wx.StaticBox(self, -1, _(u"Importer"))

        wildcard = _(u"Fichiers texte|*.txt|Tous les fichiers (*.*)|*.*")
        sp = wx.StandardPaths.Get()
        cheminDefaut = sp.GetDocumentsDir()
        self.ctrl_fichier_importer_original = filebrowse.FileBrowseButton(
            self,
            -1,
            labelText=_(u"Fichier des textes originaux :"),
            buttonText=_(u"Sélectionner"),
            toolTip=_(u"Cliquez ici pour sélectionner un fichier"),
            dialogTitle=_(u"Sélectionner un fichier"),
            fileMask=wildcard,
            startDirectory=cheminDefaut)
        self.ctrl_fichier_importer_traduction = filebrowse.FileBrowseButton(
            self,
            -1,
            labelText=_(u"Fichier des textes traduits :"),
            buttonText=_(u"Sélectionner"),
            toolTip=_(u"Cliquez ici pour sélectionner un fichier"),
            dialogTitle=_(u"Sélectionner un fichier"),
            fileMask=wildcard,
            startDirectory=cheminDefaut)
        self.bouton_importer = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Importer"),
            cheminImage="Images/32x32/Fleche_bas.png")
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonExporter, self.bouton_exporter)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonImporter, self.bouton_importer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)
Exemple #14
0
    def __init__(self, parent):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX)
        self.parent = parent
        
        intro = _(u"Avant de générer les factures d'une activité de type P.S.U., vous devez commencer par générer ici les mensualités pour le mois souhaité. Notez qu'il est est possible de saisir manuellement un nombre d'heures de régularisation avant de valider la génération.")
        titre = _(u"Validation des contrats P.S.U.")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(self, titre=titre, texte=intro, hauteurHtml=30, nomImage="Images/32x32/Contrat.png")
        
        # Paramètres
        self.box_parametres_staticbox = wx.StaticBox(self, -1, _(u"Paramètres"))
        self.label_mois = wx.StaticText(self, -1, _(u"Mois :"))
        self.ctrl_mois = wx.Choice(self, -1, choices=LISTE_MOIS)
        self.spin_mois = wx.SpinButton(self, -1, size=(18, 20),  style=wx.SP_VERTICAL)
        self.spin_mois.SetRange(-1, 1)
        self.ctrl_annee = wx.SpinCtrl(self, -1, size=(60, -1), min=2000, max=2999)
        self.label_activite = wx.StaticText(self, -1, _(u"Activité :"))
        self.ctrl_activite = CTRL_Activite(self)

        # Contrats
        self.box_contrats_staticbox = wx.StaticBox(self, -1, _(u"Mensualités"))
        self.listviewAvecFooter = OL_Contratspsu_validation.ListviewAvecFooter(self)
        self.ctrl_contrats = self.listviewAvecFooter.GetListview()
        self.ctrl_recherche = OL_Contratspsu_validation.CTRL_Outils(self, listview=self.ctrl_contrats, afficherCocher=True)

        self.bouton_detail = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/zoom_plus.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_apercu = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_imprimer = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Imprimante.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_texte = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Texte2.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_excel = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Excel.png"), wx.BITMAP_TYPE_ANY))

        self.label_info = wx.StaticText(self, -1, _(u"Remarque : Vous pouvez double-cliquer dans la colonne 'H. régular.' pour saisir un nombre positif ou négatif d'heures de régularisation."))
        self.label_info.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL))
        self.label_info.SetForegroundColour(wx.Colour(180, 180, 180))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(self, id=-1, texte=_(u"Valider"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(self, id=-1, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHOICE, self.OnChangeParametres, self.ctrl_mois)
        self.Bind(wx.EVT_SPIN, self.OnSpinMois, self.spin_mois)
        self.Bind(wx.EVT_SPINCTRL, self.OnChangeParametres, self.ctrl_annee)
        self.Bind(wx.EVT_CHOICE, self.OnChangeParametres, self.ctrl_activite)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.Detail, self.bouton_detail)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.Supprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.Apercu, self.bouton_apercu)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.Imprimer, self.bouton_imprimer)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.ExportTexte, self.bouton_texte)
        self.Bind(wx.EVT_BUTTON, self.ctrl_contrats.ExportExcel, self.bouton_excel)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_CLOSE, self.OnBoutonAnnuler)

        # Init
        date = datetime.date.today()
        self.SetMois(mois=date.month, annee=date.year)
        self.OnChangeParametres()
    def __init__(self, parent, dictConso={}, texteInfoBulle=""):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent
        self.dictInfoConso = dictConso
        self.texteInfoBulle = texteInfoBulle

        intro = _(
            u"Prenez connaissance des informations détaillées concernant cette consommation et modifier certains de ses paramètres."
        )
        titre = _(u"Détail d'une consommation")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Calendrier_zoom.png")

        # Informations
        texteInfos = self.GetTexteInfos()
        self.staticbox_infos = wx.StaticBox(self, -1, _(u"Informations"))
        self.ctrl_infos = wx.TextCtrl(
            self, -1, texteInfos,
            style=wx.TE_MULTILINE)  #MyHtml(self, texteInfos)

        # Paramètres
        self.staticbox_param = wx.StaticBox(self, -1, _(u"Paramètres"))

        self.label_groupe = wx.StaticText(self, -1, _(u"Groupe :"))
        self.ctrl_groupe = Groupe(self,
                                  IDactivite=self.dictInfoConso.IDactivite)
        self.ctrl_groupe.SetID(self.dictInfoConso.IDgroupe)

        self.label_heure_debut = wx.StaticText(self, -1,
                                               _(u"Heure de début :"))
        self.ctrl_heure_debut = CTRL_Saisie_heure.Heure(self)
        self.ctrl_heure_debut.SetHeure(self.dictInfoConso.heure_debut)

        self.label_heure_fin = wx.StaticText(self, -1, _(u"Heure de fin :"))
        self.ctrl_heure_fin = CTRL_Saisie_heure.Heure(self)
        self.ctrl_heure_fin.SetHeure(self.dictInfoConso.heure_fin)

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Annuler"),
            cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_Depots",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent
        self.port = 0
        self.image = None

        # Bandeau
        intro = _(
            u"Vous pouvez ici capturer une photo à partir d'une webcam connectée. Cliquez sur le bouton 'Prendre une photo' pour capturer l'image puis sur 'Ok' pour valider et ouvrir l'éditeur photo qui vous permettra d'effectuer un recadrage avant l'insertion dans la fiche individuelle."
        )
        titre = _(u"Capture d'une photo")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage=Chemins.GetStaticPath("Images/32x32/Webcam.png"))

        # Vidéo
        self.ctrl_video = CTRL_Video(self, -1)
        self.bouton_capture = wx.BitmapButton(
            self, -1,
            wx.Bitmap(
                Chemins.GetStaticPath(
                    "Images/BoutonsImages/Capturer_photo.png"),
                wx.BITMAP_TYPE_ANY))

        # Boutons
        self.ctrl_ligne = wx.StaticLine(self, -1)
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Aide"),
            cheminImage=Chemins.GetStaticPath("Images/32x32/Aide.png"))
        self.bouton_options = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Options"),
            cheminImage=Chemins.GetStaticPath(
                "Images/32x32/Configuration2.png"))
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Ok"),
            cheminImage=Chemins.GetStaticPath("Images/32x32/Valider.png"))
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Annuler"),
            cheminImage=Chemins.GetStaticPath("Images/32x32/Annuler.png"))

        self.bouton_ok.Enable(False)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonCapture, self.bouton_capture)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOptions, self.bouton_options)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_CLOSE, self.OnClose)

        # Lancement de la capture vidéo
        wx.CallLater(10, self.Initialisation)
Exemple #17
0
    def __init__(self, parent, mode="gestion"):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_banque",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent
        self.mode = mode

        if self.mode == "selection":
            intro = _(
                u"Vous pouvez ici sélectionner un établissement bancaire. Double-cliquez sur une ligne pour effectuer rapidement la sélection."
            )
            titre = _(u"Sélection d'un établissement bancaire")
            self.SetTitle(_(u"Sélection d'un établissement bancaire"))
        else:
            intro = _(
                u"Vous pouvez ici saisir, modifier ou supprimer des établissements bancaires. Ceux-ci sont utilisés lors de la saisie des coordonnées bancaires des comptes des familles pour les prélèvements automatiques."
            )
            titre = _(u"Gestion des établissements bancaires")
            self.SetTitle(_(u"Gestion des établissements bancaires"))
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Banque.png")
        self.ctrl_listview = OL_Banques.ListView(
            self,
            id=-1,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_listview.MAJ()
        self.ctrl_recherche = OL_Banques.CTRL_Outils(
            self, listview=self.ctrl_listview)

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")

        if self.mode == "selection":
            imgFermer = "Images/BoutonsImages/Annuler_L72.png"
        else:
            imgFermer = "Images/BoutonsImages/Fermer_L72.png"
        self.bouton_fermer = wx.BitmapButton(
            self, wx.ID_CANCEL,
            wx.Bitmap(Chemins.GetStaticPath(imgFermer), wx.BITMAP_TYPE_ANY))
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        if self.mode != "selection":
            self.bouton_ok.Show(False)

        self.__set_properties()
        self.__do_layout()

        self.ctrl_recherche.SetFocus()

        self.Bind(wx.EVT_BUTTON, self.Ajouter, self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.Modifier, self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.Supprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBouton_ok, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
    def __init__(self, parent, mode="saisie", IDindividu=None, IDinscription=None, IDfamille=None, cp=None, ville=None, intro=None):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX)
        self.parent = parent
        self.IDindividu = IDindividu
        self.IDinscription = IDinscription
        self.IDfamille = IDfamille
        self.cp = cp
        self.ville = ville
        self.dictActivite = None
        self.IDgroupe = None
        self.mode = mode
        self.date_inscription = datetime.date.today()
        self.dict_remboursement = None

        if intro == None :
            intro = _(u"Pour inscrire un individu à une activité, vous devez sélectionner une activité, un groupe et une catégorie de tarifs. Utilisez la case Départ pour indiquer que l'individu ne fréquente plus l'activité.")
        if self.mode == "saisie" :
            titre = _(u"Saisie d'une inscription")
        else :
            titre = _(u"Modification d'une inscription")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(self, titre=titre, texte=intro, hauteurHtml=30, nomImage="Images/32x32/Activite.png")
        
        self.ctrl_famille = Choix_famille(self, IDindividu=self.IDindividu, verrouillage=self.mode!="saisie")

        # Activité
        self.staticbox_activite_staticbox = wx.StaticBox(self, -1, _(u"Activité"))
        self.ctrl_activite = CTRL_Activite(self)
        self.bouton_activites = CTRL_Bouton_image.CTRL(self, texte=_(u"Rechercher"), cheminImage="Images/32x32/Loupe.png")
        self.ctrl_activite.SetMinSize((-1, self.bouton_activites.GetSize()[1]))

        # Groupe
        self.staticbox_groupe_staticbox = wx.StaticBox(self, -1, _(u"Groupe"))
        self.ctrl_groupes = ListBox(self, type="groupes")
        self.ctrl_groupes.SetMinSize((-1, 100))

        # Catégorie
        self.staticbox_categorie_staticbox = wx.StaticBox(self, -1, _(u"Catégorie de tarif"))
        self.ctrl_categories = ListBox(self, type="categories")
        self.ctrl_categories.SetMinSize((-1, 100))

        # Départ
        self.staticbox_depart_staticbox = wx.StaticBox(self, -1, _(u"Départ de l'activité"))
        self.ctrl_check_depart = wx.CheckBox(self, -1, _(u"L'individu ne fréquente plus l'activité depuis le"))
        self.ctrl_date_depart = CTRL_Saisie_date.Date2(self)
        self.ctrl_date_depart.SetDate(datetime.date.today())
        self.bouton_remboursement = wx.Button(self, -1, _(u"Remboursement"))

        self.bouton_aide = CTRL_Bouton_image.CTRL(self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(self, id=wx.ID_CANCEL, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonActivites, self.bouton_activites)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckDepart, self.ctrl_check_depart)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonRemboursement, self.bouton_remboursement)

        # Init contrôles
        self.ctrl_famille.SetID(self.IDfamille)
        if self.mode != "saisie" :
            self.bouton_activites.Show(False)
            self.Importation()

        if self.mode == "saisie" :
            if cp == None :
                # Recherche cp et ville
                dict_coords = UTILS_Titulaires.GetCoordsIndividu(self.IDindividu)
                if dict_coords != None :
                    self.cp = dict_coords["cp_resid"]
                    self.ville = dict_coords["ville_resid"]

        self.OnCheckDepart()
Exemple #19
0
    def __init__(self,
                 parent,
                 colonnes_dispo=[],
                 colonnes_defaut=[],
                 colonnes_selection=[]):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Mémorisation des colonnes
        self.colonnes_dispo = colonnes_dispo
        self.colonnes_defaut = colonnes_defaut
        self.colonnes_selection = colonnes_selection
        self.dict_colonnes = self.GetDictColonnes()

        intro = _(
            u"Vous pouvez configurer ici les colonnes de la liste. Double-cliquez sur les titres de colonnes disponibles pour les inclure dans votre sélection ou utilisez les flèches droite et gauche. Les flèches haut et bas permettent de modifier l'ordre des colonnes sélectionnées."
        )
        titre = _(u"Configuration de la liste")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Configuration2.png")

        # Elements
        self.box_elements_staticbox = wx.StaticBox(
            self, wx.ID_ANY, _(u"Organisation des colonnes"))

        self.label_dispo = wx.StaticText(self, wx.ID_ANY,
                                         _(u"Colonnes disponibles"))
        self.ctrl_dispo = CTRL_Dispo(self)
        self.ctrl_dispo.SetMinSize((250, 50))

        self.ctrl_recherche_dispo = BarreRecherche(self, ctrl=self.ctrl_dispo)

        self.bouton_droite_double = wx.BitmapButton(
            self, -1,
            wx.Bitmap(
                Chemins.GetStaticPath("Images/16x16/Fleche_double_droite.png"),
                wx.BITMAP_TYPE_ANY))
        self.bouton_droite = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Avancer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_gauche = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Reculer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_gauche_double = wx.BitmapButton(
            self, -1,
            wx.Bitmap(
                Chemins.GetStaticPath("Images/16x16/Fleche_double_gauche.png"),
                wx.BITMAP_TYPE_ANY))

        self.label_selection = wx.StaticText(self, wx.ID_ANY,
                                             _(u"Colonnes sélectionnées"))
        self.ctrl_selection = CTRL_Selection(self)
        self.ctrl_selection.SetMinSize((250, 50))

        self.bouton_monter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Fleche_haut.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_descendre = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Fleche_bas.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_reinitialiser = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Actualiser.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Annuler"),
            cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonDroiteDouble,
                  self.bouton_droite_double)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonGaucheDouble,
                  self.bouton_gauche_double)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonDroite, self.bouton_droite)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonGauche, self.bouton_gauche)
        self.Bind(wx.EVT_BUTTON, self.ctrl_selection.Monter,
                  self.bouton_monter)
        self.Bind(wx.EVT_BUTTON, self.ctrl_selection.Descendre,
                  self.bouton_descendre)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonReinit,
                  self.bouton_reinitialiser)

        # Init contrôle
        self.ctrl_dispo.MAJ()
        self.ctrl_selection.MAJ()
Exemple #20
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        # Bandeau
        intro = _(
            u"Cette fonction vous permet d'identifier rapidement les familles ayant des impayés sur une période donnée. Commencez par saisir une période puis sélectionnez un groupe d'activités. Les résultats peuvent être regroupés par activité ou par famille. Ceux-ci peuvent ensuite être édités sous forme de PDF ou exportés sous Excel."
        )
        titre = _(u"Synthèse des impayés")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Diagramme.png")
        self.SetTitle(titre)

        # Panel Paramètres
        self.ctrl_parametres = Parametres(self)

        # CTRL Coefficients
        self.staticbox_stats_staticbox = wx.StaticBox(self, -1,
                                                      _(u"Résultats"))
        self.ctrl_stats = CTRL_Synthese_impayes.CTRL(self)

        # Commandes de liste
        self.bouton_apercu = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_excel = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Excel.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_ouvrir_fiche = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Famille.png"),
                      wx.BITMAP_TYPE_ANY))

        # Commandes de résultats
        self.label_regroupement = wx.StaticText(self, -1, _(u"Regroupement :"))
        self.ctrl_regroupement = wx.Choice(
            self, -1, choices=[_(u"Activités"),
                               _(u"Familles")])
        self.ctrl_regroupement.Select(0)

        self.label_periode = wx.StaticText(self, -1, _(u"Période :"))
        self.ctrl_periode = wx.Choice(self,
                                      -1,
                                      choices=[_(u"Mois"),
                                               _(u"Année")])
        self.ctrl_periode.Select(0)

        self.check_details = wx.CheckBox(self, -1, _(u"Afficher détails"))
        self.check_details.SetValue(True)

        self.hyper_developper = self.Build_Hyperlink_developper()
        self.label_barre = wx.StaticText(self, -1, u"|")
        self.hyper_reduire = self.Build_Hyperlink_reduire()

        # Commandes
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.Bind(wx.EVT_BUTTON, self.OnBoutonImprimer, self.bouton_apercu)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonExcel, self.bouton_excel)
        self.Bind(wx.EVT_BUTTON, self.OnOuvrirFiche, self.bouton_ouvrir_fiche)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_CHOICE, self.OnChoixRegroupement,
                  self.ctrl_regroupement)
        self.Bind(wx.EVT_CHOICE, self.OnChoixPeriode, self.ctrl_periode)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckDetails, self.check_details)

        self.__set_properties()
        self.__do_layout()

        # Initialisation des contrôles
        anneeActuelle = datetime.date.today().year
        self.ctrl_parametres.ctrl_date_debut.SetDate(
            datetime.date(anneeActuelle, 1, 1))
        self.ctrl_parametres.ctrl_date_fin.SetDate(
            datetime.date(anneeActuelle, 12, 31))

        self.MAJ()
Exemple #21
0
    def __init__(self, parent, empecheAnnulation=False):
        wx.Dialog.__init__(self, parent, -1, style=wx.DEFAULT_DIALOG_STYLE)
        self.parent = parent
        self.empecheAnnulation = empecheAnnulation

        self.logo = None

        intro = _(
            u"Saisissez ici les informations concernant l'organisateur. Ces données seront utilisées dans les différents documents édités par le logiciel."
        )
        titre = _(u"L'organisateur")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Organisateur.png")

        self.staticbox_nom_staticbox = wx.StaticBox(
            self, -1, _(u"Nom de l'organisateur"))
        self.label_nom = wx.StaticText(self, -1, _(u"Nom :"))
        self.ctrl_nom = wx.TextCtrl(self, -1, u"")

        self.staticbox_coords_staticbox = wx.StaticBox(self, -1,
                                                       _(u"Coordonnées"))
        self.label_rue = wx.StaticText(self, -1, _(u"Rue :"))
        self.ctrl_rue = wx.TextCtrl(self, -1, u"", style=wx.TE_MULTILINE)
        self.label_adresse = wx.StaticText(self, -1, _(u"C.P. :"))
        self.ctrl_adresse = CTRL_Saisie_adresse.Adresse(self)
        self.label_tel = wx.StaticText(self, -1, _(u"Tél :"))
        self.ctrl_tel = CTRL_Saisie_tel.Tel(self, intitule=_(u"siège"))
        self.label_mail = wx.StaticText(self, -1, _(u"Email :"))
        self.ctrl_mail = CTRL_Saisie_mail.Mail(self)
        self.label_fax = wx.StaticText(self, -1, _(u"Fax :"))
        self.ctrl_fax = CTRL_Saisie_tel.Tel(self, intitule=_(u"fax"))
        self.label_site = wx.StaticText(self, -1, _(u"Site internet :"))
        self.ctrl_site = wx.TextCtrl(self, -1, u"")

        self.staticbox_numeros_staticbox = wx.StaticBox(
            self, -1, _(u"Numéros d'identification"))
        self.label_agrement = wx.StaticText(self, -1,
                                            _(u"Numéro agrément :"))
        self.ctrl_agrement = wx.TextCtrl(self, -1, u"")
        self.label_siret = wx.StaticText(self, -1, _(u"Numéro SIRET :"))
        self.ctrl_siret = wx.TextCtrl(self, -1, u"")
        self.label_ape = wx.StaticText(self, -1, _(u"Code APE :"))
        self.ctrl_ape = wx.TextCtrl(self, -1, u"")

        self.staticbox_logo_staticbox = wx.StaticBox(self, -1, _(u"Logo"))
        self.ctrl_logo = CTRL_Logo.CTRL(self,
                                        qualite=100,
                                        couleurFond=wx.Colour(255, 255, 255),
                                        size=(83, 83))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_visualiser = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Loupe.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Annuler"),
            cheminImage="Images/32x32/Annuler.png")

        # Empêche l'annulation
        if self.empecheAnnulation == True:
            self.bouton_annuler.Show(False)
            self.EnableCloseButton(False)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonModifierLogo,
                  self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonSupprimerLogo,
                  self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonVisualiserLogo,
                  self.bouton_visualiser)

        self.Importation()
    def __init__(self,
                 parent,
                 grid=None,
                 label="",
                 IDindividu=None,
                 date=None,
                 dictTransports=[]):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent
        self.grid = grid
        self.IDindividu = IDindividu
        self.date = date
        self.dictTransports = dictTransports

        intro = _(
            u"Vous pouvez ici saisir, modifier ou supprimer des transports.")
        titre = _(u"Transports %s") % label
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Transport.png")

        self.ctrl_listview = OL_Transports_grille.ListView(
            self,
            id=-1,
            grid=grid,
            IDindividu=IDindividu,
            date=date,
            dictTransports=dictTransports,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_listview.MAJ()

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.Ajouter, self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.Modifier, self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.Supprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
Exemple #23
0
    def __init__(self,
                 parent,
                 grid=None,
                 IDactivite=None,
                 date=None,
                 IDunite=None,
                 IDgroupe=None,
                 nomGroupe=None,
                 liste_evenements=[]):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        intro = _(
            u"Vous pouvez ici saisir, modifier ou supprimer des évènements.")
        titre = _(u"Evènements")
        if date != None and nomGroupe != None:
            titre = _(u"Evènements du %s (%s)") % (
                UTILS_Dates.DateComplete(date), nomGroupe)
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Evenement.png")

        self.ctrl_listview = OL_Evenements.ListView(
            self,
            id=-1,
            grid=grid,
            IDactivite=IDactivite,
            date=date,
            IDunite=IDunite,
            IDgroupe=IDgroupe,
            liste_evenements=liste_evenements,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_listview.MAJ()

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Ajouter,
                  self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Modifier,
                  self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Supprimer,
                  self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
    def __init__(self, parent, fichierOuvert=None):
        wx.Dialog.__init__(self, parent, id=-1, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX)
        self.fichierOuvert = fichierOuvert
        if self.fichierOuvert != None and "[RESEAU]" in self.fichierOuvert :
            self.fichierOuvert = self.fichierOuvert[self.fichierOuvert.index("[RESEAU]"):]

        # Bandeau
        titre = _(u"Ouvrir un fichier")
        intro = _(u"Sélectionnez le mode Local pour afficher les fichiers disponibles sur cet ordinateur. Pour afficher les fichiers réseau, sélectionnez le mode Réseau, saisissez les codes d'accès MySQL puis cliquez sur le bouton Valider. Double-cliquez sur le nom d'un fichier dans la liste pour l'ouvrir.")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(self, titre=titre, texte=intro, hauteurHtml=30, nomImage="Images/32x32/Fichier_ouvrir.png")
        self.SetTitle(titre)

        # Mode
        self.box_mode_staticbox = wx.StaticBox(self, -1, _(u"Mode"))
        self.radio_local = wx.RadioButton(self, -1, _(u"Local"), style=wx.RB_GROUP)
        self.radio_reseau = wx.RadioButton(self, -1, _(u"Réseau"))
        
        # Codes d'accès
        self.box_codes_staticbox = wx.StaticBox(self, -1, _(u"Codes d'accès réseau"))
        self.label_port = wx.StaticText(self, -1, _(u"Port :"))
        self.ctrl_port = wx.TextCtrl(self, -1, u"3306", style=wx.TE_CENTRE)
        self.label_hote = wx.StaticText(self, -1, _(u"Hôte :"))
        self.ctrl_hote = wx.TextCtrl(self, -1, u"")
        self.label_utilisateur = wx.StaticText(self, -1, _(u"Utilisateur :"))
        self.ctrl_utilisateur = wx.TextCtrl(self, -1, u"")
        self.label_motdepasse = wx.StaticText(self, -1, _(u"Mot de passe :"))
        self.ctrl_motdepasse = wx.TextCtrl(self, -1, u"", style=wx.TE_PASSWORD)
        self.bouton_valider_codes = wx.Button(self, -1, _(u"Valider"), style=wx.BU_EXACTFIT)
        self.bouton_importer_codes = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Document_import.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_exporter_codes = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Document_export.png"), wx.BITMAP_TYPE_ANY))

        
        # Liste fichiers
        self.box_fichiers_staticbox = wx.StaticBox(self, -1, _(u"Liste des fichiers"))
        self.ctrl_fichiers = CTRL_Liste_fichiers.CTRL(self, mode="local")
        self.ctrl_fichiers.SetMinSize((-1, 400))
        self.bouton_modifier_fichier = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"), wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer_fichier = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"), wx.BITMAP_TYPE_ANY))
        self.ctrl_image = wx.StaticBitmap(self, -1, wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Updater.png"), wx.BITMAP_TYPE_ANY))
        self.hyper_telecharger = Hyperlien(self, label=_(u"Télécharger d'autres fichiers exemples"), infobulle=_(u"Cliquez ici pour télécharger d'autres fichiers exemples sur internet"), URL="telecharger")

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(self, texte=_(u"Annuler"), cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_RADIOBUTTON, self.OnChoixMode, self.radio_local)
        self.Bind(wx.EVT_RADIOBUTTON, self.OnChoixMode, self.radio_reseau)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonValiderCodes, self.bouton_valider_codes)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonImporterCodes, self.bouton_importer_codes)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonExporterCodes, self.bouton_exporter_codes)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonModifierFichier, self.bouton_modifier_fichier)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonSupprimerFichier, self.bouton_supprimer_fichier)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAnnuler, self.bouton_annuler)
        self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnBoutonOk, self.ctrl_fichiers)
        
        # Init contrôles
        self.OnChoixMode(None) 
Exemple #25
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent

        intro = _(
            u"Vous pouvez ici saisir, modifier ou supprimer des types de cotisations."
        )
        titre = _(u"Gestion des types de cotisations")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Identite.png")
        self.ctrl_listview = OL_Types_cotisations.ListView(
            self,
            id=-1,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_listview.MAJ()
        self.ctrl_recherche = OL_Types_cotisations.CTRL_Outils(
            self, listview=self.ctrl_listview)

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_defaut = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ok.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.Ajouter, self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.Modifier, self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.Supprimer, self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.SetDefaut, self.bouton_defaut)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
Exemple #26
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent

        intro = _(
            u"Vous pouvez ici imprimer la liste des anniversaires des individus inscrits sur les activités cochées et présents sur la période donnée. Il est possible d'inclure un thème graphique et les photos individuelles."
        )
        titre = _(u"Liste des anniversaires")
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Anniversaire.png")

        # Périodes
        self.box_periodes_staticbox = wx.StaticBox(self, -1, _(u"Période"))
        self.ctrl_periodes = CTRL_Grille_periode.CTRL(self)
        self.ctrl_periodes.SetMinSize((200, 150))

        # Options
        self.box_options_staticbox = wx.StaticBox(self, -1, _(u"Options"))

        self.check_photos = wx.CheckBox(self, -1, u"")
        self.check_photos.SetValue(True)
        self.label_photos = wx.StaticText(self, -1,
                                          _(u"Afficher les photos :"))
        self.ctrl_photos = wx.Choice(self,
                                     -1,
                                     choices=[
                                         _(u"Petite taille"),
                                         _(u"Moyenne taille"),
                                         _(u"Grande taille")
                                     ])
        self.ctrl_photos.SetSelection(1)

        self.check_theme = wx.CheckBox(self, -1, u"")
        self.check_theme.SetValue(True)
        self.label_theme = wx.StaticText(self, -1, _(u"Inclure le thème :"))
        self.ctrl_theme = wx.Choice(self, -1, choices=THEMES.keys())
        self.ctrl_theme.SetStringSelection(_(u"Feuille d'été"))

        # Activités
        self.box_activites_staticbox = wx.StaticBox(self, -1, _(u"Activités"))
        self.ctrl_activites = CTRL_Selection_activites.CTRL(self)

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aperçu"), cheminImage="Images/32x32/Apercu.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self.OnCheckPhotos, self.check_photos)
        self.Bind(wx.EVT_CHECKBOX, self.OnCheckTheme, self.check_theme)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)

        # Init Contrôles
        self.OnCheckPhotos(None)
        self.bouton_ok.SetFocus()
Exemple #27
0
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX
                           | wx.THICK_FRAME)
        self.parent = parent
        self.nom_fichier = None

        intro = _(
            u"Vous pouvez ici importer un lot de photos individuelles depuis une photo de groupe. Chargez la photo et Noethys se chargera de détecter les visages. Vous devrez ensuite identifier chaque photo : Double-cliquez sur une photo pour l'associer à un individu. Cliquez sur Enregistrer pour terminer."
        )
        titre = _(u"Importer des photos individuelles")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Photos.png")

        self.ctrl_image = wx.StaticBitmap(self,
                                          -1,
                                          bitmap=wx.NullBitmap,
                                          size=TAILLE_IMAGE_ORIGINALE,
                                          style=wx.SUNKEN_BORDER)
        self.bouton_image = wx.Button(self, -1, _(u"Charger une image"))
        self.bouton_sauvegarder = wx.Button(
            self, -1, _(u"Enregistrer les photos identifiées"))
        self.label_infos = wx.StaticText(
            self,
            -1,
            _(u"Cliquez le bouton Charger\npour rechercher la photo de\ngroupe à analyser."
              ),
            style=wx.ALIGN_CENTER)

        self.ctrl_listview = ListView(self,
                                      id=-1,
                                      style=wx.LC_REPORT | wx.SUNKEN_BORDER
                                      | wx.LC_SINGLE_SEL | wx.LC_HRULES
                                      | wx.LC_VRULES)
        self.ctrl_listview.MAJ()

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonFichier, self.bouton_image)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonEnregistrer,
                  self.bouton_sauvegarder)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)

        self.AnalysePhoto()
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_Export_noethysweb",
                           style=wx.DEFAULT_DIALOG_STYLE)
        self.parent = parent

        # Bandeau
        intro = _(
            u"Utilisez cette fonctionnalité pour convertir votre base de données au format Noethysweb. Saisissez un mot de passe deux fois et cliquez sur le bouton Générer."
        )
        titre = _(u"Exporter les données vers Noethysweb")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Document_export.png")

        # Fichier de destination
        self.box_destination_staticbox = wx.StaticBox(self, -1,
                                                      _(u"Destination"))
        self.label_nom = wx.StaticText(self, -1, u"Nom :")
        nom_fichier = _(u"Noethysweb_%s") % datetime.datetime.now().strftime(
            "%Y%m%d_%H%M")
        self.ctrl_nom = wx.TextCtrl(self, -1, nom_fichier)

        self.label_repertoire = wx.StaticText(self, -1, u"Répertoire :")
        sp = wx.StandardPaths.Get()
        cheminDefaut = sp.GetDocumentsDir()
        self.ctrl_repertoire = wx.TextCtrl(self, -1, cheminDefaut)
        self.bouton_repertoire = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Repertoire.png"),
                      wx.BITMAP_TYPE_ANY))

        # Mot de passe
        self.box_cryptage_staticbox = wx.StaticBox(self, -1, _(u"Cryptage"))
        self.label_mdp = wx.StaticText(self, -1, _(u"Mot de passe :"))
        self.ctrl_mdp = wx.TextCtrl(self, -1, u"", style=wx.TE_PASSWORD)
        self.label_confirmation = wx.StaticText(self, -1, _(u"Confirmation :"))
        self.ctrl_confirmation = wx.TextCtrl(self,
                                             -1,
                                             u"",
                                             style=wx.TE_PASSWORD)

        # CTRL Editeur d'Emails pour récupérer la version HTML d'un texte XML
        self.ctrl_editeur = CTRL_Editeur_email.CTRL(self)
        self.ctrl_editeur.Show(False)

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_generer = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Générer"),
            cheminImage="Images/32x32/Sauvegarder.png")
        self.bouton_annuler = CTRL_Bouton_image.CTRL(
            self,
            id=wx.ID_CANCEL,
            texte=_(u"Fermer"),
            cheminImage="Images/32x32/Annuler.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.OnBoutonRepertoire,
                  self.bouton_repertoire)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonGenerer, self.bouton_generer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
    def __init__(self, parent, listeFichiers=None):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent
        self.listeFichiers = listeFichiers

        # Bandeau
        intro = _(
            u"Cliquez simplement sur le bouton Importer pour importer dans Noethys les données cochées."
        )
        titre = _(u"Importation des données")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Nomadhys.png")

        # Données
        self.box_donnees_staticbox = wx.StaticBox(self, wx.ID_ANY,
                                                  _(u"Données à importer"))
        self.ctrl_donnees = OL_Synchronisation_donnees.ListView(
            self,
            id=-1,
            listeFichiers=self.listeFichiers,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_donnees.SetMinSize((100, 100))
        self.bouton_apercu = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Apercu.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_imprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Imprimante.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_texte = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Texte2.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_excel = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Excel.png"),
                      wx.BITMAP_TYPE_ANY))
        self.ctrl_recherche = OL_Synchronisation_donnees.CTRL_Outils(
            self, listview=self.ctrl_donnees, afficherCocher=True)
        self.check_cacher_doublons = wx.CheckBox(self, -1,
                                                 _(u"Cacher les doublons"))
        self.check_cacher_doublons.SetValue(True)
        self.label_regroupement = wx.StaticText(self, -1, _(u"Regrouper par"))
        self.ctrl_regroupement = wx.Choice(
            self, -1, choices=[_(u"Catégorie"),
                               _(u"Action"),
                               _(u"Individu")])
        self.ctrl_regroupement.Select(0)

        # Journal
        self.box_journal_staticbox = wx.StaticBox(self, wx.ID_ANY,
                                                  _(u"Journal d'évènements"))
        self.ctrl_journal = wx.TextCtrl(self,
                                        wx.ID_ANY,
                                        u"",
                                        style=wx.TE_MULTILINE | wx.TE_READONLY)
        self.bouton_enregistrer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath(u"Images/16x16/Sauvegarder.png"),
                      wx.BITMAP_TYPE_ANY))

        # Boutons
        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_ok = CTRL_Bouton_image.CTRL(
            self,
            texte=_(u"Importer"),
            cheminImage="Images/32x32/Fleche_bas.png")
        self.bouton_fermer = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Fermer"), cheminImage="Images/32x32/Fermer.png")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self.OnCheckCacherDoublons,
                  self.check_cacher_doublons)
        self.Bind(wx.EVT_CHOICE, self.OnChoixRegroupement,
                  self.ctrl_regroupement)
        self.Bind(wx.EVT_BUTTON, self.ctrl_donnees.Apercu, self.bouton_apercu)
        self.Bind(wx.EVT_BUTTON, self.ctrl_donnees.Imprimer,
                  self.bouton_imprimer)
        self.Bind(wx.EVT_BUTTON, self.ctrl_donnees.ExportTexte,
                  self.bouton_texte)
        self.Bind(wx.EVT_BUTTON, self.ctrl_donnees.ExportExcel,
                  self.bouton_excel)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonEnregistrer,
                  self.bouton_enregistrer)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonOk, self.bouton_ok)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonFermer, self.bouton_fermer)
        self.Bind(wx.EVT_CLOSE, self.OnBoutonFermer)

        # Init
        self.ctrl_donnees.MAJ()
    def __init__(self, parent):
        wx.Dialog.__init__(self,
                           parent,
                           -1,
                           name="DLG_Modeles_commandes",
                           style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
                           | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX)
        self.parent = parent

        intro = _(
            u"Vous pouvez ici créer, modifier ou supprimer des modèles de commandes de repas. Ces modèles permettent de renseigner notamment l'identité du restaurateur et les différentes colonnes qui composeront le tableau des commandes."
        )
        titre = _(u"Modèles de commandes de repas")
        self.SetTitle(titre)
        self.ctrl_bandeau = CTRL_Bandeau.Bandeau(
            self,
            titre=titre,
            texte=intro,
            hauteurHtml=30,
            nomImage="Images/32x32/Repas.png")
        self.ctrl_listview = OL_Modeles_commandes.ListView(
            self,
            id=-1,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.ctrl_listview.MAJ()
        self.ctrl_recherche = OL_Modeles_commandes.CTRL_Outils(
            self, listview=self.ctrl_listview)

        self.bouton_ajouter = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ajouter.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_modifier = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Modifier.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_supprimer = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Supprimer.png"),
                      wx.BITMAP_TYPE_ANY))
        self.bouton_defaut = wx.BitmapButton(
            self, -1,
            wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Ok.png"),
                      wx.BITMAP_TYPE_ANY))

        self.bouton_aide = CTRL_Bouton_image.CTRL(
            self, texte=_(u"Aide"), cheminImage="Images/32x32/Aide.png")
        self.bouton_fermer = wx.BitmapButton(
            self, wx.ID_CANCEL,
            wx.Bitmap(
                Chemins.GetStaticPath("Images/BoutonsImages/Fermer_L72.png"),
                wx.BITMAP_TYPE_ANY))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Ajouter,
                  self.bouton_ajouter)
        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Modifier,
                  self.bouton_modifier)
        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.Supprimer,
                  self.bouton_supprimer)
        self.Bind(wx.EVT_BUTTON, self.ctrl_listview.SetDefaut,
                  self.bouton_defaut)
        self.Bind(wx.EVT_BUTTON, self.OnBoutonAide, self.bouton_aide)