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

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

?? returnbooks.cs

?? 圖書館信息管理系統(tǒng) Library Information Management System
?? CS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
			this.groupBox6.Controls.Add(this.textBox9);
			this.groupBox6.Controls.Add(this.textBox8);
			this.groupBox6.Controls.Add(this.label13);
			this.groupBox6.Controls.Add(this.label12);
			this.groupBox6.Controls.Add(this.label11);
			this.groupBox6.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.groupBox6.Location = new System.Drawing.Point(352, 128);
			this.groupBox6.Name = "groupBox6";
			this.groupBox6.Size = new System.Drawing.Size(416, 125);
			this.groupBox6.TabIndex = 11;
			this.groupBox6.TabStop = false;
			this.groupBox6.Text = "圖書信息";
			// 
			// textBox7
			// 
			this.textBox7.Location = new System.Drawing.Point(112, 22);
			this.textBox7.Name = "textBox7";
			this.textBox7.ReadOnly = true;
			this.textBox7.Size = new System.Drawing.Size(256, 21);
			this.textBox7.TabIndex = 1;
			this.textBox7.Text = "";
			// 
			// textBox9
			// 
			this.textBox9.Location = new System.Drawing.Point(112, 86);
			this.textBox9.Name = "textBox9";
			this.textBox9.ReadOnly = true;
			this.textBox9.Size = new System.Drawing.Size(256, 21);
			this.textBox9.TabIndex = 10;
			this.textBox9.Text = "";
			// 
			// textBox8
			// 
			this.textBox8.Location = new System.Drawing.Point(112, 54);
			this.textBox8.Name = "textBox8";
			this.textBox8.ReadOnly = true;
			this.textBox8.Size = new System.Drawing.Size(256, 21);
			this.textBox8.TabIndex = 9;
			this.textBox8.Text = "";
			// 
			// label13
			// 
			this.label13.AutoSize = true;
			this.label13.Location = new System.Drawing.Point(32, 88);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(42, 17);
			this.label13.TabIndex = 6;
			this.label13.Text = "出版社";
			// 
			// label12
			// 
			this.label12.AutoSize = true;
			this.label12.Location = new System.Drawing.Point(32, 56);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(29, 17);
			this.label12.TabIndex = 5;
			this.label12.Text = "作者";
			// 
			// label11
			// 
			this.label11.AutoSize = true;
			this.label11.Location = new System.Drawing.Point(32, 24);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(29, 17);
			this.label11.TabIndex = 4;
			this.label11.Text = "書名";
			// 
			// groupBox7
			// 
			this.groupBox7.Controls.Add(this.label19);
			this.groupBox7.Controls.Add(this.label18);
			this.groupBox7.Controls.Add(this.label17);
			this.groupBox7.Controls.Add(this.label14);
			this.groupBox7.Controls.Add(this.label2);
			this.groupBox7.Controls.Add(this.label16);
			this.groupBox7.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.groupBox7.Location = new System.Drawing.Point(576, 256);
			this.groupBox7.Name = "groupBox7";
			this.groupBox7.Size = new System.Drawing.Size(192, 152);
			this.groupBox7.TabIndex = 14;
			this.groupBox7.TabStop = false;
			this.groupBox7.Text = "罰款信息";
			// 
			// label19
			// 
			this.label19.AutoSize = true;
			this.label19.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label19.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label19.Location = new System.Drawing.Point(152, 64);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(17, 17);
			this.label19.TabIndex = 5;
			this.label19.Text = "元";
			this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label18
			// 
			this.label18.AutoSize = true;
			this.label18.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label18.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label18.Location = new System.Drawing.Point(152, 24);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(17, 17);
			this.label18.TabIndex = 4;
			this.label18.Text = "天";
			this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label17
			// 
			this.label17.AutoSize = true;
			this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label17.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label17.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label17.Location = new System.Drawing.Point(88, 64);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(25, 20);
			this.label17.TabIndex = 3;
			this.label17.Text = "...";
			this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label14
			// 
			this.label14.AutoSize = true;
			this.label14.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label14.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label14.Location = new System.Drawing.Point(24, 64);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(60, 17);
			this.label14.TabIndex = 2;
			this.label14.Text = "應(yīng)罰金額:";
			this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label2.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label2.Location = new System.Drawing.Point(88, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(25, 20);
			this.label2.TabIndex = 1;
			this.label2.Text = "...";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label16
			// 
			this.label16.AutoSize = true;
			this.label16.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label16.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label16.Location = new System.Drawing.Point(24, 25);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(60, 17);
			this.label16.TabIndex = 0;
			this.label16.Text = "超期天數(shù):";
			this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// ReturnBooks
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(790, 503);
			this.ControlBox = false;
			this.Controls.Add(this.groupBox7);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox5);
			this.Controls.Add(this.groupBox4);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.groupBox6);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Name = "ReturnBooks";
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
			this.Text = "歸還圖書";
			this.Load += new System.EventHandler(this.ReturnBooks_Load);
			this.groupBox3.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox5.ResumeLayout(false);
			this.groupBox4.ResumeLayout(false);
			this.groupBox6.ResumeLayout(false);
			this.groupBox7.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// 初始化
		/// </summary>
		private void initializeScreen()
		{
			r_ID = "";
			rc = 0;
			dc = 0;
			book_ID = "";
			btnReturn.Enabled = true;
			btnForfeit.Enabled = false;
			textBox1.Text = "";
			textBox2.Text = "";
			textBox3.Text = "";
			textBox4.Text = "";
			textBox5.Text = "";
			textBox6.Text = "";
			textBox7.Text = "";
			textBox8.Text = "";
			textBox9.Text = "";
			label2.Text = "";
			label17.Text = "";
			listView1.Items.Clear();
			isU=false;
			//ListViewItem item = null;
		}
		/// <summary>
		/// 關(guān)閉
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnClose_Click(object sender, System.EventArgs e)
		{
			Global.sbpGlobal.Text = "就緒";
			Global.ReturnBooks = false;
			this.Close();
		}
		/// <summary>
		/// 窗體加載代碼
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ReturnBooks_Load(object sender, System.EventArgs e)
		{
			cmd = Global.conn.CreateCommand();
			initializeScreen();
		}
		/// <summary>
		/// 歸還圖書
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnReturn_Click(object sender, System.EventArgs e)
		{
			if(isU)
			{
				MessageBox.Show("此圖書已經(jīng)超期!");
				initializeScreen();
				return;
			}
			else
			{
				string str = "update 流通 set 歸還標(biāo)志=1 where 圖書條碼號(hào)='" + book_ID + "'";
				cmd.CommandText = str;
				try
				{
					cmd.ExecuteNonQuery();
					MessageBox.Show("成功歸還圖書!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
					initializeScreen();
				}
				catch(Exception ex)
				{
					MessageBox.Show("發(fā)生如下錯(cuò)誤:\n\n" + ex.ToString(),"錯(cuò)誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
					return;
				}
			}
		}
		/// <summary>
		/// 罰款
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnForfeit_Click(object sender, System.EventArgs e)
		{
			string str = "insert into 罰款 values('" + book_ID + "'," + Convert.ToDecimal(label17.Text) + ",'"
				+ "圖書超期','" + textBox2.Text + "','" + DateTime.Now.ToShortDateString() + "')";
			cmd.CommandText = str;
			//創(chuàng)建事務(wù)
			SqlTransaction trans = Global.conn.BeginTransaction();
			cmd.Transaction = trans;
			try
			{
				cmd.CommandText = str;
				cmd.ExecuteNonQuery();
				str = "update 流通 set 歸還標(biāo)志=1 where 圖書條碼號(hào)='" + book_ID + "'";
				cmd.CommandText = str;
				cmd.ExecuteNonQuery();
				trans.Commit();
				MessageBox.Show("此圖書成功歸還并且繳納罰金!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
				initializeScreen();
			}
			catch
			{
				try
				{
					trans.Rollback();
				}
				catch (SqlException ex)
				{
					if (trans.Connection != null)
					{
						MessageBox.Show("發(fā)生如下錯(cuò)誤:\n\t" + ex.ToString(),"錯(cuò)誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
					}
				}
				MessageBox.Show("發(fā)生錯(cuò)誤!圖書借閱未成功!");
				initializeScreen();
				return;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if(e.KeyData == Keys.Enter)
			{
				book_ID = textBox1.Text;
				string str = "select * from V_還書 where 圖書條碼號(hào)='" + book_ID + "' and 歸還標(biāo)志=0";
				cmd.CommandText = str;
				try
				{
					dr = cmd.ExecuteReader();
					dr.Read();
					if(dr.HasRows)
					{
						r_ID = dr.GetString(1);
						textBox2.Text = dr.GetString(2);
						textBox3.Text = dr.GetString(3);
						textBox5.Text = dr.GetInt32(7).ToString();
						textBox7.Text = dr.GetString(9);
						textBox8.Text = dr.GetString(11);
						textBox9.Text = dr.GetString(13);
						dc = dr.GetInt32(6);
						rc = dr.GetInt32(7);
						textBox4.Text = rc.ToString();
						if(dr.GetDateTime(17)<DateTime.Now)
						{
							string cd =  Convert.ToString(DateTime.Now.Date-dr.GetDateTime(17).Date).Remove(Convert.ToString(DateTime.Now.Date-dr.GetDateTime(17).Date).IndexOf("."),9);
							label2.Text = cd;
							label17.Text = Convert.ToString(Convert.ToInt32(cd)*Convert.ToDouble(dr.GetDecimal(8)));
							btnReturn.Enabled = false;
							btnForfeit.Enabled = true;
							isU = true;
						}
						else
						{
							btnForfeit.Enabled = false;
							btnReturn.Enabled = true;
							label2.Text = "0";
							label17.Text = "0.00";
							isU= false;
						}
					}
					else
					{
						if(dr!=null)dr.Close();
						MessageBox.Show("此條碼對(duì)應(yīng)的圖書未被借出或條形碼錄入錯(cuò)誤!請(qǐng)重新檢查輸入!","錯(cuò)誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
						textBox1.SelectAll();
						textBox1.Focus();
						return;
					}
					if(dr!=null)dr.Close();
				}
				catch(Exception ex)
				{
					if(dr!=null)dr.Close();
					MessageBox.Show("發(fā)生錯(cuò)誤!錯(cuò)誤信息如下:\n\t" + ex.ToString(),"錯(cuò)誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
					return;
				}
				listView1.Items.Clear();
				ListViewItem item = null;
				str = "select * from V_還書 where 借書證號(hào)='" + r_ID + "' and 歸還標(biāo)志=0";
				cmd.CommandText = str;
				try
				{
					int i = 0;
					dr = cmd.ExecuteReader();
					while(dr.Read())
					{
						i++;
						item = new ListViewItem(dr.GetString(0));
						item.SubItems.Add(dr.GetString(9));
						if(dr.GetDateTime(17)<DateTime.Now)
						{
							item.SubItems.Add("是");
						}
						else
						{
							item.SubItems.Add("否");
						}
						item.SubItems.Add(dr.GetString(10));
						item.SubItems.Add(dr.GetString(11));
						item.SubItems.Add(dr.GetDecimal(12).ToString());
						item.SubItems.Add(dr.GetString(13));
						item.SubItems.Add(dr.GetString(14));
						listView1.Items.Add(item);
						textBox6.Text = (rc-i).ToString();
					}
					if(dr!=null)dr.Close();
				}
				catch(Exception ex)
				{
					if(dr!=null)dr.Close();
					MessageBox.Show("發(fā)生如下錯(cuò)誤:\n\t" + ex.ToString(),"錯(cuò)誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
					return;
				}
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产色产综合色产在线视频| 欧美一区二区福利视频| 国产一二三精品| 久久99国产精品免费网站| 日本欧美一区二区| 天天射综合影视| 美女在线观看视频一区二区| 久久激情综合网| 国产毛片精品视频| 成人黄色网址在线观看| 91色在线porny| 在线观看av一区| 91麻豆精品国产91久久久久久久久| 欧美午夜一区二区三区免费大片| 欧美日韩午夜在线视频| 91麻豆精品国产91久久久久| 欧美一级免费大片| 久久久久成人黄色影片| 国产精品国产a级| 亚洲成人动漫在线免费观看| 亚洲成人综合视频| 激情文学综合网| 97se亚洲国产综合自在线不卡| 91免费看视频| 欧美一区二区三区视频在线| 国产丝袜在线精品| 亚洲女与黑人做爰| 久久99这里只有精品| 成人免费高清视频在线观看| 91麻豆免费观看| 日韩欧美国产成人一区二区| 国产精品麻豆99久久久久久| 天堂成人国产精品一区| 国产河南妇女毛片精品久久久 | 日本视频一区二区三区| 韩国精品一区二区| 色8久久人人97超碰香蕉987| 日韩欧美电影一二三| 综合激情网...| 麻豆国产精品777777在线| 91视频一区二区三区| 久久久蜜桃精品| 亚洲国产精品人人做人人爽| 国产精品一线二线三线精华| 欧美在线制服丝袜| 国产精品污www在线观看| 男女激情视频一区| 在线观看国产精品网站| 国产精品久久久久久久久快鸭 | 亚洲视频一区在线| 麻豆一区二区三| 欧美日韩亚洲综合在线 | 欧美一区日韩一区| 国产精品久久久久一区| 经典三级视频一区| 91.麻豆视频| 亚洲国产欧美日韩另类综合 | 成人免费在线播放视频| 激情久久五月天| 日韩免费视频一区二区| 日韩影视精彩在线| 欧美性高清videossexo| 亚洲精品欧美二区三区中文字幕| 国产精品一区二区久久不卡| 亚洲精品一区二区精华| 伦理电影国产精品| 日韩欧美一级二级三级| 午夜视黄欧洲亚洲| 911精品国产一区二区在线| 亚洲va欧美va人人爽午夜| 国产在线视频一区二区三区| 色8久久精品久久久久久蜜| 亚洲欧美激情小说另类| 成人黄色777网| 国产精品成人免费在线| 91丨九色丨蝌蚪丨老版| 亚洲欧美电影一区二区| 欧美日韩综合一区| 丝袜诱惑制服诱惑色一区在线观看| 色婷婷一区二区| 亚洲欧美一区二区三区久本道91 | 国产又黄又大久久| 国产肉丝袜一区二区| 国产成人综合自拍| 国产精品久久久久天堂| 99久久国产综合精品色伊| 亚洲色大成网站www久久九九| 99久久精品国产导航| 一区二区欧美视频| 欧美美女直播网站| 麻豆精品国产传媒mv男同| 日韩精品一区二区三区视频| 国产伦精品一区二区三区视频青涩 | 韩国三级在线一区| 欧美国产日本韩| 欧美日韩一区久久| 毛片不卡一区二区| 国产精品国产三级国产aⅴ入口| 91丨porny丨最新| 日韩影院在线观看| 国产日韩成人精品| 91精品福利在线| 蜜臀va亚洲va欧美va天堂| 久久久精品综合| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 午夜电影网亚洲视频| 精品国产伦理网| 色综合天天综合狠狠| 麻豆国产91在线播放| 国产精品国产a级| 日韩你懂的在线观看| 99国产精品久| 久久99久久久久久久久久久| 国产精品国模大尺度视频| 欧美日韩高清一区| 国产69精品久久777的优势| 亚洲国产一区在线观看| 久久九九久精品国产免费直播| 欧美在线|欧美| 国产成人免费视频网站| 日韩精品乱码av一区二区| 国产精品久久久久一区二区三区| 欧美精品xxxxbbbb| 91蝌蚪porny九色| 国产乱妇无码大片在线观看| 午夜激情久久久| 中文字幕亚洲电影| 精品国产一区二区三区久久影院| 欧美亚洲一区二区在线| 国产成人综合亚洲网站| 精品制服美女久久| 午夜影院在线观看欧美| 亚洲另类色综合网站| 国产精品色在线| 久久夜色精品国产噜噜av| 欧美男男青年gay1069videost| 91蜜桃视频在线| 成人精品一区二区三区中文字幕| 久久97超碰国产精品超碰| 天天综合网天天综合色| 亚洲一区二区三区中文字幕 | 91丨porny丨户外露出| 丰满少妇在线播放bd日韩电影| 久久国产婷婷国产香蕉| 日韩国产精品久久| 婷婷丁香激情综合| 日韩影院免费视频| 日韩和的一区二区| 日韩高清不卡一区二区三区| 舔着乳尖日韩一区| 麻豆精品视频在线| 老司机免费视频一区二区| 免费欧美日韩国产三级电影| 日韩精品三区四区| 日韩av电影免费观看高清完整版在线观看| 一区二区三区在线免费观看| 亚洲一区二区四区蜜桃| 亚洲第一av色| 麻豆一区二区三区| 国产伦精品一区二区三区视频青涩 | 91美女片黄在线观看| 色爱区综合激月婷婷| 欧美视频中文一区二区三区在线观看 | 日本成人在线不卡视频| 狂野欧美性猛交blacked| 美女精品自拍一二三四| 国产精品888| 99久久伊人精品| 欧美亚洲国产bt| 91精品在线麻豆| 2023国产一二三区日本精品2022| 久久久亚洲精品石原莉奈| 国产精品美女久久久久久久网站| 亚洲青青青在线视频| 日本欧美在线观看| 处破女av一区二区| 欧美日韩在线一区二区| 精品久久久久久久一区二区蜜臀| 久久久激情视频| 亚洲码国产岛国毛片在线| 天堂在线亚洲视频| 国产91在线看| 欧美日韩一级片网站| 久久久久久久性| 亚洲一区视频在线观看视频| 久久激情综合网| 色妞www精品视频| 精品日韩欧美在线| 一区二区在线免费| 国产一区二区不卡老阿姨| 在线观看成人小视频| 亚洲精品一区二区三区精华液| 亚洲精品乱码久久久久久日本蜜臀| 亚洲444eee在线观看| 成人国产亚洲欧美成人综合网| 制服丝袜亚洲精品中文字幕| 国产精品视频一二| 国产自产v一区二区三区c| 欧美亚洲精品一区| 国产精品热久久久久夜色精品三区 |