Esempio n. 1
0
        public void Insert(Heure uneheure)
        {
            string query = "Heure (id, heure) VALUES ("
                           + uneheure.Id + ",'"
                           + uneheure.Heuree + ")";

            this.mydbal.Insert(query);
        }
Esempio n. 2
0
 public int CompareTo(object obj)
 {
     if (ID == ((HistoLigne)obj).ID)
     {
         return(Heure.CompareTo(((HistoLigne)obj).Heure));
     }
     else
     {
         return(ID.CompareTo(((HistoLigne)obj).ID));
     }
 }
Esempio n. 3
0
 /*
  * But: Convertir un type MaDate en type string.
  * Paramètre: aucun.
  * Retour: string.
  */
 public override string ToString()
 {
     return((Jour < 10?"0" + Jour.ToString():Jour.ToString()) + "/" + (Mois < 10?"0" + Mois.ToString():Mois.ToString()) + "/" + Annee + " " + (Heure < 10?"0" + Heure.ToString():Heure.ToString()) + ":" + (Minute < 10?"0" + Minute.ToString():Minute.ToString()));
 }
Esempio n. 4
0
        //public void Update(Heure uneheure)
        //{
        //    string query = "Ville Set id = " + uneVille.Id
        //        + ", nom = '" + uneVille.Nom.Replace("'", "''")
        //        + "Where id = " + uneVille.Id;
        //    this.mydbal.Update(query);
        //}

        public void Delete(Heure uneheure)
        {
            string query = " Heure Where id = " + uneheure.Id;

            this.mydbal.Delete(query);
        }
Esempio n. 5
0
 public string ToFiche()
 {
     return($"Id : {IdEtape} Tour :{NameTour} Arrivée : {Heure.ToStringFormat()} Départ : {départ.ToStringFormat()}");
 }