public virtual bool IsSame(SubUkol history) { return(Action == history.Action && CheckDate == history.CheckDate && CloseDate == history.CloseDate && FinishDate == history.FinishDate //&& LastChangedDate == history.LastChangedDate //to ukládáme až při ukládání && Nazev == history.Nazev && PlannedCloseDate == history.PlannedCloseDate && Popis == history.Popis && Resitel.Id == history.Resitel.Id //&& StartDate == history.StartDate //history.StartDate má detailnější datum i s hodinama vteřinama a tak TODO tváří se jako rozdílný && Status == history.Status && Komentar == history.Komentar && DeniedMessage == history.DeniedMessage && Zadavatel.Id == history.Zadavatel.Id); }
public SubUkolHistory(SubUkol arg) { SubUkol = arg; Action = arg.Action; Status = arg.Status; StartDate = arg.StartDate; PlannedCloseDate = arg.PlannedCloseDate; CloseDate = arg.CloseDate; FinishDate = arg.FinishDate; CheckDate = arg.CheckDate; Zadavatel = arg.Zadavatel; Resitel = arg.Resitel; LastChangedDate = arg.LastChangedDate; Nazev = arg.Nazev; Popis = arg.Popis; Komentar = arg.Komentar; DeniedMessage = arg.DeniedMessage; }