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

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

?? librarymanager.cs

?? 圖書館信息管理系統 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 靜態變量
		/// <summary>
		/// 狀態欄sbrGlobal
		/// </summary>
		public static System.Windows.Forms.StatusBar sbrGlobal;
		/// <summary>
		/// 狀態欄Panel sbpGlobal
		/// </summary>
		public static System.Windows.Forms.StatusBarPanel sbpGlobal;
		/// <summary>
		/// 狀態欄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>
		/// 激活狀態的子窗體
		/// </summary>
		public static string ActiveChild = "null";
		/// <summary>
		/// BooksInfo窗口打開標志
		/// </summary>
		public static bool BooksInfo = false;
		/// <summary>
		/// BorrowBooks窗口打開標志
		/// </summary>
		public static bool BorrowBooks = false;
		/// <summary>
		/// 續借圖書窗口打開標志
		/// </summary>
		public static bool ReborrowBooks = false;
		/// <summary>
		/// 歸還圖書窗口打開標志
		/// </summary>
		public static bool ReturnBooks = false;
		/// <summary>
		/// 圖書借閱排名窗口打開標志
		/// </summary>
		public static bool BooksStatistics = false;
		/// <summary>
		/// 讀者借閱排名窗口打開標志
		/// </summary>
		public static bool ReaderStatistics = false;
		/// <summary>
		/// 登陸的用戶名
		/// </summary>
		public static string UserName;
		/// <summary>
		/// 登陸窗體
		/// </summary>
		public static Library.LoginSystem m_LoginSystem ;
		/// <summary>
		/// 權限設置_ 系統設置
		/// </summary>
		public static bool b_SystemSetting = false;
		/// <summary>
		/// 權限設置_圖書設置
		/// </summary>
		public static bool b_BooksSetting = false;
		/// <summary>
		/// 權限設置_圖書管理
		/// </summary>
		public static bool b_BooksManage = false;
		/// <summary>
		/// 權限設置_讀者管理
		/// </summary>
		public static bool b_ReaderManage = false;
		/// <summary>
		/// 權限設置_系統查詢
		/// </summary>
		public static bool b_SystemSearch = false;
		/// <summary>
		/// 權限設置_統計排名
		/// </summary>
		public static bool b_Statistics = false;
		#endregion

		#region 其他變量
		/// <summary>
		/// MDI窗體中的客戶區,獲取此客戶區可以實現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 程序初始化與關閉時銷毀
		/// <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;
				//數據庫聯接字符串
				conn.ConnectionString = ConnectionString;
				try
				{
					conn.Open();
				}
				catch(Exception ex)
				{
					conn.Close();
					MessageBox.Show("數據庫連接錯誤!系統將轉到數據庫配置向導!\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();
			//數據庫聯接
			conn = new SqlConnection();
			createConnectionString();
			sf.Close();
			//
			//登陸
			//
			m_LoginSystem = new LoginSystem(true);
			m_LoginSystem.ShowDialog();
			//
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//狀態欄
			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 = "當前登陸用戶:" + UserName;
			// 
			// sbpGlobal
			// 
			sbpGlobal.Text = "就緒";
			sbpGlobal.Width = 594;
			this.Controls.Add(sbrGlobal);
			((System.ComponentModel.ISupportInitialize)(sbpGlobal)).EndInit();
			//
			//準備獲取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>
		/// 應用程序的主入口點。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			//采用Windows XP界面
			Application.DoEvents();
			Application.EnableVisualStyles();
			Application.DoEvents();
			//系統運行
			Application.Run(new Global());
		}
		#endregion

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </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();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久毛片av大全日韩| 成人欧美一区二区三区视频网页| 久久欧美中文字幕| 亚洲午夜精品久久久久久久久| 国产麻豆日韩欧美久久| 欧美精品v日韩精品v韩国精品v| 国产亚洲欧洲997久久综合| 天堂成人国产精品一区| 99在线精品观看| 久久综合九色综合97_久久久| 图片区小说区区亚洲影院| 99国产精品国产精品毛片| 国产亚洲成av人在线观看导航| 日日噜噜夜夜狠狠视频欧美人 | 国产精品视频第一区| 免费在线观看一区| 91精品国产一区二区三区蜜臀| 一区二区三区免费观看| 波多野结衣的一区二区三区| 国产清纯在线一区二区www| 久久国产精品99久久人人澡| 在线成人高清不卡| 日韩电影在线观看一区| 91精品免费观看| 亚洲国产精品视频| 欧美日韩国产a| 亚洲电影在线免费观看| 欧美亚男人的天堂| 亚洲精品成人a在线观看| 91丨九色丨蝌蚪富婆spa| 国产精品不卡视频| 99riav久久精品riav| 中文字幕一区二区三中文字幕 | 精品一区二区三区在线播放 | 蜜臀av一区二区三区| 91精品国产入口在线| 美日韩一级片在线观看| 日韩欧美国产综合| 国产精品综合视频| 亚洲欧洲一区二区三区| 在线欧美小视频| 亚洲成人免费在线| 日韩欧美亚洲国产另类| 国产精品自在欧美一区| 国产精品久久久久aaaa| 99精品视频免费在线观看| 亚洲一区欧美一区| 欧美高清hd18日本| 紧缚奴在线一区二区三区| 国产精品网站导航| 在线国产亚洲欧美| 久久99精品久久久久久动态图| 日本一区二区三区久久久久久久久不 | 九九精品一区二区| 欧美高清在线精品一区| 色综合天天综合| 男人的天堂亚洲一区| 国产日韩三级在线| 欧美亚日韩国产aⅴ精品中极品| 日本欧美韩国一区三区| 中文子幕无线码一区tr| 欧美亚洲国产一卡| 国产一区二区福利视频| 一区二区三区四区五区视频在线观看| 欧美猛男超大videosgay| 国产高清久久久| 亚洲国产精品久久久男人的天堂| 日韩免费观看高清完整版在线观看| 国产成人精品免费视频网站| 亚洲观看高清完整版在线观看| 精品成人a区在线观看| gogogo免费视频观看亚洲一| 日韩电影在线免费看| 亚洲欧美在线视频观看| 日韩午夜激情av| 91美女片黄在线观看91美女| 精品一区二区免费视频| 一区二区三区在线免费播放 | 粉嫩av一区二区三区粉嫩| 亚洲国产视频一区| 中文字幕久久午夜不卡| 日韩一级在线观看| 欧美私人免费视频| 国产999精品久久久久久绿帽| 视频一区二区中文字幕| 国产精品久久久久国产精品日日| 日韩欧美中文字幕一区| 91国偷自产一区二区开放时间| 国产酒店精品激情| 麻豆freexxxx性91精品| 午夜精品成人在线| 亚洲精品视频在线| 国产精品女同互慰在线看 | 欧美色图第一页| 99久久国产综合精品女不卡| 国产一区二区免费在线| 麻豆专区一区二区三区四区五区| 亚洲成人资源网| 亚洲靠逼com| 日韩理论片在线| 国产精品久久久久久一区二区三区| 久久综合狠狠综合| 精品少妇一区二区三区| 欧美成人猛片aaaaaaa| 欧美一区二区性放荡片| 欧美丰满嫩嫩电影| 欧美一区二区三区色| 欧美另类高清zo欧美| 欧美日韩一级黄| 欧美色图12p| 欧美精品xxxxbbbb| 91精品国产综合久久精品麻豆| 欧美性生活大片视频| 欧美午夜电影网| 欧美日韩免费不卡视频一区二区三区| 日本韩国精品在线| 欧美午夜精品一区二区三区| 欧美日韩一区三区四区| 在线播放/欧美激情| 欧美一区二区免费| 精品电影一区二区| 欧美国产日韩一二三区| 成人免费在线观看入口| 一区二区日韩电影| 亚洲成人自拍偷拍| 久久精品国产亚洲一区二区三区 | 日本网站在线观看一区二区三区| 日本午夜精品一区二区三区电影 | 精品久久久影院| 中文字幕巨乱亚洲| 亚洲女与黑人做爰| 婷婷久久综合九色国产成人| 久久精品国产99国产| 丁香另类激情小说| 欧美性受极品xxxx喷水| 5月丁香婷婷综合| 337p粉嫩大胆色噜噜噜噜亚洲| 国产精品女主播av| 亚洲成人手机在线| 国产真实乱子伦精品视频| 99精品热视频| 这里只有精品99re| 中文无字幕一区二区三区 | 欧美在线一区二区三区| 欧美精品久久一区二区三区| 久久亚洲影视婷婷| 一区二区在线观看av| 日本伊人精品一区二区三区观看方式| 国产精品一品二品| 欧美亚洲另类激情小说| 精品区一区二区| 亚洲精品国产一区二区精华液 | 亚洲一区二区三区影院| 国产美女在线观看一区| 在线观看日韩电影| 国产农村妇女毛片精品久久麻豆 | 亚洲欧洲日韩女同| 美女网站一区二区| 色欧美88888久久久久久影院| 精品免费日韩av| 一个色在线综合| 成人精品视频一区| 日韩精品综合一本久道在线视频| 自拍av一区二区三区| 国产一区二区三区最好精华液| 欧美日韩一区在线| 日韩理论电影院| 国产91在线观看丝袜| 91精品国产91久久综合桃花| 亚洲免费观看高清在线观看| 国产一区不卡视频| 日韩一区二区在线观看视频 | 中文字幕在线免费不卡| 久久精品国产秦先生| 欧美在线观看禁18| 国产精品电影一区二区| 国产一区二区三区精品视频| 在线不卡的av| 亚洲福利视频一区| 99re这里只有精品6| 国产日韩欧美不卡在线| 国产主播一区二区三区| 欧美成人官网二区| 麻豆一区二区三| 欧美一区午夜视频在线观看 | 日韩视频免费直播| 午夜精品久久久久久不卡8050| 色久综合一二码| 亚洲天堂久久久久久久| 成人涩涩免费视频| 欧美国产乱子伦| 国产91精品久久久久久久网曝门| 精品久久久网站| 国产在线精品一区二区夜色| 精品美女在线观看| 精品一区二区久久| 国产色综合久久| 国产福利91精品一区二区三区| 国产无遮挡一区二区三区毛片日本| 精品一区免费av|