Exemple #1
0
        public static void Start(RequiredClasses Obj, String folder)
        {
            Obj.splitRequiredClasses();
            string[]  lines  = System.IO.File.ReadAllLines(@Obj.getStudentPath()); //use studentPathway
            ArrayList newDoc = LineSplit.splitLine(lines);

            string[]       oneColumn   = (string[])newDoc.ToArray(typeof(string));
            List <Student> studentList = ParseData.createStudent(oneColumn);

            modifyEU(studentList); //fixes the in progress semester case
            ParseData.partTime(studentList);
            ParseData.setTotalCredComplete(studentList, Obj);
            foreach (Course x in Obj.blank)
            {
                Console.WriteLine(x.getCourseName());
            }
            foreach (Student x in studentList)
            {
                requiredCourseMethods.checkRequiredCourses(x, Obj);
                requiredCourseMethods.checkSkills(x, Obj);
                requiredCourseMethods.checkWriting(x, Obj);
            }
            ParseData.GenExcel(studentList, Obj, folder);
            //string currentDir = Form1.getFolder();
            createTextDoc.createText(folder, studentList, Obj);
            Application.Exit();
        }
Exemple #2
0
        public static void startFull(RequiredClasses Obj, String folder)
        {
            Obj.splitRequiredClasses();
            string[]  lines  = System.IO.File.ReadAllLines(@Obj.getStudentPath()); //use studentPathway
            ArrayList newDoc = LineSplit.splitLine(lines);

            string[]       oneColumn   = (string[])newDoc.ToArray(typeof(string));
            List <Student> studentList = FullClearance.createStudent(oneColumn);

            modifyEU(studentList); //fixes the in progress semester case

            ParseData.partTime(studentList);
            ParseData.setTotalCredComplete(studentList, Obj);
            foreach (Course x in Obj.blank)
            {
                Console.WriteLine(x.getCourseName());
            }
            foreach (Student x in studentList)
            {
                requiredCourseMethods.checkRequiredCourses(x, Obj);
                requiredCourseMethods.checkSkills(x, Obj);
                requiredCourseMethods.checkWriting(x, Obj);
            }
            FullClearance.sortStudents(studentList);
            List <Student> Cl = FullClearance.createTrFiles();

            ParseData.GenExcelFull(folder, FullClearance.getNew(), FullClearance.getCleared(), FullClearance.getPending());
            Application.Exit();
        }