Skip to content

Commit

Permalink
[Fix partially kbss-cvut/record-manager-ui#36] Export modified date
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Jul 10, 2024
1 parent d05e5dc commit 077c007
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/main/java/cz/cvut/kbss/study/model/export/ExportRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class ExportRecord {

private Date created;

private Date modified;

private String label;

private String phase;
Expand Down Expand Up @@ -83,6 +85,14 @@ public void setCreated(Date created) {
this.created = created;
}

public Date getModified() {
return modified;
}

public void setModified(Date modified) {
this.modified = modified;
}

public String getLabel() {
return label;
}
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/cz/cvut/kbss/study/model/export/RawRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class RawRecord {

@OWLDataProperty(iri = "http://created")
private Date created;
@OWLDataProperty(iri = "http://modified")
private Date modified;
@OWLDataProperty(iri = "http://label")
private String label;
@OWLObjectProperty(iri = "http://phase")
Expand Down Expand Up @@ -87,6 +89,14 @@ public void setCreated(Date created) {
this.created = created;
}

public Date getModified() {
return modified;
}

public void setModified(Date modified) {
this.modified = modified;
}

public String getLabel() {
return label;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private List<ExportRecord> findExportRecordsData(List<RawRecord> rawRecords){
er.setFuselage(r.getFuselage());
er.setUri(r.getUri());
er.setCreated(r.getCreated());
er.setModified(r.getModified());
er.setLabel(r.getLabel());
er.setFailDate(r.getFailDate());
er.setFlightHours(r.getFlightHours());
Expand Down Expand Up @@ -119,7 +120,7 @@ private void addDataToExcel(XSSFWorkbook workbook, List<ExportRecord> data) thro
r.createCell(2).setCellValue(rec.getCreated());
// r.createCell(3).setCellValue(rec.ed);
// r.createCell(4).setCellValue(rec.);
// r.createCell(5).setCellValue(rec.);
r.createCell(5).setCellValue(rec.getModified());
r.createCell(6).setCellValue(rec.getLabel());
r.createCell(7).setCellValue(rec.getInstitution());
r.createCell(8).setCellValue(rec.getAircraftType());
Expand Down

0 comments on commit 077c007

Please sign in to comment.