2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD><EFBFBD>ӿ<EFBFBD>
|
|
|
|
|
*/
|
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>
|
2022-07-04 22:17:38 +08:00
|
|
|
|
#include<direct.h>
|
|
|
|
|
#include<io.h>
|
|
|
|
|
|
2022-07-04 15:59:30 +08:00
|
|
|
|
#include"DBCUtils.h"
|
|
|
|
|
#include"MenuUtils.h"
|
2022-07-04 22:17:38 +08:00
|
|
|
|
#include"StringUtils.h"
|
2022-07-04 15:59:30 +08:00
|
|
|
|
#include"StudentDAO.h"
|
|
|
|
|
#include"GradeDAO.h"
|
|
|
|
|
#include"CourseDAO.h"
|
|
|
|
|
using namespace std;
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void mainMenu(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD>-ѧ<EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void studentGradeMenu(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD>-ѧ<EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD>˵<EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void studentGradeExternMenu(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD>-<EFBFBD>γ̹<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void courseMenu(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܣ<EFBFBD>ִ<EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SQL<EFBFBD><EFBFBD><EFBFBD>䣩
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void advancedFunction(_ConnectionPtr connection);
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void showAllStudent(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void insertStudent(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* ɾ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void deleteStudent(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void changeStudent(_ConnectionPtr connection);
|
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void exportData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void exportStudentData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void exportCourseData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void exportGradeData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void exportAllData(_ConnectionPtr connection);
|
|
|
|
|
|
2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>˵<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 00:31:52 +08:00
|
|
|
|
void importData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void importStudentData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void importCourseData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void importGradeData(_ConnectionPtr connection);
|
2022-07-04 22:17:38 +08:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* @param connection <EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
2022-07-04 15:59:30 +08:00
|
|
|
|
void importAllData(_ConnectionPtr connection);
|
2022-07-04 00:31:52 +08:00
|
|
|
|
|
|
|
|
|
#endif // !MENU_H
|