#27 Kuljetustyyppi raporteille

Ominaisuus muodollisesti valmis, vaatii vielä testausta

Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
2026-05-30 01:31:34 +03:00
parent 853bda3a4b
commit 7fa2ccfd25
4 changed files with 38 additions and 22 deletions
@@ -1,6 +1,7 @@
package fi.lpam.gui;
import fi.lpam.Main;
import fi.lpam.dataluokat.Kuljetus;
import fi.lpam.dataluokat.RaporttiRivi;
import fi.lpam.gui.elementit.FontLabel;
import fi.lpam.tulostajat.KuljetusRaporttiTulostaja;
@@ -75,6 +76,10 @@ public class KuljetusRaportit extends TabPohja {
tcPvm.setCellFactory(_ ->new PaivamaaraTableCell());
tcPvm.setCellValueFactory(new PropertyValueFactory<>("pvm"));
TableColumn<RaporttiRivi, Kuljetus.Tyyppi> tcTyyppi = new TableColumn<>("Tyyppi");
tcTyyppi.setMinWidth(150);
tcTyyppi.setCellValueFactory(new PropertyValueFactory<>("tyyppi"));
TableColumn<RaporttiRivi, Integer> tcSalaatit = new TableColumn<>("Salaatit");
tcSalaatit.setMinWidth(100);
tcSalaatit.setCellValueFactory(new PropertyValueFactory<>("salaatit"));
@@ -111,9 +116,10 @@ public class KuljetusRaportit extends TabPohja {
tcYhteyshenkilönSähköposti.setMinWidth(200);
tcYhteyshenkilönSähköposti.setCellValueFactory(new PropertyValueFactory<>("yhteyshenkilönSähköposti"));
tableView.getColumns().addAll(tcNimi, tcPvm, tcSalaatit, tcPääruoat, tcJälkiruoat, tcErva, tcLisätiedot,
tableView.getColumns().addAll(tcNimi, tcPvm, tcTyyppi, tcSalaatit, tcPääruoat, tcJälkiruoat, tcErva, tcLisätiedot,
tcYhteyshenkilönNimi, tcLaskutusOsoite, tcYhteyshenkilönPuhelinnumero, tcYhteyshenkilönSähköposti);
tableView.setPlaceholder(new FontLabel(BUTTON_FONT, "Hae raportti"));
for (TableColumn<RaporttiRivi, ?> sarake : tableView.getColumns()) {
sarake.setSortable(false);
sarake.setEditable(false);