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

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

?? librarymanager.cs

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

namespace Library
{
	/// <summary>
	/// Global 的摘要說明。
	/// </summary>
	public class Global : System.Windows.Forms.Form
	{
		#region 控件變量
		private System.Windows.Forms.MainMenu mnuMain;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem mnuBuyBooks;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem mnuAddNewCard;
		private System.Windows.Forms.MenuItem menuItem19;
		private System.Windows.Forms.MenuItem menuItem20;
		private System.Windows.Forms.MenuItem mnuSystem;
		private System.Windows.Forms.MenuItem mnuExitSystem;
		private System.Windows.Forms.MenuItem mnuHelp;
		private System.Windows.Forms.MenuItem mnuWindows;
		private System.Windows.Forms.ImageList iltToolBar;
		private System.Windows.Forms.ToolBar tbMain;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton toolBarButton6;
		private System.Windows.Forms.MenuItem mnuAboutLibraryManageSystem;
		private System.Windows.Forms.MenuItem mnuReturnBooks;
		private System.Windows.Forms.MenuItem mnuCancelReader;
		private System.Windows.Forms.MenuItem mnuProvisionalLeave;
		private System.Windows.Forms.MenuItem mnuStatistics;
		private System.Windows.Forms.MenuItem mnuBooksStatistics;
		private System.Windows.Forms.MenuItem mnuReaderStatistics;
		private System.Windows.Forms.MenuItem mnuRegisterLoss;
		private System.Windows.Forms.MenuItem mnuLiftLossRegister;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem mnuBooksSetting;
		private System.Windows.Forms.MenuItem mnuBooksManage;
		private System.Windows.Forms.MenuItem mnuReaderManage;
		private System.Windows.Forms.MenuItem mnuSystemSearch;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem menuItem18;
		private System.Windows.Forms.MenuItem menuItem21;
		private System.Windows.Forms.MenuItem menuItem22;
		private System.Windows.Forms.MenuItem menuItem23;
		private System.Windows.Forms.MenuItem menuItem25;
		private System.Windows.Forms.MenuItem menuItem27;
		private System.Windows.Forms.MenuItem menuItem32;
		private System.Windows.Forms.MenuItem menuItem33;
		private System.Windows.Forms.MenuItem menuItem34;
		private System.Windows.Forms.MenuItem menuItem35;
		private System.Windows.Forms.MenuItem menuItem36;
		private System.Windows.Forms.MenuItem menuItem37;
		private System.Windows.Forms.MenuItem menuItem38;
		private System.Windows.Forms.MenuItem menuItem39;
		private System.Windows.Forms.MenuItem menuItem40;
		private System.Windows.Forms.MenuItem menuItem41;
		private System.Windows.Forms.MenuItem menuItem42;
		private System.Windows.Forms.MenuItem menuItem43;
		private System.Windows.Forms.MenuItem menuItem44;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ToolBarButton toolBarButton5;
		private System.Windows.Forms.ToolBarButton toolBarButton7;
		private System.Windows.Forms.MenuItem menuItem48;
		private System.Drawing.Printing.PrintDocument prtDocument;
		private System.Windows.Forms.PageSetupDialog dlgPageSetup;
		private System.Windows.Forms.PrintDialog dlgPrint;
		private System.Windows.Forms.MenuItem mnuPressSetting;
		private System.Windows.Forms.MenuItem mnuUserSetting;
		private System.Windows.Forms.MenuItem mnuLibraryInfo;
		private System.Windows.Forms.MenuItem mnuBorrowBooks;
		private System.Windows.Forms.MenuItem mnuBooksInfo;
		private System.ComponentModel.IContainer components;
		#endregion

