export for MP list
This commit is contained in:
@ -31,6 +31,10 @@ public class SessionControl {
|
||||
|
||||
public String doLogout() {
|
||||
bean.setLogin(null);
|
||||
bean.setSecret(null);
|
||||
bean.setForename(null);
|
||||
bean.setSurname(null);
|
||||
bean.setUsername(null);
|
||||
return Pages.START.get();
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package de.jottyfan.timetrack.modules.done;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.util.ArrayList;
|
||||
@ -159,6 +160,20 @@ public class DoneModel implements Model, Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public String getAttach() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
String thatday = new SimpleDateFormat("dd.MM.yyyy").format(day);
|
||||
for (DailySummaryBean sdb : allJobs) {
|
||||
buf.append(thatday).append("\t");
|
||||
buf.append(sdb.getDuration()).append("\t");
|
||||
buf.append(sdb.getProjectName()).append("\t");
|
||||
buf.append(sdb.getModuleName()).append("\t");
|
||||
buf.append(sdb.getJobName()).append("\t");
|
||||
buf.append("\n");
|
||||
}
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
public void setBean(DoneBean bean) {
|
||||
this.bean = bean;
|
||||
}
|
||||
|
Reference in New Issue
Block a user