public static TimeSheet getTimeSheetINSNoTime(int dayOfWeek) { TimeSheet t = new TimeSheet(); t.dayOfWeek = dayOfWeek; t.department = DepartmentFixture.getINSDepartment(); t.frequence = 0; t.isWorkDay = true; t.save(); return t; }
public static TimeSheet getTimeSheetINS(int dayOfWeek) { TimeSheet t = new TimeSheet(); t.dayOfWeek = dayOfWeek; t.department = DepartmentFixture.getINSDepartment(); t.frequence = 0; t.isWorkDay = true; t.workStartTime = "09:00"; t.workStopTime = "12:00"; t.save(); return t; }
static TimeSheet getEvenTimeSheetIT() { TimeSheet t = new TimeSheet(); t.dayOfWeek = 0; t.department = DepartmentFixture.getITDepartment(); t.frequence = 2; t.isWorkDay = true; t.workStartTime = "09:00"; t.workStopTime = "12:00"; t.save(); return t; }