public string PrintGroupInfo()
        {
            string info = String.Format("Name: {0}\nLast Concept: {1}\nCurrent Money: ${2}\nHard Mode: {3}\nDebut Date: {4}",
                                        Name, Concept, Loan, hardMode, Debut.ToShortDateString());

            return(info);
        }
Beispiel #2
0
 public bool SeChevauche(RendezVous rdv)
 {
     return((Debut.CompareTo(rdv.Debut) <= 0 &&
             Debut.AddMinutes(Duree).CompareTo(rdv.Debut) > 0) ||
            (Debut.CompareTo(rdv.Debut) >= 0 &&
             Debut.CompareTo(rdv.Debut.AddMinutes(rdv.Duree)) < 0));
 }
Beispiel #3
0
        public ActionResult DeleteConfirmed(int id)
        {
            Debut debut = db.debutes.Find(id);

            db.debutes.Remove(debut);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #4
0
 public ActionResult pacientEdit([Bind(Include = "ID,comments,description,month,year,minutes,seconds")] Debut debut)
 {
     if (ModelState.IsValid)
     {
         db.Entry(debut).State = EntityState.Modified;
         db.SaveChanges();
         return(pacientDetails(debut.ID));
     }
     return(View(debut));
 }
Beispiel #5
0
        // GET: Debuts/Details/5
        public ActionResult pacientDetails(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Debut debut = db.debutes.Include(d => d.type).Where(d => d.ID == id).First();

            if (debut == null)
            {
                return(HttpNotFound());
            }
            return(PartialView("~/views/Debuts/pacientDetails.cshtml", debut));
        }
Beispiel #6
0
        // GET: Debuts/Delete/5
        public ActionResult pacientDelete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Debut debut = db.debutes.Find(id);

            if (debut == null)
            {
                return(HttpNotFound());
            }
            //Debut Debut = db.anamneses.Find(id);
            db.debutes.Remove(debut);
            db.SaveChanges();
            //return View(Debut);
            return(PartialView());
        }
        protected override void insert()
        {
            ID_Chapitre = AbstractDatabase.DataBase.AjouterChapitre(FK_ID_Media, Description, Debut.ToString("hh':'mm':'ss'.'ms"), Fin.ToString("hh':'mm':'ss'.'ms"));

            TagomatiqueCache.MarkAsDirty <SignetViewModel>();
        }
Beispiel #8
0
        public bool EstDedans(DateTime t)
        {
            DateTime dateFin = Debut.AddMinutes(Duree);

            return(t.CompareTo(Debut) >= 0 && t.CompareTo(dateFin) <= 0);
        }