Exemple #1
0
 private void universityMission(Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.8 Wskazanie związku z misją uczelni i strategią jej rozwoju:",
             PdfStructures.Lorem));                 // ToDo: coś z tym zrobić, usunąć albo nie wiem
 }
Exemple #2
0
 private void possibilityOfContinuation(SyllabusDescription description, Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.7 Możliwość kontynuacji studiów:",
             description.PossibilityOfContinuation));
 }
Exemple #3
0
 private void employmentOpportinities(SyllabusDescription description, Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.6 Sylwetka absolwenta, możliwości zatrudnienia:",
             description.EmploymentOpportunities));
 }
Exemple #4
0
 private void hoursTotal(Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.3 Łączna liczba godzin zajęć:",
             "1020", // TODO: znaleźć pole od tego
             true));
 }
Exemple #5
0
 private void titleAfterGraduation(SyllabusDescription description, Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.5 Tytuł zawodowy nadawany po zakończeniu studiów:",
             EnumTranslator.Translate(description.ProfessionalTitleAfterGraduation.ToString()),
             true));
 }
Exemple #6
0
        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);
        }
Exemple #7
0
        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));
        }
Exemple #8
0
        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));
        }
Exemple #9
0
 private void ectsToFinishStudy(SyllabusDescription description, Table generalInfoTable)
 {
     generalInfoTable.AddCell(
         PdfStructures.generalInfoCell(
             "1.2 Całkowita liczba punktów ECTS konieczna do ukończenia studiów na danym poziomie:",
             description.Ects.ToString(),
             true));
 }
Exemple #10
0
        public void Create(Syllabus syllabus, Dictionary <LearningOutcomeCategory, int> lods)
        {
            using (Document doc = PdfHelper.Document(true))
            {
                var fieldOfStudy        = syllabus.FieldOfStudy;
                var description         = syllabus.Description;
                var subjectDescriptions = syllabus.SubjectDescriptions;
                #region setup i nagłówek

                syllabusTitle(doc);

                doc.SetFontSize(12);
                #endregion

                #region dane podstawowe
                PdfStructures.fieldOfStudyInfo(doc, fieldOfStudy);
                #endregion

                #region tableka opis programu studiów
                generalDescription(doc, description);
                #endregion

                #region opis szczegółowy
                wku(lods, doc, fieldOfStudy);
                disciplineEcts50(syllabus.SubjectDescriptions, doc);
                accordanceToJobMarket(doc);
                directContact(syllabus.SubjectDescriptions, doc);
                basicScienceTotallEcts(syllabus.SubjectDescriptions, doc);
                generalModulesMinimalEcts(syllabus.PointLimits, doc);
                electiveSubjectsTotalEcts(doc, subjectDescriptions);
                learningOutcomeProcess(doc);
                #endregion

                #region lista modułów - tabele z przedmiotami
                modulesTable(doc, subjectDescriptions);
                #endregion

                #region blok praktyk i pracy dyplomowej
                // blok praktyk
                internAndThesis(syllabus.IntershipType, syllabus.ThesisCourse, doc);
                #endregion

                #region sposoby weryfikacji
                formOfCreditTable(doc);
                #endregion

                #region zakres egzaminu
                examScope(syllabus.ScopeOfDiplomaExam, doc);
                #endregion

                #region tabela z semestrami do kiedy zaliczyc
                semesterCompletitionTable(doc, subjectDescriptions);
                #endregion
            }
            PdfHelper.AddPages();
        }
Exemple #11
0
        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);
        }
Exemple #12
0
        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);
        }
