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

📄 scoreinput.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once
#include "LinkDataBase.h"
#include "DataGridNoActiveCellColumn.h"
#include "CurriculumSchedule.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 My
{
	/// <summary> 
	/// ScoreInput 摘要
	///
	/// 警告: 如果您更改该类的名称,则将需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class ScoreInput : public System::Windows::Forms::Form
	{
		//--------------------成员声明------------------------
	private:
		LinkDataBase* MyDataBase;	//数据库连接类
		SqlDataAdapter* CourseAdapter;
		DataSet* ds;
		String* strTableName;
		String* strSQL;
	private: System::Windows::Forms::TextBox *  tBoxMark;
	private: System::Windows::Forms::Label *  label1;
			 DataView* CourseView;
		//-------------------成员声明结束-----------------------
	public: 
		ScoreInput(void)
		{
			InitializeComponent();
			//初始化
			this->MyDataBase = new LinkDataBase();
			this->ds = new DataSet();
			this->CourseAdapter = new SqlDataAdapter();			
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::GroupBox *  groupBox1;

	private: System::Windows::Forms::GroupBox *  groupBox2;
	private: System::Windows::Forms::DataGrid *  dataGrid1;
	protected: System::Windows::Forms::ImageList *  imageList1;
	private: System::Windows::Forms::Button *  btnQuit;
	private: System::Windows::Forms::GroupBox *  groupBox3;
	private: System::Windows::Forms::TextBox *  tBoxPinYin;
	private: System::Windows::Forms::Label *  label13;
	private: System::Windows::Forms::TextBox *  tBoxCourseName;
	private: System::Windows::Forms::Label *  label9;
	private: System::Windows::Forms::TextBox *  tBoxCourseID;
	private: System::Windows::Forms::Label *  label5;
	private: System::Windows::Forms::Button *  btnSave;
	private: System::Windows::Forms::Button *  btnSearch;
	private: System::Windows::Forms::GroupBox *  groupBox4;

	private: System::Windows::Forms::Button *  btnEdit;
	private: System::Windows::Forms::DataGrid *  dgrdCourse;
	private: System::ComponentModel::IContainer *  components;

	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>


		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = new System::ComponentModel::Container();
			System::Resources::ResourceManager *  resources = new System::Resources::ResourceManager(__typeof(My::ScoreInput));
			this->groupBox1 = new System::Windows::Forms::GroupBox();
			this->btnQuit = new System::Windows::Forms::Button();
			this->imageList1 = new System::Windows::Forms::ImageList(this->components);
			this->groupBox2 = new System::Windows::Forms::GroupBox();
			this->dgrdCourse = new System::Windows::Forms::DataGrid();
			this->groupBox4 = new System::Windows::Forms::GroupBox();
			this->btnEdit = new System::Windows::Forms::Button();
			this->tBoxMark = new System::Windows::Forms::TextBox();
			this->dataGrid1 = new System::Windows::Forms::DataGrid();
			this->groupBox3 = new System::Windows::Forms::GroupBox();
			this->btnSave = new System::Windows::Forms::Button();
			this->btnSearch = new System::Windows::Forms::Button();
			this->tBoxPinYin = new System::Windows::Forms::TextBox();
			this->label13 = new System::Windows::Forms::Label();
			this->tBoxCourseName = new System::Windows::Forms::TextBox();
			this->label9 = new System::Windows::Forms::Label();
			this->tBoxCourseID = new System::Windows::Forms::TextBox();
			this->label5 = new System::Windows::Forms::Label();
			this->label1 = new System::Windows::Forms::Label();
			this->groupBox1->SuspendLayout();
			this->groupBox2->SuspendLayout();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dgrdCourse))->BeginInit();
			this->groupBox4->SuspendLayout();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid1))->BeginInit();
			this->groupBox3->SuspendLayout();
			this->SuspendLayout();
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->btnQuit);
			this->groupBox1->Dock = System::Windows::Forms::DockStyle::Top;
			this->groupBox1->Location = System::Drawing::Point(0, 0);
			this->groupBox1->Name = S"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(744, 96);
			this->groupBox1->TabIndex = 1;
			this->groupBox1->TabStop = false;
			// 
			// btnQuit
			// 
			this->btnQuit->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnQuit->ImageIndex = 11;
			this->btnQuit->ImageList = this->imageList1;
			this->btnQuit->Location = System::Drawing::Point(304, 32);
			this->btnQuit->Name = S"btnQuit";
			this->btnQuit->Size = System::Drawing::Size(112, 48);
			this->btnQuit->TabIndex = 0;
			this->btnQuit->Text = S"结束选课";
			this->btnQuit->Click += new System::EventHandler(this, btnQuit_Click);
			// 
			// imageList1
			// 
			this->imageList1->ImageSize = System::Drawing::Size(16, 16);
			this->imageList1->ImageStream = (__try_cast<System::Windows::Forms::ImageListStreamer *  >(resources->GetObject(S"imageList1.ImageStream")));
			this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
			// 
			// groupBox2
			// 
			this->groupBox2->Controls->Add(this->dgrdCourse);
			this->groupBox2->Controls->Add(this->groupBox4);
			this->groupBox2->Dock = System::Windows::Forms::DockStyle::Fill;
			this->groupBox2->Location = System::Drawing::Point(0, 216);
			this->groupBox2->Name = S"groupBox2";
			this->groupBox2->Size = System::Drawing::Size(744, 221);
			this->groupBox2->TabIndex = 3;
			this->groupBox2->TabStop = false;
			this->groupBox2->Text = S"课程成绩输入";
			// 
			// dgrdCourse
			// 
			this->dgrdCourse->DataMember = S"";
			this->dgrdCourse->Dock = System::Windows::Forms::DockStyle::Fill;
			this->dgrdCourse->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dgrdCourse->Location = System::Drawing::Point(216, 17);
			this->dgrdCourse->Name = S"dgrdCourse";
			this->dgrdCourse->Size = System::Drawing::Size(525, 201);
			this->dgrdCourse->TabIndex = 6;
			// 
			// groupBox4
			// 
			this->groupBox4->Controls->Add(this->label1);
			this->groupBox4->Controls->Add(this->btnEdit);
			this->groupBox4->Controls->Add(this->tBoxMark);
			this->groupBox4->Dock = System::Windows::Forms::DockStyle::Left;
			this->groupBox4->Location = System::Drawing::Point(3, 17);
			this->groupBox4->Name = S"groupBox4";
			this->groupBox4->Size = System::Drawing::Size(213, 201);
			this->groupBox4->TabIndex = 7;
			this->groupBox4->TabStop = false;
			// 
			// btnEdit
			// 
			this->btnEdit->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnEdit->ImageIndex = 10;
			this->btnEdit->ImageList = this->imageList1;
			this->btnEdit->Location = System::Drawing::Point(56, 136);
			this->btnEdit->Name = S"btnEdit";
			this->btnEdit->Size = System::Drawing::Size(96, 32);
			this->btnEdit->TabIndex = 68;
			this->btnEdit->Text = S"修改";
			this->btnEdit->Click += new System::EventHandler(this, btnEdit_Click);
			// 
			// tBoxMark
			// 
			this->tBoxMark->Location = System::Drawing::Point(34, 72);
			this->tBoxMark->Name = S"tBoxMark";
			this->tBoxMark->Size = System::Drawing::Size(144, 21);
			this->tBoxMark->TabIndex = 11;
			this->tBoxMark->Text = S"";
			// 
			// dataGrid1
			// 
			this->dataGrid1->DataMember = S"";
			this->dataGrid1->Dock = System::Windows::Forms::DockStyle::Fill;
			this->dataGrid1->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dataGrid1->Location = System::Drawing::Point(0, 216);
			this->dataGrid1->Name = S"dataGrid1";
			this->dataGrid1->Size = System::Drawing::Size(744, 221);
			this->dataGrid1->TabIndex = 2;
			// 
			// groupBox3
			// 
			this->groupBox3->Controls->Add(this->btnSave);
			this->groupBox3->Controls->Add(this->btnSearch);
			this->groupBox3->Controls->Add(this->tBoxPinYin);
			this->groupBox3->Controls->Add(this->label13);
			this->groupBox3->Controls->Add(this->tBoxCourseName);
			this->groupBox3->Controls->Add(this->label9);
			this->groupBox3->Controls->Add(this->tBoxCourseID);
			this->groupBox3->Controls->Add(this->label5);
			this->groupBox3->Dock = System::Windows::Forms::DockStyle::Top;
			this->groupBox3->Location = System::Drawing::Point(0, 96);
			this->groupBox3->Name = S"groupBox3";
			this->groupBox3->Size = System::Drawing::Size(744, 120);
			this->groupBox3->TabIndex = 6;
			this->groupBox3->TabStop = false;
			this->groupBox3->Text = S"选择课程";
			// 
			// btnSave
			// 

⌨️ 快捷键说明

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