fixed issue with jobtime

This commit is contained in:
Hendrik Schutter 2018-12-06 20:34:44 +01:00
parent 783d9f9bc0
commit 1ec02d74a3
2 changed files with 9 additions and 7 deletions

View File

@ -585,7 +585,6 @@ public class MainWindowController
@FXML
public void btnPrintBillAction(ActionEvent event)
{
btnPrintBill.setDisable(true);
tapPosEdit.setDisable(false);
btnDeleteSelectedPosition.setDisable(true);
@ -593,6 +592,9 @@ public class MainWindowController
setJobPrizeLabel(0);
currentJob.setJobtime(
timedate.getSystemTime() + " " + timedate.getSystemDate());
rootCurrentJob.getChildren().remove(0,
rootCurrentJob.getChildren().size());
@ -1381,8 +1383,7 @@ public class MainWindowController
public void createNewJob()
{
currentJob = new Job(dbc.getLatestJobNumber_Job() + 1,
timedate.getSystemTime() + " " + timedate.getSystemDate());
currentJob = new Job(dbc.getLatestJobNumber_Job() + 1);
labelJobCounter.setText("Auftragsnummer: "
+ String.valueOf(dbc.getLatestJobNumber_Job() + 1));
}

View File

@ -19,18 +19,19 @@ public class Job
private ArrayList<String> positionenCat;
public Job(int pJobnumber, String pTime)
public Job(int pJobnumber)
{
this.jobnumber = pJobnumber;
this.jobtime = pTime;
positionenQuantity = new ArrayList<Integer>();
positionenName = new ArrayList<String>();
positionenValue = new ArrayList<Float>();
positionenCat = new ArrayList<String>();
// System.out.println("Größe: " + positionenName.size());
}
public void setJobtime(String jobtime)
{
this.jobtime = jobtime;
}
public int getJobnumber()