public virtual bool IsSame(UkolVzorkovani 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); }
public UkolVzorkovaniHistory(UkolVzorkovani arg) { UkolVzorkovani = 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; }