Resolve "Контроль прикрепления статей" #214
@ -8,6 +8,7 @@ import ru.ulstu.core.model.BaseEntity;
|
|||||||
import ru.ulstu.core.model.UserContainer;
|
import ru.ulstu.core.model.UserContainer;
|
||||||
import ru.ulstu.deadline.model.Deadline;
|
import ru.ulstu.deadline.model.Deadline;
|
||||||
import ru.ulstu.file.model.FileData;
|
import ru.ulstu.file.model.FileData;
|
||||||
|
import ru.ulstu.grant.model.Grant;
|
||||||
import ru.ulstu.timeline.model.Event;
|
import ru.ulstu.timeline.model.Event;
|
||||||
import ru.ulstu.user.model.User;
|
import ru.ulstu.user.model.User;
|
||||||
|
|
||||||
@ -118,6 +119,9 @@ public class Paper extends BaseEntity implements UserContainer {
|
|||||||
@ManyToMany(mappedBy = "papers")
|
@ManyToMany(mappedBy = "papers")
|
||||||
private List<Conference> conferences;
|
private List<Conference> conferences;
|
||||||
|
|
||||||
|
@ManyToMany(mappedBy = "papers")
|
||||||
|
private List<Grant> grants;
|
||||||
|
|
||||||
public PaperStatus getStatus() {
|
public PaperStatus getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -230,6 +234,14 @@ public class Paper extends BaseEntity implements UserContainer {
|
|||||||
this.conferences = conferences;
|
this.conferences = conferences;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Grant> getGrants() {
|
||||||
|
return grants;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrants(List<Grant> grants) {
|
||||||
|
this.grants = grants;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<User> getUsers() {
|
public Set<User> getUsers() {
|
||||||
return getAuthors();
|
return getAuthors();
|
||||||
|
@ -201,6 +201,30 @@
|
|||||||
Статус статьи
|
Статус статьи
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col" th:unless="${#lists.isEmpty(paper.grants)}">
|
||||||
|
<label>Гранты: </label>
|
||||||
|
<div th:each="grant, grantRowStat : *{papers[__${rowStat.index}__].grants}"
|
||||||
|
th:remove="tag">
|
||||||
|
<div th:unless="${grant.id}==*{id}" th:remove="tag">
|
||||||
|
<li>
|
||||||
|
<a th:href="@{'/grants/grant?id=' + ${grant.id} + ''}">
|
||||||
|
<span th:text="${grant.title} "></span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col" th:unless="${#lists.isEmpty(paper.conferences)}">
|
||||||
|
<label>Конференции: </label>
|
||||||
|
<div th:each="conference, conferenceRowStat : *{papers[__${rowStat.index}__].conferences}"
|
||||||
|
th:remove="tag">
|
||||||
|
<li>
|
||||||
|
<a th:href="@{'/conferences/conference?id=' + ${conference.id} + ''}">
|
||||||
|
<span th:text="${conference.title}"></span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user