Beispiel #1
0
 public virtual bool IsSame(UkolOddeleni history)
 {
     return(Action == history.Action &&
            DateDeadline == history.DateDeadline &&
            DateFinish == history.DateFinish &&
            DateCheck == history.DateCheck
            //&& LastChangedDate == history.LastChangedDate //nelogické - plníme jen při ukládání
            && Nazev == history.Nazev &&
            DatePlannedClose == history.DatePlannedClose &&
            Popis == history.Popis &&
            Resitel.Id == history.Resitel.Id &&
            DateStart == history.DateStart && //nesedí ?
            Status == history.Status &&
            Zadavatel.Id == history.Zadavatel.Id && //TODO do budoucna přepsat z ID na celé objekty??
            Poznamka == history.Poznamka &&
            LessonLearned == history.LessonLearned &&
            Deleted == history.Deleted);
 }
Beispiel #2
0
 public UkolOddeleniHistory(UkolOddeleni arg)
 {
     UkolOddeleni     = arg;
     Action           = arg.Action;
     Status           = arg.Status;
     DateStart        = arg.DateStart;
     DatePlannedClose = arg.DatePlannedClose;
     DateFinish       = arg.DateFinish;
     DateCheck        = arg.DateCheck;
     DateDeadline     = arg.DateDeadline;
     Zadavatel        = arg.Zadavatel;
     Resitel          = arg.Resitel;
     Nazev            = arg.Nazev;
     Popis            = arg.Popis;
     Komentar         = arg.Komentar;
     Poznamka         = arg.Poznamka;
     DateLastChanged  = arg.DateLastChanged;
     LessonLearned    = arg.LessonLearned;
     Deleted          = arg.Deleted;
 }