예제 #1
0
 public ReclamerDuPrompt(Tresorier t, Employe e)
 {
     this.t = t;
     this.e = e;
 }
예제 #2
0
 public ModifierPaiePrompt(Tresorier t, Employe e)
 {
     employe   = e;
     tresorier = t;
 }
예제 #3
0
 public ChangerTitrePrompt(Tresorier t, Employe e)
 {
     employe   = e;
     tresorier = t;
 }
예제 #4
0
 public ModifierFondsPrompt(Tresorier t, Employe e, bool ajout)
 {
     this.t     = t;
     this.e     = e;
     this.ajout = ajout;
 }
예제 #5
0
        public EmployeGump(Tresorier t, Employe e, bool gestion)
            : base(0, 0)
        {
            employe      = e;
            tresorier    = t;
            this.gestion = gestion;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;

            AddPage(0);
            AddBackground(31, 48, 416, 298, 9250);
            AddBackground(39, 56, 400, 282, 3500);
            AddLabel(176, 75, 1301, @"Fiche d'Employé");

            AddLabel(81, 110, 1301, @"Nom :");
            AddLabel(210, 110, 1301, e.Nom);
            if (gestion)
            {
                AddButton(383, 109, 4005, 4006, (int)Buttons.ChangerNom, GumpButtonType.Reply, 0);
            }

            AddLabel(81, 140, 1301, @"Titre :");
            AddLabel(210, 140, 1301, e.Titre);
            if (gestion)
            {
                AddButton(383, 139, 4005, 4006, (int)Buttons.ChangerTitre, GumpButtonType.Reply, 0);
            }

            AddLabel(81, 170, 1301, @"Paie mensuelle :");
            AddLabel(210, 170, 1301, e.Paie.ToString("N", Geopolitique.NFI));
            if (gestion)
            {
                AddButton(383, 169, 4005, 4006, (int)Buttons.ModifierPaie, GumpButtonType.Reply, 0);
            }

            AddLabel(82, 200, 1301, @"Dû non réclamé :");
            AddLabel(210, 200, 1301, e.Total.ToString("N", Geopolitique.NFI));
            if (gestion)
            {
                AddButton(343, 199, 4014, 4015, (int)Buttons.ReduireDu, GumpButtonType.Reply, 0);
                AddButton(383, 199, 4005, 4006, (int)Buttons.AjouterDu, GumpButtonType.Reply, 0);
            }
            else
            {
                AddButton(383, 199, 4029, 4030, (int)Buttons.ReclamerDu, GumpButtonType.Reply, 0);
            }

            AddLabel(82, 230, 1301, @"Dû non payé :");
            AddLabel(210, 230, 1301, e.NonPaye.ToString("N", Geopolitique.NFI));
            if (gestion)
            {
                AddButton(383, 229, 4029, 4030, (int)Buttons.PayerDu, GumpButtonType.Reply, 0);
            }

            AddLabel(82, 260, 1301, @"Dernière paie :");
            AddLabel(210, 260, 1301, e.LastPaie.ToString(CultureInfo.CreateSpecificCulture("fr-FR")));


            if (gestion)
            {
                AddLabel(116, 290, 1301, @"Supprimer l'employé de la liste");
                AddButton(314, 289, 4005, 4006, (int)Buttons.SupprimerEmploye, GumpButtonType.Reply, 0);
            }
        }