亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winmain.cs

?? Microsoft Visual C++ 6.0
?? CS
字號:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Configuration;
namespace CJGL
{
	/// <summary>
	/// WinMain 的摘要說明。
	/// </summary>
	public class WinMain: System.Windows.Forms.Form
	{
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ToolBarButton toolBarButton5;
		private System.Windows.Forms.ToolBarButton toolBarButton6;
		private System.Windows.Forms.ToolBarButton toolBarButton7;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.ToolBarButton toolBarButton8;
        public string user;
		public WinMain()
		{
			//
			// 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(WinMain));
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// dataGrid1
			// 
			this.dataGrid1.AlternatingBackColor = System.Drawing.Color.LightGray;
			this.dataGrid1.BackColor = System.Drawing.Color.DarkGray;
			this.dataGrid1.BackgroundColor = System.Drawing.Color.DimGray;
			this.dataGrid1.CaptionBackColor = System.Drawing.Color.White;
			this.dataGrid1.CaptionFont = new System.Drawing.Font("Verdana", 10F);
			this.dataGrid1.CaptionForeColor = System.Drawing.Color.Navy;
			this.dataGrid1.CaptionText = "111222";
			this.dataGrid1.CaptionVisible = false;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.ForeColor = System.Drawing.Color.Black;
			this.dataGrid1.GridLineColor = System.Drawing.Color.Silver;
			this.dataGrid1.HeaderBackColor = System.Drawing.Color.Silver;
			this.dataGrid1.HeaderForeColor = System.Drawing.Color.Black;
			this.dataGrid1.LinkColor = System.Drawing.Color.Navy;
			this.dataGrid1.Location = new System.Drawing.Point(8, 40);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.White;
			this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.Black;
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.SelectionBackColor = System.Drawing.Color.Navy;
			this.dataGrid1.SelectionForeColor = System.Drawing.Color.White;
			this.dataGrid1.Size = new System.Drawing.Size(664, 344);
			this.dataGrid1.TabIndex = 0;
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem1,
																					  this.menuItem3,
																					  this.menuItem4});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem2});
			this.menuItem1.Text = "數據庫";
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 0;
			this.menuItem2.Text = "";
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 1;
			this.menuItem3.Text = "操作";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 2;
			this.menuItem4.Text = "幫助";
			// 
			// toolBar1
			// 
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.toolBarButton1,
																						this.toolBarButton2,
																						this.toolBarButton3,
																						this.toolBarButton8,
																						this.toolBarButton4,
																						this.toolBarButton5,
																						this.toolBarButton6,
																						this.toolBarButton7});
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList1;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(664, 41);
			this.toolBar1.TabIndex = 1;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 0;
			this.toolBarButton1.Text = "增加檔案";
			this.toolBarButton1.ToolTipText = "增加學生檔案";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 1;
			this.toolBarButton2.Text = "修改檔案";
			this.toolBarButton2.ToolTipText = "修改學生檔案";
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 2;
			this.toolBarButton3.Text = "刪除檔案";
			this.toolBarButton3.ToolTipText = "刪除學生檔案";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 3;
			this.toolBarButton4.Text = "學生分類";
			this.toolBarButton4.ToolTipText = "學生分類";
			// 
			// toolBarButton5
			// 
			this.toolBarButton5.ImageIndex = 4;
			this.toolBarButton5.Text = "名單打印";
			this.toolBarButton5.ToolTipText = "名單打印";
			// 
			// toolBarButton6
			// 
			this.toolBarButton6.ImageIndex = 5;
			this.toolBarButton6.Text = "系統幫助";
			this.toolBarButton6.ToolTipText = "系統幫助";
			// 
			// toolBarButton7
			// 
			this.toolBarButton7.ImageIndex = 0;
			this.toolBarButton7.Text = "退出登錄";
			this.toolBarButton7.ToolTipText = "退出登錄";
			// 
			// 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;
			// 
			// toolBarButton8
			// 
			this.toolBarButton8.ImageIndex = 6;
			this.toolBarButton8.Text = "保存記錄";
			this.toolBarButton8.ToolTipText = "保存記錄";
			// 
			// WinMain
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(664, 381);
			this.Controls.Add(this.toolBar1);
			this.Controls.Add(this.dataGrid1);
			this.Menu = this.mainMenu1;
			this.Name = "WinMain";
			this.Text = "WinMain";
			this.Load += new System.EventHandler(this.WinMain_Load);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void WinMain_Load(object sender, System.EventArgs e)
		{
			if(this.user=="學生")
			{
				this.toolBarButton1.Visible=false;
				this.toolBarButton2.Visible=false;
				this.toolBarButton3.Visible=false;
				this.toolBarButton4.Visible=false;
				this.Text="學生成績查看";
			}
			else 
				this.Text="系統管理";
			
			
			
			
			
			
			string sql="select * from student";
			DataAccess data=new DataAccess();
			DataTable dt=data.GetDataTable(sql);
			dataGrid1.DataSource=dt;
			


			DataGridTableStyle ts=new DataGridTableStyle();
			dataGrid1.DataSource=dt;
			ts.MappingName=dt.TableName;
			int numCols=dt.Columns.Count;  //數據源的列數
			dataGrid1.CaptionText = "學生檔案列表";
			
			DataGridTextBoxColumn hh=new DataGridTextBoxColumn();
			hh.HeaderText ="行號";
			hh.MappingName =dt.Rows.Count.ToString();
			ts.PreferredColumnWidth = 50;
			ts.PreferredRowHeight = 20;
			ts.AlternatingBackColor = Color.LightGray;    //設定交替行的背景色
			ts.GridColumnStyles.Add(hh);   //增加一種自定義的column風格

			for (int i=0;i<numCols;i++)
			{
				DataGridTextBoxColumn aColumnTextColumn=new DataGridTextBoxColumn();
				aColumnTextColumn.HeaderText =ConvertTitle(dt.Columns[i].ColumnName);
                aColumnTextColumn.MappingName =dt.Columns[i].ColumnName;
				if (i==1)
				{
					ts.PreferredColumnWidth = 95;
					ts.PreferredRowHeight = 25;
				}
				ts.AlternatingBackColor = Color.LightGray;    //設定交替行的背景色
                ts.GridColumnStyles.Add(aColumnTextColumn);   //增加一種自定義的column風格
			}
			 dataGrid1.TableStyles.Add(ts); //增加一種自定義的表風格
			
		}
		private string ConvertTitle(string name)
		{
			switch (name)
			{
				case "stuid":
					return "學號";
				case "name":
					return "姓名";
				case "sex":
					return "性別";
				case "class":
					return "班級";
				case "tel":
					return "電話";
				case "address":
					return "家庭地址";
				case "btime":
					return "入學時間";
				default:
					return "";

			}
		}

		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
				DataAccess data=new DataAccess();
			if(e.Button==this.toolBarButton7)
			{
				this.Close();
			   
			}

			else if(e.Button==this.toolBarButton1)
			{
				WinNewUser winnewuser=new WinNewUser();
				winnewuser.Text="添加學生信息";
				winnewuser.Show();

			}
			else if(e.Button==this.toolBarButton2)
				  {
				WinNewUser winnewuser=new WinNewUser();
				winnewuser.Text="修改學生信息";
				
			//    winnewuser.stuidtext.Text
				winnewuser.Show();
				
				  }
				  else if(e.Button==this.toolBarButton8)
				  {
					  System.Data.SqlClient.SqlDataAdapter adapter=new SqlDataAdapter();
					  string sql="select *from student";
			
					  adapter.Fill(data.GetDataSet(sql,"student"));
					  adapter.Update(data.GetDataSet(sql,"student"),"student");
			
                  
				  }

		
		}
		
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久只精品国产| 波多野结衣精品在线| 欧美日韩国产小视频| 一区二区三区高清| 欧美性受极品xxxx喷水| 日韩成人免费电影| 精品久久久三级丝袜| 成人一区二区视频| 中文字幕日韩精品一区| 欧美在线短视频| 另类专区欧美蜜桃臀第一页| 久久久久久免费| 欧美日韩成人在线| 奇米影视在线99精品| 欧美激情中文字幕| 欧洲国产伦久久久久久久| 婷婷一区二区三区| 久久视频一区二区| 色94色欧美sute亚洲线路一久 | 欧美大片拔萝卜| 国产成人免费在线视频| 一区二区三区四区乱视频| 91精品国产91热久久久做人人| 国产在线观看免费一区| 亚洲美女视频在线观看| 欧美一区二区三区在线看| 国产高清亚洲一区| 亚洲第一狼人社区| 久久九九99视频| 欧美日韩大陆在线| av成人免费在线观看| 日本在线不卡视频| 《视频一区视频二区| 91精品国产手机| 91日韩在线专区| 久草在线在线精品观看| 有坂深雪av一区二区精品| 亚洲精品在线一区二区| 欧美综合一区二区| 成人黄页在线观看| 极品少妇一区二区| 亚洲国产一区二区视频| 国产欧美一区二区精品秋霞影院 | 日本黄色一区二区| 精品一区二区三区影院在线午夜| 亚洲男人的天堂一区二区| 久久久久久久久久久黄色| 欧美日韩国产美女| 91美女片黄在线观看| 国产精品99久久久久久宅男| 国产真实精品久久二三区| 亚洲精品国产成人久久av盗摄| 国产欧美日韩不卡| 久久色在线观看| 日韩欧美另类在线| 337p亚洲精品色噜噜| 色系网站成人免费| 成人激情校园春色| 高清不卡一区二区在线| 国内精品不卡在线| 精品亚洲免费视频| 美腿丝袜一区二区三区| 日韩影视精彩在线| 亚洲地区一二三色| 性欧美疯狂xxxxbbbb| 国产精品美女久久久久av爽李琼| 久久亚区不卡日本| 2020国产精品| 久久夜色精品国产欧美乱极品| 欧美成人乱码一区二区三区| 欧美一区三区四区| 日韩一区二区免费电影| 欧美日韩免费一区二区三区视频| 91福利资源站| 在线观看中文字幕不卡| 欧美日韩在线播放三区| 欧美日韩一卡二卡三卡| 欧美丝袜丝交足nylons| 欧美日韩国产一二三| 91麻豆精品国产91久久久| 日韩欧美在线1卡| 精品剧情v国产在线观看在线| 欧美成人三级在线| 久久久久久久久免费| 国产精品色在线| 欧美国产乱子伦| 亚洲摸摸操操av| 日韩中文字幕1| 韩国成人精品a∨在线观看| 国产美女娇喘av呻吟久久| 成人深夜福利app| 99久久99久久精品免费观看| 一本大道久久精品懂色aⅴ | 精品国产欧美一区二区| 国产偷v国产偷v亚洲高清 | 综合激情网...| 亚洲国产综合91精品麻豆| 日韩电影在线一区| 国产在线不卡一卡二卡三卡四卡| www.在线成人| 欧美日韩国产天堂| 国产日韩一级二级三级| 亚洲激情六月丁香| 毛片一区二区三区| 成人av资源站| 这里只有精品免费| 国产精品久久久久久久久免费丝袜 | 成+人+亚洲+综合天堂| 色香色香欲天天天影视综合网| 51久久夜色精品国产麻豆| 国产网站一区二区| 亚洲不卡一区二区三区| 国产寡妇亲子伦一区二区| 欧美亚洲一区三区| 久久蜜桃av一区二区天堂| 亚洲欧美激情插| 日本不卡在线视频| 99久久99久久综合| 91精品国产综合久久精品性色| 国产女人aaa级久久久级| 亚洲成人激情自拍| 成人免费毛片片v| 欧美一区二区三区精品| 中文字幕视频一区| 亚洲国产成人av好男人在线观看| 国产福利精品导航| 欧美一级午夜免费电影| 亚洲欧美电影一区二区| 国产中文字幕精品| 亚洲精品一区二区三区精华液| 成人免费一区二区三区视频 | 欧美亚洲综合一区| 欧美激情一区二区在线| 日韩av不卡在线观看| 91蜜桃在线免费视频| 久久无码av三级| 日韩—二三区免费观看av| 91丝袜美腿高跟国产极品老师| 久久老女人爱爱| 日本亚洲欧美天堂免费| 在线免费一区三区| 久久久精品日韩欧美| 狂野欧美性猛交blacked| 欧美精品亚洲一区二区在线播放| 国产精品二三区| 国产宾馆实践打屁股91| 日韩欧美综合一区| 免费高清不卡av| 7777精品伊人久久久大香线蕉| 亚洲欧美日韩综合aⅴ视频| 国产成人三级在线观看| 亚洲精品一区在线观看| 免费的成人av| 日韩美女主播在线视频一区二区三区| 亚洲伦理在线免费看| 99久久免费精品| 中文字幕一区二区三区四区不卡 | 日日夜夜免费精品视频| 在线亚洲人成电影网站色www| 中文天堂在线一区| 国产91在线观看丝袜| 国产偷国产偷亚洲高清人白洁| 国产永久精品大片wwwapp| 精品国产一区二区精华| 久久精品av麻豆的观看方式| 日韩一级片在线播放| 免费欧美日韩国产三级电影| 欧美一区二区在线免费播放| 日韩综合一区二区| 欧美一区二区三区思思人| 不卡av在线网| 国产精品久久久久aaaa樱花| 成人动漫一区二区| 国产日产欧产精品推荐色 | 精品视频一区二区不卡| 欧美女孩性生活视频| 久久综合九色综合久久久精品综合 | 在线综合亚洲欧美在线视频| 777午夜精品视频在线播放| 欧美乱熟臀69xxxxxx| 国产成人亚洲精品青草天美| 国产一区二区电影| 国产精品一区二区久久精品爱涩| 成人一级片网址| 丁香天五香天堂综合| 色婷婷久久久综合中文字幕 | 91蝌蚪porny成人天涯| 免费一级片91| 美日韩一区二区| 中文字幕乱码一区二区免费| 欧美日韩综合在线免费观看| 99久久夜色精品国产网站| 丰满少妇久久久久久久| 国产一区二区三区香蕉| 国产成人午夜视频| 粉嫩aⅴ一区二区三区四区五区| 成人一道本在线| 国产精品女主播av| 97se亚洲国产综合自在线观| 欧美精彩视频一区二区三区|