		#region 靜態(tài)變量
		/// <summary>
		/// 狀態(tài)欄sbrGlobal
		/// </summary>
		public static System.Windows.Forms.StatusBar sbrGlobal;
		/// <summary>
		/// 狀態(tài)欄Panel sbpGlobal
		/// </summary>
		public static System.Windows.Forms.StatusBarPanel sbpGlobal;
		/// <summary>
		/// 狀態(tài)欄Panel sbpOther
		/// </summary>
		public static System.Windows.Forms.StatusBarPanel sbpOther;
		/// <summary>
		/// SqlConnection
		/// </summary>
		public static SqlConnection conn;
		/// <summary>
		/// SqlConnection.ConnectionString
		/// </summary>
		public static string ConnectionString = @"data source = localhost;
												initial catalog = Library;
												integrated security = SSPI;
												persist security info = False;
												packet size= 4096";
		/// <summary>
		/// 激活狀態(tài)的子窗體
		/// </summary>
		public static string ActiveChild = "null";
		/// <summary>
		/// BooksInfo窗口打開標(biāo)志
		/// </summary>
		public static bool BooksInfo = false;
		/// <summary>
		/// BorrowBooks窗口打開標(biāo)志
		/// </summary>
		public static bool BorrowBooks = false;
		/// <summary>
		/// 續(xù)借圖書窗口打開標(biāo)志
		/// </summary>
		public static bool ReborrowBooks = false;
		/// <summary>
		/// 歸還圖書窗口打開標(biāo)志
		/// </summary>
		public static bool ReturnBooks = false;
		/// <summary>
		/// 圖書借閱排名窗口打開標(biāo)志
		/// </summary>
		public static bool BooksStatistics = false;
		/// <summary>
		/// 讀者借閱排名窗口打開標(biāo)志
		/// </summary>
		public static bool ReaderStatistics = false;
		/// <summary>
		/// 登陸的用戶名
		/// </summary>
		public static string UserName;
		/// <summary>
		/// 登陸窗體
		/// </summary>
		public static Library.LoginSystem m_LoginSystem ;
		/// <summary>
		/// 權(quán)限設(shè)置_ 系統(tǒng)設(shè)置
		/// </summary>
		public static bool b_SystemSetting = false;
		/// <summary>
		/// 權(quán)限設(shè)置_圖書設(shè)置
		/// </summary>
		public static bool b_BooksSetting = false;
		/// <summary>
		/// 權(quán)限設(shè)置_圖書管理
		/// </summary>
		public static bool b_BooksManage = false;
		/// <summary>
		/// 權(quán)限設(shè)置_讀者管理
		/// </summary>
		public static bool b_ReaderManage = false;
		/// <summary>
		/// 權(quán)限設(shè)置_系統(tǒng)查詢
		/// </summary>
		public static bool b_SystemSearch = false;
		/// <summary>
		/// 權(quán)限設(shè)置_統(tǒng)計排名
		/// </summary>
		public static bool b_Statistics = false;
		#endregion

		#region 其他變量
		/// <summary>
		/// MDI窗體中的客戶區(qū),獲取此客戶區(qū)可以實現(xiàn)MDI窗體中顯示圖形等
		/// </summary>
		private System.Windows.Forms.MdiClient mdiClient;
		private System.Windows.Forms.MenuItem mnuReaderManager;
		private System.Windows.Forms.MenuItem menuItem2;
		/// <summary>
		/// 配置
		/// </summary>
		public static DBConfig db = new DBConfig();
		#endregion