Exemple #13
0
        public void Create(Syllabus syllabus)
        {
            using (Document doc = PdfHelper.Document(true))
            {
                var fieldOfStudy        = syllabus.FieldOfStudy;
                var description         = syllabus.Description;
                var subjectDescriptions = syllabus.SubjectDescriptions;

                #region setup i nagłówek
                planTitle(doc);
                doc.SetFontSize(12);
                #endregion


                #region dane podstawowe
                if (fieldOfStudy != null)
                {
                    PdfStructures.fieldOfStudyInfo(doc, fieldOfStudy);
                }
                // Specjalność
                if (syllabus.Specialization != null)
                {
                    specialization(syllabus.Specialization.Name, doc);
                }
                #endregion

                #region tabele z przedmiotami na semestr
                if (subjectDescriptions != null)
                {
                    subjectTables(subjectDescriptions, description.NumOfSemesters, doc);
                }
                #endregion

                #region deficyt
                if (description != null)
                {
                    deficit(doc, description);
                }
                #endregion

                #region Opinia
                opinion(doc);
                #endregion
            }

            PdfHelper.AddPages();
        }
Exemple #14
0
        private static void subjectsPerSemesterTable(List <SubjectInSyllabusDescription> SubjectDescriptions, Document doc, int i)
        {
            doc.Add(new Paragraph($"Semestr {i}").SetBold());

            List <Subject> semesterSubjects = SubjectDescriptions.Where(s => s.AssignedSemester == i)
                                              .Select(s => s.Subject)
                                              .ToList();

            obligatorySubjects(doc, semesterSubjects);
            electiveSubjects(doc, semesterSubjects);

            doc.Add(new Paragraph($"Razem w semestrze: "));

            doc.Add(PdfStructures.semesterSummaryTable(semesterSubjects));

            doc.Add(PdfStructures.Info);
        }
Exemple #15
0
        private void semesterCompletitionTable(Document doc, List <SubjectInSyllabusDescription> subjectDescriptions)
        {
            if (subjectDescriptions.Count > 0)
            {
                doc.Add(new Paragraph("7.   Wymagania dotyczące terminu zaliczenia określonych kursów/grup kursów lub wszystkich kursów w poszczególnych modułach").SetFontSize(13));

                Table completitionTable = new Table(4).SetHorizontalAlignment(iText.Layout.Properties.HorizontalAlignment.CENTER);
                completitionTable.AddCell(new Paragraph("Lp."));
                completitionTable.AddCell(new Paragraph("Kod kursu"));
                completitionTable.AddCell(new Paragraph("Nazwa kursu"));
                completitionTable.AddCell(new Paragraph("Termin zaliczenia do... (numer semestru)"));
                int i = 1;
                subjectDescriptions.ForEach(sd =>
                {
                    completitionTable = PdfStructures.completitionCell(completitionTable, sd, i);
                });

                doc.Add(completitionTable);
            }
        }
Exemple #16
0
        private void formOfCreditTable(Document doc)
        {
            doc.Add(new Paragraph("5.   Sposoby weryfikacji zakładanych efektów uczenia się ").SetFontSize(13));
            Table formOfCreditTable = new Table(2).SetHorizontalAlignment(iText.Layout.Properties.HorizontalAlignment.CENTER);

            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("Typ zajęć"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("Sposoby weryfikacji zakładanych efektów uczenia się").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("wykład"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. egzamin, kolokwium").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("ćwiczenia"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. test, kolokwium").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("laboratorium"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. wejściówka, sprawozdanie z laboratorium").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("projekt"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. obrona projektu").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("seminarium"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. udział w dyskusji, prezentacja tematu, esej").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("praktyka"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("np. raport z praktyki").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("praca dyplomowa"));
            formOfCreditTable.AddCell(PdfStructures.ParagraphCell("przygotowana praca dyplomowa").SetTextAlignment(iText.Layout.Properties.TextAlignment.RIGHT));

            doc.Add(formOfCreditTable);
        }
Exemple #17
0
 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()));
 }
Exemple #18
0
 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()));
 }
Exemple #19
0
 private void numberOfSemesters(SyllabusDescription description, Table generalInfoTable)
 {
     generalInfoTable.AddCell(PdfStructures.generalInfoCell("1.1 Liczba semestrów:",
                                                            description.NumOfSemesters.ToString(),
                                                            true));
 }