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

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

?? usersetting.cs

?? 圖書館信息管理系統(tǒng) Library Information Management System
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Library.Class;

namespace Library
{
	/// <summary>
	/// UserSetting 的摘要說明。
	/// </summary>
	public class UserSetting : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.CheckBox checkBox1;
		private System.Windows.Forms.CheckBox checkBox2;
		private System.Windows.Forms.CheckBox checkBox3;
		private System.Windows.Forms.CheckBox checkBox4;
		private System.Windows.Forms.CheckBox checkBox5;
		private System.Windows.Forms.CheckBox checkBox6;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Button button5;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		private SqlCommand cmd;
		private SqlDataReader dr;
		private Library.Class.HashMethod hm = new HashMethod();
		private bool isUpdate = false;

		public UserSetting()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			listView1.Columns.Add("編號",40,HorizontalAlignment.Left);
			listView1.Columns.Add("用戶名",50,HorizontalAlignment.Left);
			listView1.Columns.Add("系統(tǒng)設置",70,HorizontalAlignment.Left);
			listView1.Columns.Add("圖書設置",70,HorizontalAlignment.Left);
			listView1.Columns.Add("圖書管理",70,HorizontalAlignment.Left);
			listView1.Columns.Add("讀者管理",70,HorizontalAlignment.Left);
			listView1.Columns.Add("系統(tǒng)查詢",70,HorizontalAlignment.Left);
			listView1.Columns.Add("統(tǒng)計排名",70,HorizontalAlignment.Left);
		}

		/// <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.groupBox1 = new System.Windows.Forms.GroupBox();
			this.checkBox6 = new System.Windows.Forms.CheckBox();
			this.checkBox5 = new System.Windows.Forms.CheckBox();
			this.checkBox4 = new System.Windows.Forms.CheckBox();
			this.checkBox3 = new System.Windows.Forms.CheckBox();
			this.checkBox2 = new System.Windows.Forms.CheckBox();
			this.checkBox1 = new System.Windows.Forms.CheckBox();
			this.listView1 = new System.Windows.Forms.ListView();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.checkBox6);
			this.groupBox1.Controls.Add(this.checkBox5);
			this.groupBox1.Controls.Add(this.checkBox4);
			this.groupBox1.Controls.Add(this.checkBox3);
			this.groupBox1.Controls.Add(this.checkBox2);
			this.groupBox1.Controls.Add(this.checkBox1);
			this.groupBox1.Controls.Add(this.listView1);
			this.groupBox1.Controls.Add(this.textBox3);
			this.groupBox1.Controls.Add(this.textBox2);
			this.groupBox1.Controls.Add(this.textBox1);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.groupBox1.Location = new System.Drawing.Point(16, 16);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(512, 344);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "基本設置";
			// 
			// checkBox6
			// 
			this.checkBox6.Enabled = false;
			this.checkBox6.Location = new System.Drawing.Point(360, 128);
			this.checkBox6.Name = "checkBox6";
			this.checkBox6.Size = new System.Drawing.Size(80, 24);
			this.checkBox6.TabIndex = 6;
			this.checkBox6.Text = "統(tǒng)計排名";
			// 
			// checkBox5
			// 
			this.checkBox5.Enabled = false;
			this.checkBox5.Location = new System.Drawing.Point(232, 128);
			this.checkBox5.Name = "checkBox5";
			this.checkBox5.Size = new System.Drawing.Size(80, 24);
			this.checkBox5.TabIndex = 5;
			this.checkBox5.Text = "系統(tǒng)查詢";
			// 
			// checkBox4
			// 
			this.checkBox4.Enabled = false;
			this.checkBox4.Location = new System.Drawing.Point(104, 128);
			this.checkBox4.Name = "checkBox4";
			this.checkBox4.Size = new System.Drawing.Size(80, 24);
			this.checkBox4.TabIndex = 4;
			this.checkBox4.Text = "讀者管理";
			// 
			// checkBox3
			// 
			this.checkBox3.Enabled = false;
			this.checkBox3.Location = new System.Drawing.Point(360, 88);
			this.checkBox3.Name = "checkBox3";
			this.checkBox3.Size = new System.Drawing.Size(80, 24);
			this.checkBox3.TabIndex = 3;
			this.checkBox3.Text = "圖書管理";
			// 
			// checkBox2
			// 
			this.checkBox2.Enabled = false;
			this.checkBox2.Location = new System.Drawing.Point(232, 88);
			this.checkBox2.Name = "checkBox2";
			this.checkBox2.Size = new System.Drawing.Size(80, 24);
			this.checkBox2.TabIndex = 2;
			this.checkBox2.Text = "圖書設置";
			// 
			// checkBox1
			// 
			this.checkBox1.Enabled = false;
			this.checkBox1.Location = new System.Drawing.Point(104, 88);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.Size = new System.Drawing.Size(80, 24);
			this.checkBox1.TabIndex = 1;
			this.checkBox1.Text = "系統(tǒng)設置";
			// 
			// listView1
			// 
			this.listView1.FullRowSelect = true;
			this.listView1.GridLines = true;
			this.listView1.Location = new System.Drawing.Point(24, 200);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(464, 120);
			this.listView1.TabIndex = 9;
			this.listView1.View = System.Windows.Forms.View.Details;
			this.listView1.Click += new System.EventHandler(this.listView1_Click);
			// 
			// textBox3
			// 
			this.textBox3.Enabled = false;
			this.textBox3.Location = new System.Drawing.Point(360, 168);
			this.textBox3.Name = "textBox3";
			this.textBox3.PasswordChar = '*';
			this.textBox3.Size = new System.Drawing.Size(128, 21);
			this.textBox3.TabIndex = 8;
			this.textBox3.Text = "";
			// 
			// textBox2
			// 
			this.textBox2.Enabled = false;
			this.textBox2.Location = new System.Drawing.Point(104, 168);
			this.textBox2.Name = "textBox2";
			this.textBox2.PasswordChar = '*';
			this.textBox2.Size = new System.Drawing.Size(128, 21);
			this.textBox2.TabIndex = 7;
			this.textBox2.Text = "";
			// 
			// textBox1
			// 
			this.textBox1.Enabled = false;
			this.textBox1.Location = new System.Drawing.Point(104, 30);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(208, 21);
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "";
			// 
			// label5
			// 
			this.label5.AutoSize = true;
			this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label5.Location = new System.Drawing.Point(256, 170);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(91, 17);
			this.label5.TabIndex = 4;
			this.label5.Text = "管理員密碼確認";
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label4.Location = new System.Drawing.Point(24, 170);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(66, 17);
			this.label4.TabIndex = 3;
			this.label4.Text = "管理員密碼";
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label3.Location = new System.Drawing.Point(24, 64);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(66, 17);
			this.label3.TabIndex = 2;
			this.label3.Text = "管理員權限";
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label1.Location = new System.Drawing.Point(24, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(66, 17);
			this.label1.TabIndex = 0;
			this.label1.Text = "管理員名稱";
			// 
			// button1
			// 
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button1.Location = new System.Drawing.Point(136, 376);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(64, 23);
			this.button1.TabIndex = 10;
			this.button1.Text = "新增";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button2.Location = new System.Drawing.Point(216, 376);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(64, 23);
			this.button2.TabIndex = 11;
			this.button2.Text = "更改";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.button3.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button3.Location = new System.Drawing.Point(456, 376);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(64, 23);
			this.button3.TabIndex = 12;
			this.button3.Text = "關閉";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// button4
			// 
			this.button4.Enabled = false;
			this.button4.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button4.Location = new System.Drawing.Point(296, 376);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(64, 23);
			this.button4.TabIndex = 13;
			this.button4.Text = "保存";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// button5
			// 
			this.button5.Enabled = false;
			this.button5.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button5.Location = new System.Drawing.Point(376, 376);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(64, 23);
			this.button5.TabIndex = 14;
			this.button5.Text = "刪除";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// UserSetting
			// 
			this.AcceptButton = this.button4;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.CancelButton = this.button3;
			this.ClientSize = new System.Drawing.Size(546, 416);
			this.ControlBox = false;
			this.Controls.Add(this.button5);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Name = "UserSetting";
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "管理員設置";
			this.Load += new System.EventHandler(this.UserSetting_Load);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// 初始化界面
		/// </summary>
		private void initializeScreen()
		{
			button1.Enabled = true;
			button2.Enabled = false;
			button4.Enabled = false;
			button5.Enabled = false;
			checkBox1.Checked = false;
			checkBox2.Checked = false;
			checkBox3.Checked = false;
			checkBox4.Checked = false;
			checkBox5.Checked = false;
			checkBox6.Checked = false;
			textBox1.Text = "";
			textBox2.Text = "";
			textBox3.Text = "";
			listView1.Items.Clear();
			string str = "select * from 管理員";
			cmd.CommandText = str;
			ListViewItem item = null;
			try
			{
				dr = cmd.ExecuteReader();
				while(dr.Read())
				{
					item = new ListViewItem(dr.GetInt32(0).ToString());
					item.SubItems.Add(dr.GetString(1));
					for(int i = 2;i<=7;i++)
					{
						if(dr.GetInt32(i) == 1)
						{
							item.SubItems.Add("是");
						}
						else if(dr.GetInt32(i) == 0)
						{
							item.SubItems.Add("否");
						}
						//item.SubItems.Add();
					}
					listView1.Items.Add(item);
				}
				dr.Close();
			}
			catch(Exception ex)
			{
				if(dr != null) dr.Close();
				MessageBox.Show(ex.ToString());
			}
			finally
			{
				if(dr != null) dr.Close();
			}
		}
		/// <summary>
		/// 驗證用戶輸入是否合法,即是否包含不合法字符
		/// </summary>
		/// <param name="validchars"></param>
		/// <param name="userinput"></param>
		/// <returns></returns>
		private bool ValidateInput(String validchars, String userinput)
		{
			foreach(Char c in userinput)
			{
				if(validchars.IndexOf(c) < 0)
				{
					return false;
				}
			}
			return true;
		}
		/// <summary>
		/// 檢查字符串
		/// </summary>
		/// <param name="str_01"></param>
		/// <param name="str_02"></param>
		/// <returns></returns>
		private void CheckString(string str_01,string str_02)
		{
			//vChars提供字符驗證所需的字符
			String vChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz*&%$#!";
			if(ValidateInput(vChars, str_01))
			{
				if(ValidateInput(vChars,str_02)!=true)
				{
					MessageBox.Show("密碼非法!可能是含有非法字符串。","錯誤");
					textBox2.SelectAll();
					return;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天欧美精品| 91激情五月电影| 91免费在线播放| 欧美一级国产精品| 亚洲精品乱码久久久久久久久 | 亚洲成精国产精品女| 国产99久久久精品| 精品捆绑美女sm三区| 一区二区视频在线| 国产99久久久国产精品潘金网站| 欧美一区二区视频观看视频| 国产69精品久久99不卡| 欧美一区二区三区白人| 亚洲一区精品在线| 91污片在线观看| 欧美激情综合五月色丁香| 捆绑紧缚一区二区三区视频| 欧美精品丝袜久久久中文字幕| 伊人色综合久久天天| 99这里都是精品| 国产精品每日更新| youjizz国产精品| 亚洲欧洲日韩综合一区二区| 国产精品中文字幕日韩精品 | 久久国产精品99久久人人澡| 欧美区视频在线观看| 一区二区三区四区在线免费观看| 一本色道久久加勒比精品| 国产精品美女一区二区三区 | 蜜臀av一级做a爰片久久| 欧美乱妇一区二区三区不卡视频| 亚洲精品乱码久久久久久| 91色.com| 亚洲高清免费在线| 精品视频一区三区九区| 亚洲成a天堂v人片| 91麻豆精品国产91久久久| 久久精品国产精品亚洲精品| 精品国产免费一区二区三区香蕉| 美女看a上一区| 久久久久久麻豆| 粉嫩av亚洲一区二区图片| 亚洲国产高清aⅴ视频| 成人开心网精品视频| 亚洲视频小说图片| 欧美三级资源在线| 久久99国产乱子伦精品免费| 久久久综合九色合综国产精品| 懂色av一区二区夜夜嗨| 亚洲欧洲韩国日本视频| 欧美精品在线视频| 美女视频黄 久久| 欧美国产97人人爽人人喊| 99久久99久久久精品齐齐| 亚洲色图色小说| 欧美日韩aaaaaa| 国产美女精品在线| 成人免费一区二区三区在线观看| 日本精品视频一区二区| 久久精品国产秦先生| 国产精品热久久久久夜色精品三区| 色婷婷精品久久二区二区蜜臀av| 亚洲va欧美va人人爽| 欧美刺激脚交jootjob| 91亚洲资源网| 国产又粗又猛又爽又黄91精品| 国产精品久久久久久妇女6080| 欧美色电影在线| 国产精品影视天天线| 亚洲国产成人av网| 国产午夜精品一区二区| 欧美日韩一区二区三区四区| 国产米奇在线777精品观看| 一区二区三区四区视频精品免费| 日韩一区二区三区四区五区六区 | 3d动漫精品啪啪| 成人黄色免费短视频| 色综合久久久久| 国产成人精品免费| 免费xxxx性欧美18vr| 亚洲美女视频在线观看| 久久久蜜臀国产一区二区| 欧美日韩免费观看一区三区| 成人av电影在线| 激情欧美日韩一区二区| 亚洲午夜视频在线观看| 国产精品久久精品日日| 26uuu另类欧美亚洲曰本| 欧美喷水一区二区| 91麻豆精品秘密| 国产精品亚洲视频| 久久www免费人成看片高清| 亚洲国产wwwccc36天堂| 亚洲欧美综合色| 久久九九影视网| 26uuu久久天堂性欧美| 91精品久久久久久蜜臀| 欧美在线视频全部完| 99精品视频在线观看免费| 高清在线成人网| 国产精品一级黄| 国内久久婷婷综合| 久久精品国产999大香线蕉| 日本视频中文字幕一区二区三区| 亚洲乱码日产精品bd| 综合久久久久久| 中文字幕一区视频| 国产精品网站导航| 日本一区二区三区dvd视频在线| 日韩欧美黄色影院| 精品久久久久一区二区国产| 日韩一区二区三区免费观看| 欧美日韩亚洲综合一区二区三区| 91久久一区二区| 欧美日韩黄视频| 正在播放亚洲一区| 日韩欧美在线网站| 日韩女优电影在线观看| 久久夜色精品国产欧美乱极品| 日韩欧美国产成人一区二区| 欧美mv日韩mv| 国产午夜精品一区二区三区嫩草 | 99国产精品一区| 91亚洲午夜精品久久久久久| 99vv1com这只有精品| 色综合中文字幕国产 | 久久久久久一级片| 日本一区二区高清| 国产精品毛片久久久久久| 亚洲欧美在线高清| 亚洲成av人影院| 精品亚洲成av人在线观看| 国产成人在线电影| 91黄色小视频| 欧美一区二区在线免费观看| 日韩视频一区二区三区在线播放| 日韩亚洲欧美成人一区| 国产肉丝袜一区二区| 一区二区三区 在线观看视频| 亚洲午夜免费福利视频| 久久国产精品99精品国产| 国产成人在线观看免费网站| 日本黄色一区二区| 精品蜜桃在线看| 亚洲欧美视频一区| 日本中文字幕一区二区有限公司| 国内成+人亚洲+欧美+综合在线| 国产69精品久久99不卡| 欧美日韩日日摸| 久久久精品人体av艺术| 亚洲精品菠萝久久久久久久| 蜜桃一区二区三区四区| 99久久精品国产网站| 日韩午夜三级在线| 亚洲欧美另类图片小说| 激情av综合网| 在线视频欧美精品| 久久久www免费人成精品| 亚洲国产综合91精品麻豆| 国产福利一区二区三区视频| 日本韩国精品一区二区在线观看| 精品国内二区三区| 亚洲图片自拍偷拍| 国产成人综合网| 欧美成人r级一区二区三区| 亚洲男女毛片无遮挡| 国产成人免费视| 日韩欧美一二三四区| 亚洲欧美视频在线观看| 国产成人av一区二区| 日韩一区二区三区免费看 | 色婷婷精品久久二区二区蜜臀av| 欧美v亚洲v综合ⅴ国产v| 一区二区在线免费| 99久久久精品| 日本一区二区成人在线| 激情丁香综合五月| 欧美一区二区三区白人| 亚洲成在人线在线播放| 一本久久a久久免费精品不卡| 欧美—级在线免费片| 狠狠久久亚洲欧美| 3atv一区二区三区| 亚洲国产日韩综合久久精品| 成人av电影在线观看| 国产精品天干天干在观线| 麻豆精品视频在线观看免费| 精品视频在线免费观看| 亚洲黄色小视频| 色综合欧美在线| 亚洲欧美另类图片小说| 色狠狠av一区二区三区| 亚洲免费高清视频在线| 日本道色综合久久| 亚洲国产美国国产综合一区二区| 99久久精品情趣| 亚洲欧美日韩国产另类专区| 91美女在线观看| 一区二区三区在线观看动漫| 欧美中文字幕不卡|