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

📄 frmeditscore.cs

📁 一个学籍管理系统 以在某高校投入使用了
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace prjClass
{
	/// <summary>
	/// frmEditScore 的摘要说明。
	/// </summary>
	public class frmEditScore : System.Windows.Forms.Form
	{
		private DataTable dt = new DataTable();
		private string ScoreID = "";
		private Class1 c = new Class1();
		private DataAccess da = new DataAccess();
		private System.Windows.Forms.GroupBox groupBox1;
		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.TextBox txtYear;
		private System.Windows.Forms.ComboBox cboSpec;
		private System.Windows.Forms.ComboBox cboClass;
		private System.Windows.Forms.ComboBox cboSeme;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Button bbtnDel;
		private System.Windows.Forms.Button btnCancle;
		private System.Windows.Forms.ImageList imageList1;
		private System.ComponentModel.IContainer components;

		public frmEditScore()
		{
			//
			// 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.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmEditScore));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.cboSeme = new System.Windows.Forms.ComboBox();
			this.cboClass = new System.Windows.Forms.ComboBox();
			this.cboSpec = new System.Windows.Forms.ComboBox();
			this.txtYear = new System.Windows.Forms.TextBox();
			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.listView1 = new System.Windows.Forms.ListView();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.btnEdit = new System.Windows.Forms.Button();
			this.bbtnDel = new System.Windows.Forms.Button();
			this.btnCancle = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.cboSeme);
			this.groupBox1.Controls.Add(this.cboClass);
			this.groupBox1.Controls.Add(this.cboSpec);
			this.groupBox1.Controls.Add(this.txtYear);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(24, 32);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(960, 100);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "选择";
			// 
			// cboSeme
			// 
			this.cboSeme.Location = new System.Drawing.Point(792, 48);
			this.cboSeme.Name = "cboSeme";
			this.cboSeme.Size = new System.Drawing.Size(121, 20);
			this.cboSeme.TabIndex = 7;
			this.cboSeme.Text = "comboBox3";
			// 
			// cboClass
			// 
			this.cboClass.Location = new System.Drawing.Point(560, 48);
			this.cboClass.Name = "cboClass";
			this.cboClass.Size = new System.Drawing.Size(121, 20);
			this.cboClass.TabIndex = 6;
			this.cboClass.Text = "comboBox2";
			this.cboClass.SelectedIndexChanged += new System.EventHandler(this.cboClass_SelectedIndexChanged);
			// 
			// cboSpec
			// 
			this.cboSpec.Location = new System.Drawing.Point(96, 48);
			this.cboSpec.Name = "cboSpec";
			this.cboSpec.Size = new System.Drawing.Size(121, 20);
			this.cboSpec.TabIndex = 5;
			this.cboSpec.Text = "comboBox1";
			this.cboSpec.SelectedIndexChanged += new System.EventHandler(this.cboSpec_SelectedIndexChanged);
			// 
			// txtYear
			// 
			this.txtYear.Location = new System.Drawing.Point(328, 48);
			this.txtYear.Name = "txtYear";
			this.txtYear.TabIndex = 4;
			this.txtYear.Text = "";
			this.txtYear.TextChanged += new System.EventHandler(this.txtYear_TextChanged);
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(728, 48);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 16);
			this.label4.TabIndex = 3;
			this.label4.Text = "学期";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(496, 48);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 16);
			this.label3.TabIndex = 2;
			this.label3.Text = "班级";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(264, 48);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(64, 16);
			this.label2.TabIndex = 1;
			this.label2.Text = "入学年份";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(32, 48);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(64, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "专业";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.listView1);
			this.groupBox2.Location = new System.Drawing.Point(24, 160);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(472, 488);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "学生名单";
			// 
			// listView1
			// 
			this.listView1.Location = new System.Drawing.Point(16, 32);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(448, 440);
			this.listView1.SmallImageList = this.imageList1;
			this.listView1.TabIndex = 0;
			this.listView1.View = System.Windows.Forms.View.List;
			this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.dataGrid1);
			this.groupBox3.Location = new System.Drawing.Point(512, 160);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(472, 416);
			this.groupBox3.TabIndex = 2;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "成绩清单";
			// 
			// dataGrid1
			// 
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(16, 32);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.Size = new System.Drawing.Size(448, 376);
			this.dataGrid1.TabIndex = 0;
			this.dataGrid1.GotFocus += new System.EventHandler(this.dataGrid1_GotFocus);
			this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
			// 
			// btnEdit
			// 
			this.btnEdit.Location = new System.Drawing.Point(536, 608);
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.TabIndex = 3;
			this.btnEdit.Text = "修改分数";
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// bbtnDel
			// 
			this.bbtnDel.Location = new System.Drawing.Point(720, 608);
			this.bbtnDel.Name = "bbtnDel";
			this.bbtnDel.TabIndex = 4;
			this.bbtnDel.Text = "删除分数";
			this.bbtnDel.Click += new System.EventHandler(this.bbtnDel_Click);
			// 
			// btnCancle
			// 
			this.btnCancle.Location = new System.Drawing.Point(880, 608);
			this.btnCancle.Name = "btnCancle";

⌨️ 快捷键说明

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