Exemple #1
0
        public CResultAErreur Close(DateTime dateCloture)
        {
            CResultAErreur result = CResultAErreur.True;

            // CLore le Ticket
            this.DateCloture = dateCloture;

            // Clore les Tickets Esclaves
            foreach (CDependanceTicket rel in this.RelationsEsclavesListe)
            {
                if (rel.ClotureAutoEscalve)
                {
                    CTicket ticketEscalve = rel.TicketEsclave;
                    if (ticketEscalve != null)
                    {
                        ticketEscalve.DateClotureTechnique        = this.DateClotureTechnique;
                        ticketEscalve.ResponsableClotureTechnique = this.ResponsableClotureTechnique;
                        ticketEscalve.EtatCloture  = this.EtatCloture;
                        ticketEscalve.InfosCloture = this.InfosCloture;
                        result = ticketEscalve.Close(dateCloture);
                    }
                }
            }

            return(result);
        }
        public void TiagSetTicketKeys(object[] lstCles)
        {
            CTicket ticket = new CTicket(ContexteDonnee);

            if (ticket.ReadIfExists(lstCles))
            {
                Ticket = ticket;
            }
        }
Exemple #3
0
 /// <summary>
 /// Verifi si le ticket passé est esclave de ce ticket directement ou indirectement
 /// </summary>
 /// <param name="ticket"></param>
 /// <returns></returns>
 public bool IsMaitre(CTicket ticket)
 {
     foreach (CDependanceTicket dep in RelationsEsclavesListe)
     {
         if (dep.TicketEsclave.Equals(ticket))
         {
             return(true);
         }
         else
         {
             return(dep.TicketEsclave.IsMaitre(ticket));
         }
     }
     return(false);
 }