Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Have some of the nodes formatted for printing. It could still use som…
Browse files Browse the repository at this point in the history
…e tweaking, but I think it is usable.
  • Loading branch information
pavulon18 committed Jul 24, 2017
1 parent 2864aa5 commit 3bb32ea
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions src/gcemsdayoffrequestsheet/GCEMSDayOffRequestSheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,53 +107,60 @@ public void start(Stage primaryStage)
});

//Create the Vacation Day Pane
Label lblDayOffVacation = new Label("Vacation Day in Testing");
Label lblDayOffVacation = new Label("Vacation Day");
DatePicker dpDayOffVacation = new DatePicker();
Label lblEmployeeOneVDay = new Label("Employee's Signature: ");
Label lblSignatureBlankVDay = new Label("________________________");

//Create the Personal Day Pane
Label lblDayOffPersonal = new Label("Personal Day");
DatePicker dpDayOffPersonal = new DatePicker();
Label lblEmployeeOne = new Label("Employee's Signature: ");
Label lblSignatureBlank = new Label("________________________");
Label lblEmployeeOnePDay = new Label("Employee's Signature: ");
Label lblSignatureBlankPDay = new Label("________________________");

//Putting the Vacation Day Layout stuff in one Hbox Node so I can (hopefully)
//more easily add and remove it as needed.
//SignatureLines sigLineVDay = new SignatureLines();
HBox vacationHBoxLineOne = new HBox();
HBox vacationHBoxLineOne = new HBox(10);
vacationHBoxLineOne.getChildren().add(lblDayOffVacation);
vacationHBoxLineOne.getChildren().add(dpDayOffVacation);
vacationHBoxLineOne.getChildren().add(shiftDuration);
//vacationHBoxLineTwo.getChildren().add(sigLineVDay.makeSingleSignatureLine());

HBox vacationHBoxLineTwo = new HBox();
vacationHBoxLineTwo.getChildren().add(lblEmployeeOne);
vacationHBoxLineTwo.getChildren().add(lblSignatureBlank);
vacationHBoxLineTwo.getChildren().add(lblEmployeeOneVDay);
vacationHBoxLineTwo.getChildren().add(lblSignatureBlankVDay);

VBox vacationVBox = new VBox();
vacationVBox.getChildren().add(vacationHBoxLineOne);
vacationVBox.getChildren().add(vacationHBoxLineTwo);

//Building the Personal Day Layout VBox Node
//SignatureLines sigLinePDay = new SignatureLines();
HBox personalHBoxLineOne = new HBox();
HBox personalHBoxLineOne = new HBox(10);
personalHBoxLineOne.getChildren().add(lblDayOffPersonal);
personalHBoxLineOne.getChildren().add(dpDayOffPersonal);
personalHBoxLineOne.getChildren().add(shiftType);

HBox personalHBoxLineTwo = new HBox();
personalHBoxLineTwo.getChildren().add(lblEmployeeOne);
personalHBoxLineTwo.getChildren().add(lblSignatureBlank);
personalHBoxLineTwo.getChildren().add(lblEmployeeOnePDay);
personalHBoxLineTwo.getChildren().add(lblSignatureBlankPDay);

VBox personalVBox = new VBox();
personalVBox.getChildren().add(personalHBoxLineOne);
personalVBox.getChildren().add(personalHBoxLineTwo);

//Building the Swap Day Layout box ... node... whatever it is that I come up with
HBox swapEmpOneHBox = new HBox();
HBox swapEmpOneHBox = new HBox(10);
Label lblSwapEmpOne = new Label("Employee One:");
TextField tfSwapEmpOne = new TextField();
Label lblWillWorkOne = new Label("Will work");
DatePicker dpSwapOne = new DatePicker();
Label lblEmployeeOneSDayOne = new Label("Employee One's Signature: ");
Label lblSignatureBlankSDayOne = new Label("________________________");
Label lblEmployeeOneSDayTwo = new Label("Employee Two's Signature: ");
Label lblSignatureBlankSDayTwo = new Label("________________________");


ComboBox<String> swapOneShiftType;
swapOneShiftType = new ComboBox<>();
Expand All @@ -166,8 +173,7 @@ public void start(Stage primaryStage)
swapEmpOneHBox.getChildren().add(swapOneShiftType);
swapEmpOneHBox.getChildren().add(dpSwapOne);


HBox swapEmpTwoHBox = new HBox();
HBox swapEmpTwoHBox = new HBox(10);
Label lblSwapEmpTwo = new Label("Employee Two:");
TextField tfSwapEmpTwo = new TextField();
Label lblWillWorkTwo = new Label("Will work");
Expand All @@ -185,13 +191,18 @@ public void start(Stage primaryStage)
swapEmpTwoHBox.getChildren().add(dpSwapTwo);

HBox swapSigLinesOneHBox = new HBox();
swapSigLinesOneHBox.getChildren().add(lblEmployeeOne);
swapSigLinesOneHBox.getChildren().add(lblSignatureBlank);
swapSigLinesOneHBox.getChildren().add(lblEmployeeOneSDayOne);
swapSigLinesOneHBox.getChildren().add(lblSignatureBlankSDayOne);

HBox swapSigLinesTwoHBox = new HBox();
swapSigLinesTwoHBox.getChildren().add(lblEmployeeOneSDayTwo);
swapSigLinesTwoHBox.getChildren().add(lblSignatureBlankSDayTwo);

VBox swapVBox = new VBox();
swapVBox.getChildren().add(swapEmpOneHBox);
swapVBox.getChildren().add(swapEmpTwoHBox);
swapVBox.getChildren().add(swapSigLinesOneHBox);
swapVBox.getChildren().add(swapSigLinesTwoHBox);

//Building the blank or null HBox Node
HBox blankHBox = new HBox();
Expand Down Expand Up @@ -222,6 +233,7 @@ public void start(Stage primaryStage)
GridPane grid = new GridPane();

//Add nodes to the gridpane
//grid.setGridLinesVisible(true);
grid.addRow(0, formHeaderOne);
grid.addRow(1, formHeaderTwo);
grid.addRow(2, formHeaderThree);
Expand Down Expand Up @@ -273,7 +285,7 @@ public void start(Stage primaryStage)
mainScene.setCenter(grid);
mainScene.setTop(btnPrint);

Scene scene = new Scene(mainScene);
Scene scene = new Scene(mainScene, 700, 300);
primaryStage.setScene(scene);
primaryStage.setTitle("GCEMS Dayoff Request Form");
primaryStage.show();
Expand Down

0 comments on commit 3bb32ea

Please sign in to comment.