Include project code in tasks list service for bound users
FEA: ItEr77S14BoundUsersWebServices
This commit is contained in:
parent
ac9bc371ce
commit
ecb4fa8048
2 changed files with 9 additions and 5 deletions
|
|
@ -41,6 +41,9 @@ public class TaskDTO {
|
|||
@XmlAttribute
|
||||
public String code;
|
||||
|
||||
@XmlAttribute(name = "project-code")
|
||||
public String projectCode;
|
||||
|
||||
@XmlAttribute(name = "project-name")
|
||||
public String projectName;
|
||||
|
||||
|
|
@ -61,12 +64,13 @@ public class TaskDTO {
|
|||
|
||||
public TaskDTO() {}
|
||||
|
||||
public TaskDTO(String name, String code, String projectName,
|
||||
XMLGregorianCalendar startDate, XMLGregorianCalendar endDate,
|
||||
BigDecimal progressValue, XMLGregorianCalendar progressDate,
|
||||
String effort) {
|
||||
public TaskDTO(String name, String code, String projectCode,
|
||||
String projectName, XMLGregorianCalendar startDate,
|
||||
XMLGregorianCalendar endDate, BigDecimal progressValue,
|
||||
XMLGregorianCalendar progressDate, String effort) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
this.projectCode = projectCode;
|
||||
this.projectName = projectName;
|
||||
this.startDate = startDate;
|
||||
this.endDate = endDate;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public final class TaskConverter {
|
|||
}
|
||||
|
||||
return new TaskDTO(task.getName(), orderElement.getCode(), orderElement
|
||||
.getOrder().getName(),
|
||||
.getOrder().getCode(), orderElement.getOrder().getName(),
|
||||
DateConverter.toXMLGregorianCalendar(task.getStartDate()),
|
||||
DateConverter.toXMLGregorianCalendar(task.getEndDate()),
|
||||
progressValue,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue