SAS/Menu.h

137 lines
2.3 KiB
C
Raw Permalink Normal View History

/*
* <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>
#include<direct.h>
#include<io.h>
2022-07-04 15:59:30 +08:00
#include"DBCUtils.h"
#include"MenuUtils.h"
#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
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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
/*
* <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);
/*
* <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);
/*
* ɾ<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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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);
/*
* <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