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