		#region 程序初始化與關(guān)閉時銷毀
		/// <summary>
		/// 生成字符串
		/// </summary>
		/// <returns></returns>
		public void createConnectionString()
		{
			if(db.Exists())
			{
				db = DBConfig.Load();
				ConnectionString = "server=" + db.DbSource + ";database=" + db.DbName + ";uid="+db.UID + ";pwd="+db.PWD;
				//數(shù)據(jù)庫聯(lián)接字符串
				conn.ConnectionString = ConnectionString;
				try
				{
					conn.Open();
				}
				catch(Exception ex)
				{
					conn.Close();
					MessageBox.Show("數(shù)據(jù)庫連接錯誤!系統(tǒng)將轉(zhuǎn)到數(shù)據(jù)庫配置向?qū)?\n錯誤信息:\n\t" + ex.ToString(),"錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
					Library.DataBaseSetting dbs = new DataBaseSetting();
					dbs.ShowDialog();
				}
			}
			else
			{
				Library.DataBaseSetting dbs = new DataBaseSetting();
				dbs.ShowDialog();
			}
		}
		public Global()
		{
			//Library.Class.HashMethod hm = new HashMethod();
			//Console.WriteLine(hm.Encrypto("admin"));
			Library.SplashForm sf = new SplashForm();
			sf.Show();
			//數(shù)據(jù)庫聯(lián)接
			conn = new SqlConnection();
			createConnectionString();
			sf.Close();
			//
			//登陸
			//
			m_LoginSystem = new LoginSystem(true);
			m_LoginSystem.ShowDialog();
			//
			//
			// Windows 窗體設(shè)計器支持所必需的
			//
			InitializeComponent();

			//狀態(tài)欄
			sbrGlobal = new System.Windows.Forms.StatusBar();
			sbpGlobal = new System.Windows.Forms.StatusBarPanel();
			sbpOther = new StatusBarPanel();
			((System.ComponentModel.ISupportInitialize)(sbpGlobal)).BeginInit();
			// 
			// sbrGlobal
			// 
			sbrGlobal.Location = new System.Drawing.Point(0, 548);
			sbrGlobal.Name = "sbrGlobal";
			sbrGlobal.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {sbpGlobal,sbpOther});
			sbrGlobal.ShowPanels = true;
			sbrGlobal.Size = new System.Drawing.Size(794, 20);
			sbrGlobal.SizingGrip = false;
			sbrGlobal.TabIndex = 0;
			//
			//sbpOther
			//
			sbpOther.Width = 200;
			sbpOther.Text = "當(dāng)前登陸用戶:" + UserName;
			// 
			// sbpGlobal
			// 
			sbpGlobal.Text = "就緒";
			sbpGlobal.Width = 594;
			this.Controls.Add(sbrGlobal);
			((System.ComponentModel.ISupportInitialize)(sbpGlobal)).EndInit();
			//
			//準(zhǔn)備獲取MdiClient
			//
			int iCnt=this.Controls.Count;
			for(int i=0;i<this.Controls.Count;i++)
			{
				if(this.Controls[i].GetType().ToString()=="System.Windows.Forms.MdiClient")
				{
					this.mdiClient=(System.Windows.Forms.MdiClient)this.Controls[i];
					break;
				}
			}
			string fbImage = Application.StartupPath + "\\Images\\backGround.jpg";
			if(File.Exists(fbImage))
			{
				Bitmap bm = new Bitmap(fbImage);
				this.mdiClient.BackgroundImage = bm;
			}
		}

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


		/// <summary>
		/// 應(yīng)用程序的主入口點。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			//采用Windows XP界面
			Application.DoEvents();
			Application.EnableVisualStyles();
			Application.DoEvents();
			//系統(tǒng)運行
			Application.Run(new Global());
		}
		#endregion

		#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(Global));
			this.mnuMain = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.mnuProvisionalLeave = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.mnuExitSystem = new System.Windows.Forms.MenuItem();
			this.mnuSystem = new System.Windows.Forms.MenuItem();
			this.mnuUserSetting = new System.Windows.Forms.MenuItem();
			this.mnuLibraryInfo = new System.Windows.Forms.MenuItem();
			this.mnuBooksSetting = new System.Windows.Forms.MenuItem();
			this.mnuPressSetting = new System.Windows.Forms.MenuItem();
			this.menuItem48 = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.mnuBooksManage = new System.Windows.Forms.MenuItem();
			this.mnuBuyBooks = new System.Windows.Forms.MenuItem();
			this.mnuBooksInfo = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.mnuBorrowBooks = new System.Windows.Forms.MenuItem();
			this.menuItem10 = new System.Windows.Forms.MenuItem();
			this.menuItem11 = new System.Windows.Forms.MenuItem();
			this.mnuReturnBooks = new System.Windows.Forms.MenuItem();
			this.menuItem18 = new System.Windows.Forms.MenuItem();
			this.menuItem21 = new System.Windows.Forms.MenuItem();
			this.menuItem22 = new System.Windows.Forms.MenuItem();
			this.mnuReaderManage = new System.Windows.Forms.MenuItem();
			this.menuItem23 = new System.Windows.Forms.MenuItem();
			this.menuItem25 = new System.Windows.Forms.MenuItem();
			this.mnuAddNewCard = new System.Windows.Forms.MenuItem();
			this.mnuCancelReader = new System.Windows.Forms.MenuItem();
			this.mnuRegisterLoss = new System.Windows.Forms.MenuItem();
			this.mnuLiftLossRegister = new System.Windows.Forms.MenuItem();
			this.menuItem27 = new System.Windows.Forms.MenuItem();
			this.mnuReaderManager = new System.Windows.Forms.MenuItem();
			this.mnuSystemSearch = new System.Windows.Forms.MenuItem();
			this.menuItem32 = new System.Windows.Forms.MenuItem();
			this.menuItem33 = new System.Windows.Forms.MenuItem();
			this.menuItem34 = new System.Windows.Forms.MenuItem();
			this.menuItem35 = new System.Windows.Forms.MenuItem();
			this.menuItem36 = new System.Windows.Forms.MenuItem();
			this.menuItem37 = new System.Windows.Forms.MenuItem();
			this.menuItem38 = new System.Windows.Forms.MenuItem();
			this.menuItem39 = new System.Windows.Forms.MenuItem();
			this.menuItem40 = new System.Windows.Forms.MenuItem();
			this.menuItem41 = new System.Windows.Forms.MenuItem();
			this.menuItem42 = new System.Windows.Forms.MenuItem();
			this.menuItem43 = new System.Windows.Forms.MenuItem();
			this.menuItem44 = new System.Windows.Forms.MenuItem();
			this.mnuStatistics = new System.Windows.Forms.MenuItem();
			this.mnuBooksStatistics = new System.Windows.Forms.MenuItem();
			this.mnuReaderStatistics = new System.Windows.Forms.MenuItem();

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人123区| 亚洲观看高清完整版在线观看| 97国产精品videossex| 风间由美性色一区二区三区| 国产精品一区二区免费不卡| 成人午夜精品在线| 亚洲激情图片小说视频| 亚洲欧美日韩一区| 久久er精品视频| 美女www一区二区| 国产激情一区二区三区四区 | 日韩久久久精品| 在线电影一区二区三区| 欧美tickle裸体挠脚心vk| 欧美日韩黄色影视| 欧美日韩国产精品成人| 538prom精品视频线放| 欧美日韩免费高清一区色橹橹 | 国产精品色哟哟| 亚洲精品免费在线观看| 亚洲va欧美va人人爽| 久久99久久99小草精品免视看| 高清shemale亚洲人妖| 在线观看国产日韩| 精品国产伦一区二区三区观看体验| 51午夜精品国产| 国产精品久久久久永久免费观看| 亚洲精品一二三四区| 久久精品72免费观看| 不卡av在线网| 久久久久久夜精品精品免费| 亚洲人成人一区二区在线观看 | 欧美精品日日鲁夜夜添| 国产日韩影视精品| 亚洲国产中文字幕在线视频综合| 日本欧美加勒比视频| 91视频免费播放| 欧美成人在线直播| 亚洲欧洲三级电影| 精品一区二区三区日韩| 欧美日韩一二三| 国产精品每日更新在线播放网址 | 在线看国产一区二区| 2020国产精品| 亚洲超碰97人人做人人爱| 成人丝袜18视频在线观看| 欧美精品一二三四| 亚洲日本一区二区| 韩国精品一区二区| 色综合天天天天做夜夜夜夜做| 久久久一区二区| 性感美女极品91精品| 99精品在线观看视频| 久久女同精品一区二区| 另类中文字幕网| 99精品欧美一区| 亚洲精品大片www| 成人av综合一区| 久久综合九色综合97婷婷| 免费在线一区观看| 欧美久久久一区| 日韩高清不卡一区二区| 欧美日韩亚洲另类| 亚洲综合激情另类小说区| 99综合影院在线| 日韩中文字幕亚洲一区二区va在线| 欧美一区二区在线播放| 一区二区三区在线播放| 丁香婷婷综合五月| 亚洲精品在线观看网站| 欧美a级一区二区| 色综合天天综合网天天狠天天 | 亚洲国产视频一区| 成人免费毛片aaaaa**| 精品国精品国产尤物美女| 日韩精品电影一区亚洲| 欧美性感一类影片在线播放| 亚洲精品中文字幕乱码三区| a美女胸又www黄视频久久| 日本一区二区三区免费乱视频| 狠狠v欧美v日韩v亚洲ⅴ| 欧美一区二区三区色| 亚洲成人1区2区| 欧美日韩一区三区四区| 一区二区三区中文在线| 91色在线porny| 亚洲色欲色欲www| 欧美日韩在线亚洲一区蜜芽| 亚洲一区二区中文在线| 色视频欧美一区二区三区| 亚洲欧美日韩系列| 国产成人综合亚洲91猫咪| 欧美人与性动xxxx| 天天综合天天综合色| 日韩女同互慰一区二区| 国产精品91一区二区| 国产精品黄色在线观看| 色播五月激情综合网| 视频在线在亚洲| 欧美精品一区二区在线观看| av在线一区二区三区| 亚洲午夜三级在线| 久久这里只有精品首页| www.亚洲精品| 亚洲超丰满肉感bbw| 久久日一线二线三线suv| gogogo免费视频观看亚洲一| 夜夜嗨av一区二区三区中文字幕 | 婷婷丁香久久五月婷婷| 精品国产三级a在线观看| 成人激情午夜影院| 亚洲国产成人91porn| 精品国产一区二区三区四区四 | 亚洲激情校园春色| 欧美成人性战久久| 91亚洲精华国产精华精华液| 亚洲一区二区三区国产| 亚洲天堂免费在线观看视频| 亚洲自拍另类综合| 日韩电影免费一区| 日本在线播放一区二区三区| 免费在线观看日韩欧美| 免费观看91视频大全| 精品一区二区免费在线观看| 日韩精品一卡二卡三卡四卡无卡| 日本在线不卡视频| 国产**成人网毛片九色| 久久影院午夜论| 久久99精品久久久久| 国产精品入口麻豆九色| 欧美私模裸体表演在线观看| 韩国精品久久久| 亚洲综合色自拍一区| 国产精品视频免费看| 色悠久久久久综合欧美99| 热久久久久久久| 色吧成人激情小说| 中文字幕欧美一| 精品福利一区二区三区| 在线观看亚洲精品视频| 成人天堂资源www在线| 久久99久久精品| 亚洲444eee在线观看| 国产精品传媒在线| 亚洲精品在线观| 在线不卡的av| 色域天天综合网| 福利视频网站一区二区三区| 男女激情视频一区| 亚洲电影视频在线| 亚洲日本青草视频在线怡红院| 久久久美女艺术照精彩视频福利播放| 欧美精品一卡两卡| 欧美综合天天夜夜久久| 成人18视频在线播放| 国产乱子轮精品视频| 国产女同性恋一区二区| 久久国产精品色婷婷| 亚洲成人动漫av| 伊人婷婷欧美激情| 中文字幕永久在线不卡| 久久免费精品国产久精品久久久久| 欧美吻胸吃奶大尺度电影| 91一区在线观看| 99热精品国产| 97超碰欧美中文字幕| 国产成人在线看| 国内成人免费视频| 麻豆91在线播放免费| 日韩福利电影在线观看| 亚洲成在线观看| 亚洲大尺度视频在线观看| 亚洲一区二区综合| 亚洲小说欧美激情另类| 一区二区三区精品久久久| 中文字幕一区av| 亚洲欧洲日韩女同| 亚洲欧美综合在线精品| 中文字幕视频一区| 亚洲三级在线观看| 亚洲激情成人在线| 一区二区三区不卡视频| 亚洲一区二区三区四区在线免费观看 | 欧美疯狂做受xxxx富婆| 青娱乐精品视频在线| 中文字幕免费一区| 亚洲人成电影网站色mp4| 欧美天天综合网| 麻豆一区二区三| 国产精品的网站| 91精品啪在线观看国产60岁| 久久精品国产99| 成人免费小视频| 欧美老肥妇做.爰bbww视频| 日本视频一区二区三区| 久久综合丝袜日本网| 91亚洲精华国产精华精华液| 国产一区视频在线看| 国产精品88av| 亚洲成av人片|