Example #1
0
func TeacherPairString(db *gorm.DB, subject *models.Schedule) string {
	subject = subject.LoadRelatedTeacher(db)
	return subject.Subject.Subject + " - " +
		subject.SubjectType + " " +
		subject.Audience.Number + "-" +
		subject.Audience.Housing.Number + " " +
		subject.Group.Name + " - " +
		fmt.Sprintf("%v", subject.Group.Year) + " ะบัƒั€ั"
}
Example #2
0
func GroupPairString(db *gorm.DB, subject *models.Schedule) string {
	subject = subject.LoadRelated(db)
	return subject.Subject.Subject + " - " +
		subject.SubjectType + " " +
		subject.Audience.Number + "-" +
		subject.Audience.Housing.Number + " " +
		subject.Teacher.Rank + " - " +
		subject.Teacher.LastName + " " +
		subject.Teacher.FirstName + " " +
		subject.Teacher.MiddleName
}