Skip to content

Commit

Permalink
Final Updated Software
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanashastri committed Jun 14, 2017
1 parent 3844678 commit 84c301c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
12 changes: 2 additions & 10 deletions src/JavaFXGUI/EnterStudentTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,10 @@ private void moveOn(boolean signIn, Student student){
EnterInfoTab tab3;
boolean outin = false;
int j = 0;
for(int i = 0;i<data.get("outin").getOutInList().size();i++){
System.out.println("outin: "+ data.get("outin").getOutInList().get(i));
}
for (int i =0; i < data.get("outin").getStudentList().size(); i++){
System.out.println(data.get("outin").getStudentList().get(i));

if (student.equals(data.get("outin").getStudentList().get(i))){
if(!data.get("outin").getOutInList().contains(student)){
j = i;
outin=true;
}
j = i;
outin=true;
}
}

Expand All @@ -299,7 +292,6 @@ private void moveOn(boolean signIn, Student student){
String time = formatter.format(todayTime);

data.get("outin").getStudentList().get(j).setArrTime(time);
System.out.println(data.get("outin").getStudentList().get(j).getArrTime());

LocalDate todayDate = LocalDate.now();
String date = todayDate.toString();
Expand Down
24 changes: 4 additions & 20 deletions src/backend/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ public String getReason() {


public void setReason(String reason) {
// if(this.reason != null){
// this.reason += ", " +reason;
// }else{
this.reason=reason;
// }
this.reason=reason;
}


Expand All @@ -110,14 +106,7 @@ public String getTime(){
}

public void setTime(String t){
// if(!this.time.contains("None")){
// System.out.println("time: " + this.time + " --> " + t);
// time += ", " + t;
// }else{
// System.out.println("time: " + this.time);
this.time=t;
// System.out.println("time: " + this.time + " --> " + t);
// }
this.time=t;
}
public String getDate(){
return date;
Expand All @@ -132,15 +121,10 @@ public void setExcused(String excused) {
this.excused = excused;
}
public void setArrTime(String arrTime) {
// if(this.arrTime.contains("None")){
this.arrTime = arrTime;
// }else{
// this.arrTime += ", " + arrTime;
// }
// System.out.println("time: " + this.arrTime + " --> " + arrTime);
this.arrTime = arrTime;
}
public String getArrTime() {
return arrTime;
return this.arrTime;
}

public int compareTo(Student o) {
Expand Down
3 changes: 2 additions & 1 deletion src/backend/StudentList.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public ArrayList<String> getIDList(){
public ArrayList<Student> getStudentList(){
return new ArrayList<Student>(nameMap.values());
}
/**

/**
* Gets size of the StudentList
* @param other Student to be checked
* @return Returns if Student is in the StudentList.
Expand Down

0 comments on commit 84c301c

Please sign in to comment.