Ejemplo n.º 1
0
 // 생성자
 public MainLectureManagement(StudentManagement.Student student)
 {
     // 로그인된 학생의 계정
     this.student = student;
     Console.Clear();
     Console.WriteLine("\n Loading Excel Data");
     // 모든 강의를 담고 있는 excelhandler
     allLectureData = new HandleExcel.ExcelHandler("LectureSchedule2018-1.xlsx", "강의시간표(schedule)");
     allLectureData.SetDataRange("A1", "L167");
     managementTool = new ManagementTool(allLectureData, student);
     // 학생의 수강신청 엑셀을 생성 또는 로드한다.
     studentLectureData = new HandleExcel.ExcelHandler(student.StudentNo + ".xlsx", "sheet1");
     studentLectureData.SetDataRange("A1", "F25");
     // 메뉴 루프 진입
     LectureMenu();
 }
Ejemplo n.º 2
0
        // 로그인 데이터를 받아 저장
        public StudentManagement.Student LoginScreen()
        {
            StudentManagement.Student student = new StudentManagement.Student();
            int cursorLeft   = 20;
            int screenHeight = ConsoleUI.PrintLoginPage();

            // 학번 입력 위치로 커서 이동
            Console.SetCursorPosition(cursorLeft, 10);
            student.StudentNo = inputProcessor.InputStudentNoFormat(cursorLeft);
            if (student.StudentNo == null)
            {
                return(null);
            }

            Console.SetCursorPosition(cursorLeft, 12);
            student.Password = inputProcessor.InputPassword(12, screenHeight, cursorLeft, 12);
            if (student.Password == null)
            {
                return(null);
            }

            return(student);
        }
Ejemplo n.º 3
0
 public ManagementTool(HandleExcel.ExcelHandler lectureData, StudentManagement.Student student)
 {
     outputProcessor = new IOException.OutputProcessor();
     allLectureData  = lectureData;
     this.student    = student;
 }