📄 frmclass.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;namespace 教务管理系统{ public class frmClass : 教务管理系统.frmBase {
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.TextBox txbShortName;
internal System.Windows.Forms.Label Label9;
internal System.Windows.Forms.TextBox txbName;
internal System.Windows.Forms.Label Label8;
internal System.Windows.Forms.TextBox txbTeacher;
internal System.Windows.Forms.Label Label7;
internal System.Windows.Forms.TextBox txbNumber;
internal System.Windows.Forms.Label Label6;
internal System.Windows.Forms.TextBox txbGrade;
internal System.Windows.Forms.Label Label5;
internal System.Windows.Forms.TextBox txbClassId;
internal System.Windows.Forms.Label Label4;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private 教务管理系统.DataSet1 dataSet11; private System.ComponentModel.IContainer components = null; public frmClass() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.txbShortName = new System.Windows.Forms.TextBox();
this.dataSet11 = new 教务管理系统.DataSet1();
this.Label9 = new System.Windows.Forms.Label();
this.txbName = new System.Windows.Forms.TextBox();
this.Label8 = new System.Windows.Forms.Label();
this.txbTeacher = new System.Windows.Forms.TextBox();
this.Label7 = new System.Windows.Forms.Label();
this.txbNumber = new System.Windows.Forms.TextBox();
this.Label6 = new System.Windows.Forms.Label();
this.txbGrade = new System.Windows.Forms.TextBox();
this.Label5 = new System.Windows.Forms.Label();
this.txbClassId = new System.Windows.Forms.TextBox();
this.Label4 = new System.Windows.Forms.Label();
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
((System.ComponentModel.ISupportInitialize)(this.dgdList)).BeginInit();
this.GroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
this.SuspendLayout();
//
// dgdList
//
this.dgdList.Name = "dgdList";
this.dgdList.Size = new System.Drawing.Size(603, 168);
//
// txbOne
//
this.txbOne.Name = "txbOne";
//
// GroupBox1
//
this.GroupBox1.Controls.Add(this.txbShortName);
this.GroupBox1.Controls.Add(this.Label9);
this.GroupBox1.Controls.Add(this.txbName);
this.GroupBox1.Controls.Add(this.Label8);
this.GroupBox1.Controls.Add(this.txbTeacher);
this.GroupBox1.Controls.Add(this.Label7);
this.GroupBox1.Controls.Add(this.txbNumber);
this.GroupBox1.Controls.Add(this.Label6);
this.GroupBox1.Controls.Add(this.txbGrade);
this.GroupBox1.Controls.Add(this.Label5);
this.GroupBox1.Controls.Add(this.txbClassId);
this.GroupBox1.Controls.Add(this.Label4);
this.GroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.GroupBox1.Location = new System.Drawing.Point(0, 270);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(600, 64);
this.GroupBox1.TabIndex = 7;
this.GroupBox1.TabStop = false;
//
// txbShortName
//
this.txbShortName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.班级简称"));
this.txbShortName.Location = new System.Drawing.Point(492, 29);
this.txbShortName.Name = "txbShortName";
this.txbShortName.Size = new System.Drawing.Size(80, 21);
this.txbShortName.TabIndex = 27;
this.txbShortName.Text = "";
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
//
// Label9
//
this.Label9.Location = new System.Drawing.Point(492, 13);
this.Label9.Name = "Label9";
this.Label9.Size = new System.Drawing.Size(56, 16);
this.Label9.TabIndex = 26;
this.Label9.Text = "班级简称";
//
// txbName
//
this.txbName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.班级名称"));
this.txbName.Location = new System.Drawing.Point(396, 29);
this.txbName.Name = "txbName";
this.txbName.Size = new System.Drawing.Size(80, 21);
this.txbName.TabIndex = 25;
this.txbName.Text = "";
//
// Label8
//
this.Label8.Location = new System.Drawing.Point(396, 13);
this.Label8.Name = "Label8";
this.Label8.Size = new System.Drawing.Size(56, 16);
this.Label8.TabIndex = 24;
this.Label8.Text = "班级名称";
//
// txbTeacher
//
this.txbTeacher.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.班主任"));
this.txbTeacher.Location = new System.Drawing.Point(300, 29);
this.txbTeacher.Name = "txbTeacher";
this.txbTeacher.Size = new System.Drawing.Size(80, 21);
this.txbTeacher.TabIndex = 23;
this.txbTeacher.Text = "";
//
// Label7
//
this.Label7.Location = new System.Drawing.Point(300, 13);
this.Label7.Name = "Label7";
this.Label7.Size = new System.Drawing.Size(56, 16);
this.Label7.TabIndex = 22;
this.Label7.Text = "班主任";
//
// txbNumber
//
this.txbNumber.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.人数"));
this.txbNumber.Location = new System.Drawing.Point(204, 29);
this.txbNumber.Name = "txbNumber";
this.txbNumber.Size = new System.Drawing.Size(80, 21);
this.txbNumber.TabIndex = 21;
this.txbNumber.Text = "";
//
// Label6
//
this.Label6.Location = new System.Drawing.Point(204, 13);
this.Label6.Name = "Label6";
this.Label6.Size = new System.Drawing.Size(56, 16);
this.Label6.TabIndex = 20;
this.Label6.Text = "人数";
//
// txbGrade
//
this.txbGrade.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.年级"));
this.txbGrade.Location = new System.Drawing.Point(108, 29);
this.txbGrade.Name = "txbGrade";
this.txbGrade.Size = new System.Drawing.Size(80, 21);
this.txbGrade.TabIndex = 19;
this.txbGrade.Text = "";
//
// Label5
//
this.Label5.Location = new System.Drawing.Point(108, 13);
this.Label5.Name = "Label5";
this.Label5.Size = new System.Drawing.Size(56, 16);
this.Label5.TabIndex = 18;
this.Label5.Text = "年级";
//
// txbClassId
//
this.txbClassId.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "班级信息.班级编号"));
this.txbClassId.Location = new System.Drawing.Point(12, 29);
this.txbClassId.Name = "txbClassId";
this.txbClassId.Size = new System.Drawing.Size(80, 21);
this.txbClassId.TabIndex = 17;
this.txbClassId.Text = "";
//
// Label4
//
this.Label4.Location = new System.Drawing.Point(12, 13);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(56, 16);
this.Label4.TabIndex = 16;
this.Label4.Text = "班级编号";
//
// sqlDataAdapter1
//
this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
new System.Data.Common.DataTableMapping("Table", "班级信息", new System.Data.Common.DataColumnMapping[] {
new System.Data.Common.DataColumnMapping("班级编号", "班级编号"),
new System.Data.Common.DataColumnMapping("年级", "年级"),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -