private static void electiveSubjects(Document doc, List <Subject> semesterSubjects) { List <Subject> electiveSubjects = semesterSubjects.Where(s => s.TypeOfSubject == TypeOfSubject.Elective) .ToList(); doc.Add(new Paragraph($"Kursy wybieralne: {electiveSubjects.Sum(s => s.Lessons.Sum(l => l.HoursAtUniversity))} liczba punktów ECTS {electiveSubjects.Sum(s => s.Lessons.Sum(l => l.Ects))}").SetBold()); doc.Add(PdfStructures.moduleTable(electiveSubjects)); }
private static void obligatorySubjects(Document doc, List <Subject> semesterSubjects) { List <Subject> obligatorySubjects = semesterSubjects.Where(s => s.TypeOfSubject == TypeOfSubject.Obligatory) .ToList(); doc.Add(new Paragraph($"Kursy obowiązkowe: {obligatorySubjects.Sum(s => s.Lessons.Sum(l => l.HoursAtUniversity))} liczba punktów ECTS {obligatorySubjects.Sum(s => s.Lessons.Sum(l => l.Ects))}").SetBold()); doc.Add(PdfStructures.moduleTable(obligatorySubjects)); }
private void humanisticSubjects(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions) { doc.Add(new Paragraph("4.1.1.1. Moduł ").SetFontSize(13).Add(new Paragraph( "przedmioty z obszaru nauk humanistycznych").SetItalic().SetFontSize(13))); doc.Add(PdfStructures.moduleTable(subjectDescriptions.Where(s => s.Subject.KindOfSubject == KindOfSubject.Humanistic).Select(s => s.Subject).ToList())); doc.Add(PdfStructures.Info); }
private void thesisModules(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions) { doc.Add(new Paragraph("4.2.2. Lista modułów kształcenia ogólnego").SetFontSize(13)); // kierunkowe wybieralne doc.Add(new Paragraph("4.2.2.1. Moduł ").SetFontSize(13).Add(new Paragraph( "kierunkowe wybieralne").SetItalic().SetFontSize(13))); doc.Add(PdfStructures.moduleTable(subjectDescriptions.Where(s => s.Subject.ModuleType == ModuleType.Thesis).Select(s => s.Subject).ToList())); doc.Add(PdfStructures.Info); }
private void specializationModules(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions) { doc.Add(new Paragraph("4.2.3. Lista modułów specjalnościowych").SetFontSize(13)); // kierunkowe wybieralne doc.Add(new Paragraph("4.2.3.1. Moduł ").SetFontSize(13).Add(new Paragraph( "Przedmioty specjalnościowe").SetItalic().SetFontSize(13))); doc.Add(PdfStructures.moduleTable(subjectDescriptions.Where(s => s.Subject.ModuleType == ModuleType.Specialization || s.Subject.ModuleType == ModuleType.FieldOfStudy).Select(s => s.Subject).ToList())); doc.Add(PdfStructures.Info); }
private void mathModules(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions) { doc.Add(new Paragraph("4.1.2.1. Moduł ").SetFontSize(13).Add(new Paragraph( "Matematyka").SetItalic().SetFontSize(13))); doc.Add(PdfStructures.moduleTable(subjectDescriptions.Where(s => s.Subject.KindOfSubject == KindOfSubject.Maths).Select(s => s.Subject).ToList())); }
private void foreignLanguageModules(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions) { doc.Add(new Paragraph("4.2.1.1. Moduł ").SetFontSize(13).Add(new Paragraph( "Języki obce").SetItalic().SetFontSize(13))); doc.Add(PdfStructures.moduleTable(subjectDescriptions.Where(s => s.Subject.KindOfSubject == KindOfSubject.ForeignLanguage).Select(s => s.Subject).ToList())); }