Revize 4ed6b05c
Přidáno uživatelem Vojtěch Bartička před téměř 3 roky(ů)
Backend/Core/Services/DocumentService/DocumentServiceEF.cs | ||
---|---|---|
161 | 161 |
.Include(fa => fa.Annotations) |
162 | 162 |
.ThenInclude(a => a.User) |
163 | 163 |
.Single(fa => fa.Document == document); |
164 |
|
|
164 |
|
|
165 |
dli.FinalizedAnnotationId = finalizedAnnotation.Id; |
|
165 | 166 |
dli.FinalizedState = finalizedAnnotation.State; |
166 | 167 |
dli.FinalAnnotations = new(); |
167 | 168 |
|
... | ... | |
173 | 174 |
UserId = annotation.User.Id, |
174 | 175 |
Username = annotation.User.Username, |
175 | 176 |
UserFirstName = annotation.User.Name, |
176 |
UserSurname = annotation.User.Surname |
|
177 |
UserSurname = annotation.User.Surname,
|
|
177 | 178 |
}); |
178 | 179 |
} |
179 | 180 |
|
Backend/Models/Documents/DocumentListInfo.cs | ||
---|---|---|
16 | 16 |
public int RequiredAnnotations { get; set; } |
17 | 17 |
public List<DocumentUserInfo> AnnotatingUsers { get; set; } = new(); |
18 | 18 |
public bool FinalizedExists { get; set; } |
19 |
public Guid? FinalizedAnnotationId { get; set; } |
|
19 | 20 |
public EState? FinalizedState { get; set; } |
20 | 21 |
public List<DocumentAnnotationInfo>? FinalAnnotations { get; set; } |
21 | 22 |
} |
Také k dispozici: Unified diff
Added finalized annotation ID