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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? winmain.cs

?? 工資管理系統(tǒng)可以用于一個小公司的工資管理
?? 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 窗體設(shè)計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設(shè)計器生成的代碼
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </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 = "數(shù)據(jù)庫";
			// 
			// 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 = "增加學(xué)生檔案";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 1;
			this.toolBarButton2.Text = "修改檔案";
			this.toolBarButton2.ToolTipText = "修改學(xué)生檔案";
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 2;
			this.toolBarButton3.Text = "刪除檔案";
			this.toolBarButton3.ToolTipText = "刪除學(xué)生檔案";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 3;
			this.toolBarButton4.Text = "學(xué)生分類";
			this.toolBarButton4.ToolTipText = "學(xué)生分類";
			// 
			// toolBarButton5
			// 
			this.toolBarButton5.ImageIndex = 4;
			this.toolBarButton5.Text = "名單打印";
			this.toolBarButton5.ToolTipText = "名單打印";
			// 
			// toolBarButton6
			// 
			this.toolBarButton6.ImageIndex = 5;
			this.toolBarButton6.Text = "系統(tǒng)幫助";
			this.toolBarButton6.ToolTipText = "系統(tǒng)幫助";
			// 
			// 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=="學(xué)生")
			{
				this.toolBarButton1.Visible=false;
				this.toolBarButton2.Visible=false;
				this.toolBarButton3.Visible=false;
				this.toolBarButton4.Visible=false;
				this.Text="學(xué)生成績查看";
			}
			else 
				this.Text="系統(tǒng)管理";
			
			
			
			
			
			
			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;  //數(shù)據(jù)源的列數(shù)
			dataGrid1.CaptionText = "學(xué)生檔案列表";
			
			DataGridTextBoxColumn hh=new DataGridTextBoxColumn();
			hh.HeaderText ="行號";
			hh.MappingName =dt.Rows.Count.ToString();
			ts.PreferredColumnWidth = 50;
			ts.PreferredRowHeight = 20;
			ts.AlternatingBackColor = Color.LightGray;    //設(shè)定交替行的背景色
			ts.GridColumnStyles.Add(hh);   //增加一種自定義的column風(fēng)格

			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;    //設(shè)定交替行的背景色
                ts.GridColumnStyles.Add(aColumnTextColumn);   //增加一種自定義的column風(fēng)格
			}
			 dataGrid1.TableStyles.Add(ts); //增加一種自定義的表風(fēng)格
			
		}
		private string ConvertTitle(string name)
		{
			switch (name)
			{
				case "stuid":
					return "學(xué)號";
				case "name":
					return "姓名";
				case "sex":
					return "性別";
				case "class":
					return "班級";
				case "tel":
					return "電話";
				case "address":
					return "家庭地址";
				case "btime":
					return "入學(xué)時間";
				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="添加學(xué)生信息";
				winnewuser.Show();

			}
			else if(e.Button==this.toolBarButton2)
				  {
				WinNewUser winnewuser=new WinNewUser();
				winnewuser.Text="修改學(xué)生信息";
				
			//    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");
			
                  
				  }

		
		}
		
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情综合五月色丁香| 欧美一级欧美三级在线观看| 久久久www成人免费毛片麻豆| 精品影视av免费| 26uuu欧美| 国产成人av电影在线| 国产精品人妖ts系列视频| 成人一级黄色片| 自拍偷在线精品自拍偷无码专区| 91免费观看国产| 亚洲国产wwwccc36天堂| 91精品午夜视频| 狠狠久久亚洲欧美| 中文字幕精品—区二区四季| 91在线视频播放| 五月天亚洲婷婷| 欧美不卡一区二区三区四区| 国产最新精品免费| 综合欧美亚洲日本| 欧美人狂配大交3d怪物一区| 日本女人一区二区三区| 精品久久久久久久久久久院品网 | 肉色丝袜一区二区| 久久青草国产手机看片福利盒子| 成人午夜免费av| 亚洲国产成人av网| 久久久精品日韩欧美| 一本久道中文字幕精品亚洲嫩| 午夜欧美大尺度福利影院在线看| 欧美xxxxx裸体时装秀| 99视频超级精品| 日韩电影一区二区三区四区| 国产视频在线观看一区二区三区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 中文在线资源观看网站视频免费不卡 | 久久久精品国产99久久精品芒果| 99久久精品免费看国产免费软件| 亚洲sss视频在线视频| 久久噜噜亚洲综合| 欧美三级资源在线| 国产精品一区二区在线播放 | 91黄色激情网站| 久久精品99国产国产精| 日韩理论片一区二区| 欧美成人精品3d动漫h| 色久综合一二码| 国产精品一品二品| 三级欧美在线一区| 亚洲欧美在线视频观看| 精品久久久久久久久久久久包黑料 | 国产91露脸合集magnet| 亚洲成人www| 国产精品色在线观看| 91精品啪在线观看国产60岁| 91美女在线看| 成人精品小蝌蚪| 极品尤物av久久免费看| 午夜精品一区在线观看| 成人欧美一区二区三区小说| 欧美mv和日韩mv的网站| 欧美老肥妇做.爰bbww| 日本高清视频一区二区| 成人av在线电影| 国产精品99久久久久久有的能看| 日产国产欧美视频一区精品| 一二三区精品福利视频| 中文字幕中文字幕在线一区 | 一本到三区不卡视频| 懂色av一区二区夜夜嗨| 国精品**一区二区三区在线蜜桃| 奇米影视一区二区三区小说| 一卡二卡欧美日韩| 亚洲精品菠萝久久久久久久| 国产精品麻豆久久久| 国产午夜精品一区二区三区嫩草| 日韩欧美一区二区久久婷婷| 欧美日韩国产一区| 在线不卡免费av| 欧美国产国产综合| 久久久国产一区二区三区四区小说| 欧美一区二区精美| 日韩一级免费一区| 日韩午夜中文字幕| 日韩一级免费观看| 26uuu国产电影一区二区| 欧美成人激情免费网| 久久尤物电影视频在线观看| 久久综合九色综合97婷婷女人| 久久人人超碰精品| 国产亚洲综合色| 国产日韩精品视频一区| 国产精品欧美一级免费| 亚洲日本丝袜连裤袜办公室| 亚洲女同一区二区| 亚洲一区二区三区精品在线| 舔着乳尖日韩一区| 久久99国产乱子伦精品免费| 国产乱子伦一区二区三区国色天香| 国产精品一区免费在线观看| 99久久综合国产精品| 欧美中文字幕一区二区三区| 欧美电影在线免费观看| 欧美xxxxxxxx| 国产精品国产三级国产aⅴ原创| 最近日韩中文字幕| 日韩电影在线免费看| 国产精品自拍av| 99天天综合性| 337p亚洲精品色噜噜狠狠| 精品国产1区2区3区| 中文字幕一区二区三区四区不卡| 亚洲综合色自拍一区| 久草热8精品视频在线观看| a级高清视频欧美日韩| 欧美美女一区二区在线观看| 欧美tickling网站挠脚心| 国产精品美女视频| 亚洲午夜精品网| 国产精品一区二区三区99| av影院午夜一区| 日韩一区二区在线播放| 日本一二三不卡| 丝瓜av网站精品一区二区 | av电影天堂一区二区在线| 欧美调教femdomvk| 亚洲精品一区二区三区影院| 亚洲男人都懂的| 久久99日本精品| 欧美中文字幕一二三区视频| 久久久噜噜噜久久中文字幕色伊伊| 日韩理论片中文av| 国内国产精品久久| 欧美日韩一区二区电影| 国产日韩视频一区二区三区| 三级影片在线观看欧美日韩一区二区 | 国产婷婷色一区二区三区四区| 亚洲一区二区视频| 福利一区在线观看| 欧美一区二区二区| 亚洲精品视频自拍| 高清国产一区二区三区| 日韩三级免费观看| 一区二区三区精品视频在线| 国产99久久精品| 欧美成人一区二区三区片免费| 亚洲国产精品人人做人人爽| www.久久精品| 国产午夜久久久久| 激情图片小说一区| 日韩免费电影一区| 日本不卡视频在线观看| 欧美日韩免费一区二区三区视频| 国产精品久久久久久久久免费相片 | 亚洲国产一区二区a毛片| www.欧美色图| 国产欧美1区2区3区| 黄色精品一二区| 欧美一级日韩一级| 五月天国产精品| 欧美日韩一区中文字幕| 伊人色综合久久天天人手人婷| 成人激情av网| 日本一区二区三区在线观看| 国产精品一区二区久激情瑜伽 | 精品福利av导航| 久久精品国产成人一区二区三区| 欧美日韩一区二区在线观看视频 | 一区二区三区在线视频观看| 国产69精品久久777的优势| 久久色中文字幕| 国产精品资源站在线| 国产日产欧产精品推荐色| 国产成人小视频| 国产精品视频你懂的| 91伊人久久大香线蕉| 亚洲精品欧美在线| 欧美天堂亚洲电影院在线播放| 亚洲一二三级电影| 欧美日韩一区不卡| 日本va欧美va精品发布| 欧美成人精品1314www| 国产一区二区精品久久99| 久久久久久久久岛国免费| 国产成人av电影在线| 中文字幕在线观看一区| 色香色香欲天天天影视综合网| 亚洲免费观看高清完整| 欧美主播一区二区三区美女| 偷拍一区二区三区| 日韩精品一区二区三区中文精品| 精品一二线国产| 国产欧美日韩在线看| 91在线精品一区二区| 亚洲一区二区黄色| 日韩午夜精品电影| 国产成人精品亚洲午夜麻豆| 亚洲久本草在线中文字幕| 欧美人xxxx| 国产乱对白刺激视频不卡| 国产精品成人一区二区艾草|