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

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

?? 主窗口.cs

?? 圖書管理系統(tǒng),.net2003+sql2000,分為三個模塊,用戶端,操作員端,系統(tǒng)管理員端.基本上是用自定義控件dll來完成,內(nèi)含完整sql語句,包括存儲過程.
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace 操作員端
{
	/// <summary>
	/// 主窗口 的摘要說明。
	/// </summary>
	public class 主窗口 : System.Windows.Forms.Form
	{
		/// <summary>
		/// 必需的設(shè)計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private 讀者信息dll.UserControl1 userControl11;
		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.MenuItem menuItem5;
		public Form1 log;
		public string bookid;
		public string singlelibrary;

		public 主窗口()
		{
			//
			// 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.userControl11 = new 讀者信息dll.UserControl1("operator");
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.SuspendLayout();
			// 
			// userControl11
			// 
			this.userControl11.Location = new System.Drawing.Point(0, 16);
			this.userControl11.Name = "userControl11";
			this.userControl11.Size = new System.Drawing.Size(736, 568);
			this.userControl11.TabIndex = 0;
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem1,
																					  this.menuItem4});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem2,
																					  this.menuItem5,
																					  this.menuItem3});
			this.menuItem1.Text = "操作";
			this.menuItem1.Popup += new System.EventHandler(this.menuItem1_Popup);
			// 
			// menuItem2
			// 
			this.menuItem2.Enabled = false;
			this.menuItem2.Index = 0;
			this.menuItem2.Text = "借書";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// menuItem5
			// 
			this.menuItem5.Enabled = false;
			this.menuItem5.Index = 1;
			this.menuItem5.Text = "續(xù)借";
			this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 2;
			this.menuItem3.Text = "還書";
			this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 1;
			this.menuItem4.Text = "超期處理";
			// 
			// 主窗口
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(744, 573);
			this.Controls.Add(this.userControl11);
			this.Menu = this.mainMenu1;
			this.Name = "主窗口";
			this.Text = "主窗口";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.主窗口_Closing);
			this.Closed += new System.EventHandler(this.主窗口_Closed);
			this.ResumeLayout(false);

		}
		#endregion

		private void 主窗口_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			this.Close();
		}

		private void 主窗口_Closed(object sender, System.EventArgs e)
		{
			this.log.Close();
		}

		string addr;
		int days=0;
		private void menuItem2_Click(object sender, System.EventArgs e)//借書
		{
			try
			{
				書條碼號 p=new 書條碼號();
				p.ShowDialog();
				if(p.bookid=="null")return;
					bookid=p.bookid;//用來查看書的借閱情況,
				p.Close();
				公共數(shù)據(jù)dll.Store.cn.Open();
				公共數(shù)據(jù)dll.Store.sqlStr="exec lendbook '"+公共數(shù)據(jù)dll.Store.str_temp+"','"+bookid+"'";
				公共數(shù)據(jù)dll.Store.cmd=new SqlCommand(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
				object n=公共數(shù)據(jù)dll.Store.cmd.ExecuteNonQuery();
					if(int.Parse(n.ToString())!=-1)
					{
						MessageBox.Show("借書成功!");
						公共數(shù)據(jù)dll.Store.ds.Tables["currentrecord"].Clear();
						公共數(shù)據(jù)dll.Store.sqlStr="select record.條碼號,題名,館藏地,借閱日期,應(yīng)歸還日期,操作='續(xù)借該書' from record,bookinfoview where record.條碼號=bookinfoview.條碼號 and 證件號='"+公共數(shù)據(jù)dll.Store.str_temp+"' and record.狀態(tài)='未還' or record.狀態(tài)='超期'";
						公共數(shù)據(jù)dll.Store.myDataAdapter=new System.Data.SqlClient.SqlDataAdapter(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
						公共數(shù)據(jù)dll.Store.cb =new System.Data.SqlClient.SqlCommandBuilder(公共數(shù)據(jù)dll.Store.myDataAdapter);
						公共數(shù)據(jù)dll.Store.myDataAdapter.Fill(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
						this.userControl11.dataGrid1.SetDataBinding(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
						
					}
                
			}
			catch(Exception E)
			{
				MessageBox.Show(E.Message);
			}
			公共數(shù)據(jù)dll.Store.cn.Close();
		}


		private void menuItem5_Click(object sender, System.EventArgs e)//續(xù)借
		{
			try
			{
				書條碼號 p=new 書條碼號();
				p.ShowDialog();
				if(p.bookid=="null")return;
				bookid=p.bookid;//用來查看書的借閱情況,
				p.Close();
				公共數(shù)據(jù)dll.Store.cn.Open();
				公共數(shù)據(jù)dll.Store.sqlStr="exec renew '"+公共數(shù)據(jù)dll.Store.str_temp+"','"+bookid+"','"+this.singlelibrary+"'";
				公共數(shù)據(jù)dll.Store.cmd=new SqlCommand(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
				object n=公共數(shù)據(jù)dll.Store.cmd.ExecuteNonQuery();
				if(int.Parse(n.ToString())!=-1)
				{
					MessageBox.Show("續(xù)借成功!");
					公共數(shù)據(jù)dll.Store.ds.Tables["currentrecord"].Clear();
					公共數(shù)據(jù)dll.Store.sqlStr="select record.條碼號,題名,館藏地,借閱日期,應(yīng)歸還日期,操作='續(xù)借該書' from record,bookinfoview where record.條碼號=bookinfoview.條碼號 and 證件號='"+公共數(shù)據(jù)dll.Store.str_temp+"' and record.狀態(tài)='未還' or record.狀態(tài)='超期'";
					公共數(shù)據(jù)dll.Store.myDataAdapter=new System.Data.SqlClient.SqlDataAdapter(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
					公共數(shù)據(jù)dll.Store.cb =new System.Data.SqlClient.SqlCommandBuilder(公共數(shù)據(jù)dll.Store.myDataAdapter);
					公共數(shù)據(jù)dll.Store.myDataAdapter.Fill(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
					this.userControl11.dataGrid1.SetDataBinding(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
						
				}
                
			}
			catch(Exception E)
			{
				MessageBox.Show(E.Message);
			}
			公共數(shù)據(jù)dll.Store.cn.Close();
		
		}
		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			try
			{
				書條碼號 p=new 書條碼號();
				p.ShowDialog();
				if(p.bookid=="null")return;
				bookid=p.bookid;//用來查看書的借閱情況,
				p.Close();
				公共數(shù)據(jù)dll.Store.cn.Open();
				公共數(shù)據(jù)dll.Store.sqlStr="exec giveback  '"+bookid+"','"+this.singlelibrary+"'";
				公共數(shù)據(jù)dll.Store.cmd=new SqlCommand(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
				object n=公共數(shù)據(jù)dll.Store.cmd.ExecuteNonQuery();
				if(int.Parse(n.ToString())!=-1)
				{
					MessageBox.Show("還書成功!");
					公共數(shù)據(jù)dll.Store.ds.Tables["currentrecord"].Clear();
					公共數(shù)據(jù)dll.Store.sqlStr="select record.條碼號,題名,館藏地,借閱日期,應(yīng)歸還日期,操作='續(xù)借該書' from record,bookinfoview where record.條碼號=bookinfoview.條碼號 and 證件號='"+公共數(shù)據(jù)dll.Store.str_temp+"' and record.狀態(tài)='未還' or record.狀態(tài)='超期'";
					公共數(shù)據(jù)dll.Store.myDataAdapter=new System.Data.SqlClient.SqlDataAdapter(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
					公共數(shù)據(jù)dll.Store.cb =new System.Data.SqlClient.SqlCommandBuilder(公共數(shù)據(jù)dll.Store.myDataAdapter);
					公共數(shù)據(jù)dll.Store.myDataAdapter.Fill(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
					this.userControl11.dataGrid1.SetDataBinding(公共數(shù)據(jù)dll.Store.ds,"currentrecord");
						
				}
                
			}
			catch(Exception E)
			{
				MessageBox.Show(E.Message);
			}
			公共數(shù)據(jù)dll.Store.cn.Close();			
		}

		private void menuItem1_Popup(object sender, System.EventArgs e)//驗證證件號的正確性
		{
			公共數(shù)據(jù)dll.Store.cn.Open();
			公共數(shù)據(jù)dll.Store.sqlStr="select count(*) from readerinfo where 證件號='"+公共數(shù)據(jù)dll.Store.str_temp+"'";
			公共數(shù)據(jù)dll.Store.cmd=new SqlCommand(公共數(shù)據(jù)dll.Store.sqlStr,公共數(shù)據(jù)dll.Store.cn);
			object n=公共數(shù)據(jù)dll.Store.cmd.ExecuteScalar();
			if(int.Parse(n.ToString())==1)
			{
				this.menuItem2.Enabled=true;
				this.menuItem5.Enabled=true;
			}
			else
			{
				MessageBox.Show(n.ToString());
				this.menuItem2.Enabled=false;
				this.menuItem5.Enabled=false;

			}
			公共數(shù)據(jù)dll.Store.cn.Close();
		}

		
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产不卡免费视频| 成人免费观看男女羞羞视频| www久久精品| 色综合咪咪久久| 另类的小说在线视频另类成人小视频在线| 国产精品麻豆网站| 日韩亚洲欧美综合| 色网站国产精品| 国产尤物一区二区| 丝袜亚洲精品中文字幕一区| 亚洲国产精品成人久久综合一区| 91精品麻豆日日躁夜夜躁| 成人免费看视频| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲激情在线播放| 久久这里只有精品6| 欧美精品三级日韩久久| 色综合久久中文综合久久97| 国产精品影视网| 麻豆一区二区三| 亚洲综合小说图片| 亚洲天堂久久久久久久| 国产人成亚洲第一网站在线播放| 日韩一区二区麻豆国产| 欧美日韩三级视频| 色欧美片视频在线观看 | 欧美电影在哪看比较好| 91蜜桃网址入口| 国产福利电影一区二区三区| 美女脱光内衣内裤视频久久网站| 日韩精品电影一区亚洲| 性做久久久久久免费观看| 亚洲精品一二三区| 亚洲精选视频免费看| 亚洲欧美欧美一区二区三区| 亚洲色图.com| 亚洲精品老司机| 亚洲美女精品一区| 亚洲免费观看高清完整版在线| 中文字幕一区二区三区在线观看| 欧美国产精品v| 国产日韩v精品一区二区| 国产欧美视频在线观看| 国产偷国产偷亚洲高清人白洁 | 国产麻豆91精品| 久久9热精品视频| 久久国产剧场电影| 久久99国产精品成人| 狠狠色丁香久久婷婷综| 国产成人日日夜夜| 成人午夜私人影院| 色综合久久中文字幕| 欧美主播一区二区三区| 欧美日韩国产高清一区二区三区 | 欧美精品日韩一本| 宅男噜噜噜66一区二区66| 777久久久精品| 精品久久久久久无| 久久精品人人做人人综合| 国产日产欧美精品一区二区三区| 中文字幕 久热精品 视频在线| 中文字幕欧美三区| 亚洲婷婷综合久久一本伊一区| 亚洲精品成人悠悠色影视| 性做久久久久久久久| 麻豆一区二区三| 成人永久免费视频| 91免费在线看| 欧美顶级少妇做爰| 国产亚洲综合性久久久影院| 自拍偷拍欧美激情| 天堂va蜜桃一区二区三区| 国产在线国偷精品免费看| 白白色 亚洲乱淫| 欧美午夜一区二区三区 | 亚洲精品免费看| 首页亚洲欧美制服丝腿| 国产老肥熟一区二区三区| 91在线观看污| 欧美一区二区三区的| 国产女同互慰高潮91漫画| 一区二区国产盗摄色噜噜| 久久99这里只有精品| 91同城在线观看| 91精品国产综合久久福利软件| 国产欧美一区二区三区鸳鸯浴 | 亚洲欧美一区二区三区极速播放 | 亚洲第一电影网| 国产一区二区美女| 在线精品国精品国产尤物884a| 日韩精品专区在线影院重磅| 中文字幕一区在线观看视频| 秋霞午夜av一区二区三区| 成人av电影在线观看| 777色狠狠一区二区三区| 国产精品嫩草影院av蜜臀| 水蜜桃久久夜色精品一区的特点| 成人激情免费网站| 欧美成人高清电影在线| 亚洲精品乱码久久久久久日本蜜臀| 青草av.久久免费一区| 97久久精品人人澡人人爽| 日韩欧美电影一区| 一区二区免费看| 成人午夜激情在线| 欧美xxxx老人做受| 亚洲国产精品久久人人爱蜜臀| 福利电影一区二区| 欧美videos中文字幕| 亚洲综合无码一区二区| 高潮精品一区videoshd| 欧美电影免费观看高清完整版在线观看| 亚洲欧洲中文日韩久久av乱码| 国产suv精品一区二区883| 日韩欧美国产一区在线观看| 亚洲美女偷拍久久| 99综合影院在线| 国产午夜精品久久久久久久| 日本不卡一区二区| 欧美精品欧美精品系列| 一区二区三区鲁丝不卡| 91免费视频大全| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 色综合视频一区二区三区高清| 久久久久88色偷偷免费 | 色94色欧美sute亚洲线路一久| 亚洲国产高清aⅴ视频| 国产一区二区三区四区在线观看| 欧美精品第一页| 午夜精品福利一区二区蜜股av| 一本到不卡精品视频在线观看| 中文字幕高清不卡| 高清av一区二区| 亚洲国产成人在线| 成人一区二区三区视频在线观看 | 亚洲午夜私人影院| 日本高清不卡视频| 亚洲码国产岛国毛片在线| 99久久精品免费| 亚洲男同性视频| 91啪九色porn原创视频在线观看| 专区另类欧美日韩| 91黄色激情网站| 亚洲影院免费观看| 欧美视频完全免费看| 亚洲一区二区视频在线| 欧美人妖巨大在线| 免费黄网站欧美| 精品黑人一区二区三区久久| 精品无人码麻豆乱码1区2区| 久久久影院官网| 国产.欧美.日韩| 亚洲精品视频一区| 欧美日韩国产综合视频在线观看 | 精品国产污污免费网站入口| 精品亚洲aⅴ乱码一区二区三区| 26uuu国产在线精品一区二区| 欧美午夜不卡在线观看免费| 亚洲不卡在线观看| 日韩欧美的一区| 国产suv精品一区二区6| 综合自拍亚洲综合图不卡区| 在线精品视频一区二区| 日本欧美一区二区在线观看| 久久美女艺术照精彩视频福利播放| 丰满少妇久久久久久久| 亚洲女人的天堂| 日韩一区二区免费视频| 国产成人免费xxxxxxxx| 一区二区三区日韩在线观看| 宅男噜噜噜66一区二区66| 国产激情一区二区三区四区| 亚洲人123区| 日韩欧美一卡二卡| 成人av资源下载| 日韩国产一二三区| 中文字幕乱码一区二区免费| 在线观看免费视频综合| 国产在线精品一区二区夜色| 亚洲久草在线视频| 2023国产精华国产精品| 色综合久久久久综合99| 麻豆免费看一区二区三区| 国产精品护士白丝一区av| 欧美色图一区二区三区| 国产精品自在欧美一区| 亚洲国产婷婷综合在线精品| 欧美精品一区视频| 欧美中文字幕一区| 国产成人精品一区二区三区四区| 亚洲午夜久久久久久久久电影网 | 国产精品网站在线| 欧美日韩国产经典色站一区二区三区 | 国产91在线观看丝袜| 亚洲自拍偷拍图区| 中文成人av在线| 日韩一区二区三| 欧美性猛交xxxxxx富婆| 岛国精品在线观看| 免费不卡在线观看|