#27 Kuljetustyyppi raporteille
Ominaisuus muodollisesti valmis, vaatii vielä testausta Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user