2022-07-04 00:31:52 +08:00
|
|
|
#ifndef MENU_H
|
|
|
|
#define MENU_H
|
|
|
|
|
|
|
|
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
|
|
|
|
|
2022-07-04 15:59:30 +08:00
|
|
|
#include<iostream>
|
|
|
|
#include<fstream>
|
2022-07-04 00:31:52 +08:00
|
|
|
#include<vector>
|
|
|
|
#include"Student.cpp"
|
|
|
|
#include"Course.cpp"
|
|
|
|
#include"Grade.cpp"
|
2022-07-04 15:59:30 +08:00
|
|
|
#include"DBCUtils.h"
|
|
|
|
#include"MenuUtils.h"
|
|
|
|
#include"StudentDAO.h"
|
|
|
|
#include"GradeDAO.h"
|
|
|
|
#include"CourseDAO.h"
|
|
|
|
using namespace std;
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
|
|
void mainMenu(_ConnectionPtr connection);
|
|
|
|
void studentGradeMenu(_ConnectionPtr connection);
|
|
|
|
void studentGradeExternMenu(_ConnectionPtr connection);
|
|
|
|
void courseMenu(_ConnectionPtr connection);
|
2022-07-04 15:59:30 +08:00
|
|
|
void advancedFunction(_ConnectionPtr connection);
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
|
|
void showAllStudent(_ConnectionPtr connection);
|
|
|
|
void insertStudent(_ConnectionPtr connection);
|
|
|
|
void deleteStudent(_ConnectionPtr connection);
|
|
|
|
void changeStudent(_ConnectionPtr connection);
|
|
|
|
|
|
|
|
void exportData(_ConnectionPtr connection);
|
2022-07-04 15:59:30 +08:00
|
|
|
void exportStudentData(_ConnectionPtr connection);
|
|
|
|
void exportCourseData(_ConnectionPtr connection);
|
|
|
|
void exportGradeData(_ConnectionPtr connection);
|
|
|
|
void exportAllData(_ConnectionPtr connection);
|
|
|
|
|
2022-07-04 00:31:52 +08:00
|
|
|
void importData(_ConnectionPtr connection);
|
2022-07-04 15:59:30 +08:00
|
|
|
void importStudentData(_ConnectionPtr connection);
|
|
|
|
void importCourseData(_ConnectionPtr connection);
|
|
|
|
void importGradeData(_ConnectionPtr connection);
|
|
|
|
void importAllData(_ConnectionPtr connection);
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
|
|
#endif // !MENU_H
|