fixed issue with jobtime
This commit is contained in:
		@ -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));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -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()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user