예제 #1
0
파일: JalaaImpl.cs 프로젝트: bhlshrf/School
        protected override void DrawSemeterMarks(int rowOffest, StudentClassSubject m, Marks marks, string[] a)
        {
            if (m.Id > 0)
            {
                Sheet.Cells[$"{a[0]}{rowOffest}"].Value = marks.oral;
                Sheet.Cells[$"{a[1]}{rowOffest}"].Value = marks.homework;
                Sheet.Cells[$"{a[2]}{rowOffest}"].Value = marks.activity;
                Sheet.Cells[$"{a[3]}{rowOffest}"].Value = marks.test;
                Sheet.Cells[$"{a[4]}{rowOffest}"].Value = marks.exam;
            }

            int sum = marks.sum();

            Sheet.Cells[$"{a[5]}{rowOffest}"].Value = sum;
            if (a.Length >= 7)
            {
                Sheet.Cells[$"{a[6]}{rowOffest}"].Value = sum.ToArabic();
            }
            if (sum < m.Subject?.MinMark)
            {
                MarkAsFailed($"{a[5]}{rowOffest}");
                if (a.Length >= 7)
                {
                    MarkAsFailed($"{a[6]}{rowOffest}");
                }
            }
        }
예제 #2
0
파일: JalaaImpl.cs 프로젝트: bhlshrf/School
        protected override void DrawFinalYearResult(int rowOffest, StudentClassSubject m, Marks marks1, Marks marks2, string[] a)
        {
            int sum   = marks1.sum() + marks2.sum();
            int final = Round(sum / 2.0);

            Sheet.Cells[$"{a[0]}{rowOffest}"].Value = sum;
            Sheet.Cells[$"{a[1]}{rowOffest}"].Value = final;
            Sheet.Cells[$"{a[2]}{rowOffest}"].Value = final.ToArabic();

            if (final < m.Subject?.MinMark)
            {
                MarkAsFailed($"{a[1]}{rowOffest}");
                MarkAsFailed($"{a[2]}{rowOffest}");

                m.StudentGroup.FailSubjectCount++;
            }
        }
예제 #3
0
파일: JalaaImpl.cs 프로젝트: bhlshrf/School
 protected override void DrawFinalYearResult(int rowOffest, StudentClassSubject m, Marks marks1, Marks marks2, string[] a)
 {
     Sheet.Cells[$"{a[0]}{rowOffest}"].Value = getWord(Round((marks1.sum() + marks2.sum()) / 2.0));
 }
예제 #4
0
파일: JalaaImpl.cs 프로젝트: bhlshrf/School
 protected override void DrawSemeterMarks(int rowOffest, StudentClassSubject m, Marks marks, string[] a)
 {
     Sheet.Cells[$"{a[0]}{rowOffest}"].Value = getWord(marks.sum());
 }