Added ne xlsx file

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-26 13:01:19 +01:00
parent 4758c505c4
commit 038d0b95d2
Signed by: y0rune
GPG Key ID: F204C385F57EB348
4 changed files with 56 additions and 0 deletions

View File

@ -34,10 +34,29 @@ public class Groups {
@ManyToOne @ManyToOne
@JoinColumn(name = "lecturer_id") @JoinColumn(name = "lecturer_id")
private Lecturer lecturer; private Lecturer lecturer;
private String zaj_cyk_id;
private String gr_nr;
public Groups() { public Groups() {
} }
public String getGr_nr() {
return gr_nr;
}
public void setGr_nr(String gr_nr) {
this.gr_nr = gr_nr;
}
public String getZaj_cyk_id() {
return zaj_cyk_id;
}
public void setZaj_cyk_id(String zaj_cyk_id) {
this.zaj_cyk_id = zaj_cyk_id;
}
/** /**
* Groups * Groups
* *
@ -60,6 +79,43 @@ public class Groups {
this.type = capacity >= 50 ? GroupType.LECTURE : GroupType.CLASS; this.type = capacity >= 50 ? GroupType.LECTURE : GroupType.CLASS;
} }
/**
* Groups
*
* @param capacity capacity given to the groups
* @param room room given to the groups
* @param course course given to the groups
* @param time time given to the groups
* @param endTime end time of class in minutes
* @param day day given to the groups
* @param lecturer lecturer given to the groups
* @param zaj_cyk_id number of class in the term
* @param gr_nr Number of class/course
*/
public Groups(int capacity, String room, Course course, int time, int endTime, WeekDay day, Lecturer lecturer, String zaj_cyk_id, String gr_nr) {
this(capacity, room, course, time, endTime, day, lecturer);
this.zaj_cyk_id = zaj_cyk_id;
this.gr_nr = gr_nr;
}
/**
* Groups
*
* @param capacity capacity given to the groups
* @param room room given to the groups
* @param course course given to the groups
* @param time time given to the groups
* @param day day given to the groups
* @param lecturer lecturer given to the groups
* @param zaj_cyk_id number of class in the term
* @param gr_nr Number of class/course
*/
public Groups(int capacity, String room, Course course, int time, WeekDay day, Lecturer lecturer, String zaj_cyk_id, String gr_nr) {
this(capacity, room, course, time, time + DEFAULT_CLASS_TIME, day, lecturer);
this.zaj_cyk_id = zaj_cyk_id;
this.gr_nr = gr_nr;
}
/** /**
* Create groups with default class duration * Create groups with default class duration
* *