?? teachermessagefrm.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace 教師簽到系統
{
/// <summary>
/// TeacherMessageFrm 的摘要說明。
/// </summary>
public class TeacherMessageFrm : System.Windows.Forms.Form
{
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox textBox11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.DataGrid dataGrid2;
private System.Data.OleDb.OleDbConnection oleDbConnection1;
private System.Data.OleDb.OleDbDataAdapter myoleDbData;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Button btnPrevious;
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.Button btnLast;
private System.Windows.Forms.Button btnFirst;
private System.Windows.Forms.TextBox textNation;
private System.Windows.Forms.TextBox textAge;
private System.Windows.Forms.TextBox textName;
private System.Windows.Forms.TextBox textId;
private System.Windows.Forms.ComboBox comsex;
private System.Windows.Forms.TextBox textDuty;
private System.Windows.Forms.TextBox textStatus;
private System.Windows.Forms.TextBox textTel;
private System.Windows.Forms.TextBox textAddress;
private System.Windows.Forms.ComboBox combDegree;
private System.Windows.Forms.Button btnAdd;
private System.Windows.Forms.Button btnApply;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.Button btnDelete;
private System.Windows.Forms.Button btnModify;
private System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
private System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
private System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
private 教師簽到系統.Teacher myTeacher;
private System.Windows.Forms.Button btnQuery;
private System.Windows.Forms.Button btnClear;
private DataView TeacherQuaryDataView=new DataView();
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public TeacherMessageFrm()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.combDegree = new System.Windows.Forms.ComboBox();
this.myTeacher = new 教師簽到系統.Teacher();
this.comsex = new System.Windows.Forms.ComboBox();
this.textTel = new System.Windows.Forms.TextBox();
this.textAddress = new System.Windows.Forms.TextBox();
this.textDuty = new System.Windows.Forms.TextBox();
this.textStatus = new System.Windows.Forms.TextBox();
this.textNation = new System.Windows.Forms.TextBox();
this.textAge = new System.Windows.Forms.TextBox();
this.textName = new System.Windows.Forms.TextBox();
this.textId = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.btnLast = new System.Windows.Forms.Button();
this.btnNext = new System.Windows.Forms.Button();
this.btnPrevious = new System.Windows.Forms.Button();
this.btnFirst = new System.Windows.Forms.Button();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.btnApply = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnDelete = new System.Windows.Forms.Button();
this.btnModify = new System.Windows.Forms.Button();
this.btnAdd = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.dataGrid2 = new System.Windows.Forms.DataGrid();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.textBox12 = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.textBox11 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.btnQuery = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.myoleDbData = new System.Data.OleDb.OleDbDataAdapter();
this.oleDbDeleteCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();
this.oleDbInsertCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
this.oleDbUpdateCommand1 = new System.Data.OleDb.OleDbCommand();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.myTeacher)).BeginInit();
this.groupBox2.SuspendLayout();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.groupBox1.SuspendLayout();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
this.groupBox4.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(8, 8);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(616, 480);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox2);
this.tabPage1.Controls.Add(this.btnApply);
this.tabPage1.Controls.Add(this.btnCancel);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 21);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(608, 455);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "教師信息管理";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.combDegree);
this.groupBox3.Controls.Add(this.comsex);
this.groupBox3.Controls.Add(this.textTel);
this.groupBox3.Controls.Add(this.textAddress);
this.groupBox3.Controls.Add(this.textDuty);
this.groupBox3.Controls.Add(this.textStatus);
this.groupBox3.Controls.Add(this.textNation);
this.groupBox3.Controls.Add(this.textAge);
this.groupBox3.Controls.Add(this.textName);
this.groupBox3.Controls.Add(this.textId);
this.groupBox3.Controls.Add(this.label10);
this.groupBox3.Controls.Add(this.label9);
this.groupBox3.Controls.Add(this.label8);
this.groupBox3.Controls.Add(this.label7);
this.groupBox3.Controls.Add(this.label6);
this.groupBox3.Controls.Add(this.label5);
this.groupBox3.Controls.Add(this.label4);
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.label2);
this.groupBox3.Controls.Add(this.label1);
this.groupBox3.Location = new System.Drawing.Point(424, 16);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(168, 424);
this.groupBox3.TabIndex = 4;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "教師詳細信息";
//
// combDegree
//
this.combDegree.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.myTeacher, "教師信息.學歷"));
this.combDegree.Items.AddRange(new object[] {
"中專",
"大專",
"本科",
"碩士",
"博士",
"博士后"});
this.combDegree.Location = new System.Drawing.Point(64, 304);
this.combDegree.Name = "combDegree";
this.combDegree.Size = new System.Drawing.Size(96, 20);
this.combDegree.TabIndex = 23;
//
// myTeacher
//
this.myTeacher.DataSetName = "Teacher";
this.myTeacher.Locale = new System.Globalization.CultureInfo("en-US");
//
// comsex
//
this.comsex.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.myTeacher, "教師信息.性別"));
this.comsex.Items.AddRange(new object[] {
"男",
"女"});
this.comsex.Location = new System.Drawing.Point(64, 144);
this.comsex.Name = "comsex";
this.comsex.Size = new System.Drawing.Size(96, 20);
this.comsex.TabIndex = 22;
//
// textTel
//
this.textTel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.myTeacher, "教師信息.聯系電話"));
this.textTel.Location = new System.Drawing.Point(64, 384);
this.textTel.Name = "textTel";
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -