export for MP list

This commit is contained in:
2019-02-08 14:48:48 +01:00
parent da9e2ba7dd
commit e6b7297e3d
3 changed files with 24 additions and 0 deletions

View File

@ -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();
}

View File

@ -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;
}

View File

@ -43,6 +43,11 @@
<b:dataTableColumn label="" value="#{col.duration}" contentStyle="font-size: 120%" orderable="false" />
</b:dataTable>
</b:tab>
<b:tab title="Anhang">
<p>
<b:inputTextarea value="#{doneModel.attach}" readonly="true" />
</p>
</b:tab>
</b:tabView>
<b:row rendered="#{doneModel.daySummary != null}">
<b:column colXs="4">