Browse Source

fixed issue with jobtime

master
Hendrik Schutter 4 years ago
parent
commit
1ec02d74a3
  1. 7
      src/main/java/com/jFxKasse/controller/MainWindowController.java
  2. 9
      src/main/java/com/jFxKasse/datatypes/Job.java

7
src/main/java/com/jFxKasse/controller/MainWindowController.java

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

9
src/main/java/com/jFxKasse/datatypes/Job.java

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

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close