📄 subjectquery.h
字号:
#pragma once
#include "FileRW.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace ClassRoom {
/// <summary>
/// Form2 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class SubjectQuery: public System::Windows::Forms::Form
{
public:
array<String^>^ BuildingArray ;
array<String^,2>^ SubjectArray;
array<String^>^ DateArray;
array<String^>^ TimeSegmentArray;
array<String^>^ FilePath ;//存储教室状态信息文件路径的
array<Int32^>^ ClassRoomNumber;//不同楼的教室的数量,便于依据教室数量创建不同的二叉树
FileRW^ file ;
int BuildingIndex ;
int SubjectIndex ;
ArrayList^ subjectList ;
SubjectQuery(void)
{
InitializeComponent();
subjectList = gcnew ArrayList();
BuildingIndex = -1;
SubjectIndex = -1;
SubjectArray = gcnew array<String^,2>{
{"CAD/CAM技术","数学分析","高等代数","解析几何","计算机组成原理","现代分析原理",
"宽带通信","智能控制","市场营销学","高级程序设计","管理信息系统","无机化学" ,
"代数与几何","复合材料结构及应用","私营公司创业之道","计算机实用基础","生物化学",
"专业英语","市场营销学","智能仪器原理及应用","概率统计","生产与作业管理","数学软件",
"计算机实用技术","复变函数与积分变换","模具制造工艺","电工学","财务分析",
"电机与电力拖动基础","接口技术","大学英语(B)","大学英语(C)","JAVA网络编程技术",
"固态传感器","技术经济","微波技术","成本会计","大气污染控制工程","海洋生物学",
"国际商法","自动控制原理","环境质量评价","渠道管理","材料化学合成",
"资本运营理论与实务","工艺过程仿真","复变函数与积分变换","编译原理","生物技术分离工程",
"金属与塑料成型设备","化工仪表""植物生理学","市场调查与预测","现代汉语","金融学",
"国际经济合作","工程图学及CAD","CAD","工程图学","中国哲学史","虚拟实现技术",
"电化学表面活性剂","电子游戏设计与制作","经贸英语口语","工业控制网络","金属腐蚀原理",""},
{"环境微生物","力学","电子对抗原理","经贸英语","光学","数据库系统",
"汽车工业综述","锁相技术及应用","高频电子","交通仿真技术",
"水污染控制工程","高级语言程序设计","高级财务会计","水泵与泵站",
"网站建设与网页","韩国语选修","日语","数据结构课程设计",
"软件工程课程设计","微机械电子系统技术","自动检测技术","物理光学",
"专业外语","CIS策划","国际企业管理","单片机原理","大学英语(A)","大学英语(B)",
"交通规划与设计","计算机动画软件系统","量子力学","影视合成技术及软件",
"平面设计技术","计算机动画软件系统","电磁场与电磁波","资产评估学","道路勘测设计",
"汽车工业综述","多媒体技术基础","防火墙与入侵检测技术","内燃机设计","卫星定位导航",
"陶瓷材料","证券理论与实务","数字信号处理","金属学原理","世界贸易组织专题",
"税法与税收筹划","微电子器件原理","信息光学导论","编译原理","金属工艺学","工程力学",
"第一外国语","中国海关通关实务","汽车运用工程","交通运输工程导论","会计信息系统",
"电化学测量","可编程逻辑电路","汽车诊断技术","工程制图基础","模式识别概论","财务管理","人力资源管理",""},
{"工科数学分析","数值分析","大学物理(A)","大学物理(C)","思想道德修养",
"物理化学","企业资源计划系统","互换性及测量技术","有机化学","快速成型和反求技术",
"工程力学(B)","小波分析","控制系统数字仿真","接口技术","复变函数与积分变换",
"流体力学","信号与系统","面向网络编程技术","机械设计基础","常微分方程",
"计算机组成原理","近世代数","近代史纲要","电路","计量经济学",
"Java语言基础","计算机体系结构","生物化学","管理学概论","C语言程序设计",""},
{"数学分析","成型专业英语Ⅱ","现代数学基础","自动控制理论",
"移动通信","C语言程序设计","概率统计","系统仿真技术",
"数字图像处理","电路","生产与作业管理","电工学Ⅰ",
"项目管理学","计算机多媒体技术","复变函数与积分变换","药用生物资源",
"汽车车身设计","高级语言程序设计","资本运营理论与实务",
"有限元分析及应用","计算机组成原理","海洋微生物学","机械系统设计",
"金属材料及热处理","机电系统计算机控制",""}
};
BuildingArray = gcnew array<String^>{"N 楼","H 楼","M 楼","G 楼"};
DateArray = gcnew array<String^>{"星期一","星期二","星期三","星期四",
"星期五","星期六","星期日"};
TimeSegmentArray = gcnew array<String^>{"上午第一大节","上午第二大节",
"下午第一大节","下午第二大节","晚上第一大节"};
this->comboBox2->Items->AddRange( BuildingArray );
array<String^>^ temp ={"","","","","","",""};
file = gcnew FileRW();
FilePath = gcnew array<String^>{".\\Data\\N_RoomSubject.txt",
".\\Data\\H_RoomSubject.txt",
".\\Data\\M_RoomSubject.txt",
".\\Data\\G_RoomSubject.txt"};
ClassRoomNumber = gcnew array<Int32^>{ 42,35,20,5};
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~SubjectQuery()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::ComboBox^ comboBox1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::ComboBox^ comboBox2;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::DataGridView^ dataGridView1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column4;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(SubjectQuery::typeid));
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());
this->Column1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -