⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemmanageinterface.cpp

📁 导致教室占用的变更
💻 CPP
字号:

#include "StdAfx.h"
#include "SystemManageInterface.h"
#include "ChangeManagerInfo.h"

using namespace ClassRoom;

//Summary
//教学楼教室课表更改,四个教学楼
//Summary

/*查询 M 楼 的教室课标信息,然后对课表进行修改*/
System::Void  SystemManageInterface::m教学楼ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

				 //建立 SubjectTableManage 模板对话框
				 SubjectTableManage^ inStore = gcnew SubjectTableManage();

				 //向模板输入关于 M楼 的信息
				 inStore->Text = "M 教学楼教室课表更改";
				 inStore->filePath_Subject = ".\\Data\\M_RoomSubject.txt";
				 inStore->filePath_State = ".\\Data\\M_RoomState.txt";
				 inStore->ChangeGroupBox1("课表查询结果---M 教学楼");
				 inStore->ChangeGroupBox2("教室选择---M 教学楼");
				 inStore->AddComBoxItems(M_BuildingArray);

				 //显示关于 M楼 的对话框
			     inStore->Show();
		 }

/*查询 G 楼 的教室课标信息,然后对课表进行修改*/
System::Void  SystemManageInterface::g教学楼ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

				 //建立 SubjectTableManage 模板对话框
				 SubjectTableManage^ inStore = gcnew SubjectTableManage();

				 //向模板输入关于 G 楼 的信息
				 inStore->Text = "G 教学楼教室课表更改";
				 inStore->filePath_Subject = ".\\Data\\G_RoomSubject.txt";
				 inStore->filePath_State = ".\\Data\\G_RoomState.txt";
				 inStore->ChangeGroupBox1("课表查询结果---G 教学楼");
				 inStore->ChangeGroupBox2("教室选择---G 教学楼");
				 inStore->AddComBoxItems(G_BuildingArray);

				  //显示关于 G 楼 的对话框
			     inStore->Show();
		 }

/*查询 N 楼 的教室课标信息,然后对课表进行修改*/
System::Void  SystemManageInterface::n教学楼ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

				 //建立 SubjectTableManage 模板对话框
				 SubjectTableManage^ inStore = gcnew SubjectTableManage();

				 //向模板输入关于 N 楼 的信息
				 inStore->Text = "N 教学楼教室课表更改";
				 inStore->filePath_Subject = ".\\Data\\N_RoomSubject.txt";
				 inStore->filePath_State = ".\\Data\\N_RoomState.txt";
				 inStore->ChangeGroupBox1("课表查询结果---N 教学楼");
				 inStore->ChangeGroupBox2("教室选择---N 教学楼");
				 inStore->AddComBoxItems(N_BuildingArray);

				  //显示关于 N 楼 的对话框
			     inStore->Show();
		 }

/*查询 H 楼 的教室课标信息,然后对课表进行修改*/
System::Void  SystemManageInterface::h教学楼ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

				 //建立 SubjectTableManage 模板对话框
				 SubjectTableManage^ inStore = gcnew SubjectTableManage();

				 //向模板输入关于 H 楼 的信息
				 inStore->Text = "H 教学楼教室课表更改";
				 inStore->filePath_Subject = ".\\Data\\H_RoomSubject.txt";
				 inStore->filePath_State = ".\\Data\\H_RoomState.txt";
				 inStore->ChangeGroupBox1("课表查询结果---H 教学楼");
				 inStore->ChangeGroupBox2("教室选择---H 教学楼");
				 inStore->AddComBoxItems(H_BuildingArray);

				  //显示关于 H 楼 的对话框
			     inStore->Show();
		 }

//Summary
//教学楼教室状态信息更改对话框,一共四个教学楼
//Summary

/*查询 M 楼 的教室占用情况:如某个教室是否被占用,然后可以更改教室的占用信息*/
System::Void  SystemManageInterface::m教学楼ToolStripMenuItem_1_Click(System::Object^  sender, System::EventArgs^  e) {

				 RoomInfoChange^ inStore = gcnew RoomInfoChange();
				 inStore->Text = "M 楼 教室占用信息更改";
				 inStore->filePath_State = ".\\Data\\M_RoomState.txt";
				 inStore->ChangeGroupBox1("空闲教室检索---M 楼");
				 inStore->AddClassRoomName(M_BuildingArray);
			     inStore->Show();
		 }

/*查询 G 楼 的教室占用情况:如某个教室是否被占用,然后可以更改教室的占用信息*/
System::Void  SystemManageInterface::g教学楼ToolStripMenuItem_1_Click(System::Object^  sender, System::EventArgs^  e) {

				 RoomInfoChange^ inStore = gcnew RoomInfoChange();
				 inStore->Text = "G 楼 教室占用信息更改";
				 inStore->filePath_State = ".\\Data\\G_RoomState.txt";
				 inStore->ChangeGroupBox1("空闲教室检索---G 楼");
				 inStore->AddClassRoomName(G_BuildingArray);
			     inStore->Show();
		 }

/*查询 N 楼 的教室占用情况:如某个教室是否被占用,然后可以更改教室的占用信息*/
System::Void  SystemManageInterface::n教学楼ToolStripMenuItem_1_Click(System::Object^  sender, System::EventArgs^  e) {

				 RoomInfoChange^ inStore = gcnew RoomInfoChange();
				 inStore->Text = "N 楼 教室占用信息更改";
				 inStore->filePath_State = ".\\Data\\N_RoomState.txt";
				 inStore->ChangeGroupBox1("空闲教室检索---N 楼");
				 inStore->AddClassRoomName(N_BuildingArray);
			     inStore->Show();
		 }

/*查询 H 楼 的教室占用情况:如某个教室是否被占用,然后可以更改教室的占用信息*/
System::Void  SystemManageInterface::h教学楼ToolStripMenuItem_1_Click(System::Object^  sender, System::EventArgs^  e) {

				 RoomInfoChange^ inStore = gcnew RoomInfoChange();
				 inStore->Text = "H 楼 教室占用信息更改";
				 inStore->filePath_State = ".\\Data\\H_RoomState.txt";
				 inStore->ChangeGroupBox1("空闲教室检索---H 楼");
				 inStore->AddClassRoomName(H_BuildingArray);
			     inStore->Show();
		 }

//管理员个人信息的修改,包括管理员的密码和用户名
System::Void  SystemManageInterface::管理员信息修改ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {

				 ChangeManagerInfo^ inStore = gcnew ChangeManagerInfo();
				 inStore->ShowDialog();

				 
		 }
System::Void SystemManageInterface::SystemManageInterface_Load(System::Object^  sender, System::EventArgs^  e) {
			 }
System::Void SystemManageInterface::toolStripTextBox1_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
System::Void SystemManageInterface::menuStrip1_ItemClicked(System::Object^  sender, System::Windows::Forms::ToolStripItemClickedEventArgs^  e) {
		 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -