Skip to content
Snippets Groups Projects
Commit 14a51911 authored by ArktikHunter's avatar ArktikHunter
Browse files

Merge branch 'main' of git.cs.usask.ca:esc568/cmpt-370-group-project into main

parents 56a60af5 dc3c5a95
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ public class Availability {
", " + dayOfTheWeekString + "End=" + endTime + " where employeeID=" + employeeID);
ResultSet myRs = myStatement.executeQuery("select * from Availabilities where employeeID=" + employeeID);
myRs.next();
editedAvailability = myRs.getString("employeeID" ) + "," + dayOfTheWeek + "," +
myRs.getString(dayOfTheWeekString+"Start") +
"," + myRs.getString(dayOfTheWeekString+"End");
......
......@@ -94,6 +94,7 @@ public class Schedule {
myStatement.executeUpdate("update shifts set full_date='" + newDate + "',start_time=" + start + ",end_time=" + end
+ ",availability=" + available +",employee_ID=" + employeeID + " where shift_id=" + shiftID);
ResultSet myRs = myStatement.executeQuery("select * from Shifts where shift_id=" + shiftID);
myRs.next();
editedShift = myRs.getString("employee_id" ) + "," + myRs.getString("full_date") +
"," + myRs.getString("start_time") + "," + myRs.getString("end_time") +
"," + myRs.getString("shift_id") + "," + myRs.getString("availability") +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment