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

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

?? bookpenalty.cs

?? 圖書館管理系統(tǒng)采用C#和SQL Server 數(shù)據(jù)庫編寫 適合小型圖書館的管理
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace 圖書館管理系統(tǒng)
{
	/// <summary>
	/// BookPenalty 的摘要說明。
	/// </summary>
	public class BookPenalty : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Button btnSearch;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox txt3;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private System.Data.SqlClient.SqlDataAdapter da1;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private 圖書館管理系統(tǒng).DataSet2 dataSet21;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.TextBox txt4;
		private System.Windows.Forms.Button btnPenalty;
		/// <summary>
		/// 必需的設(shè)計(jì)器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public BookPenalty()
		{
			//
			// Windows 窗體設(shè)計(jì)器支持所必需的
			//
			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è)計(jì)器生成的代碼
		/// <summary>
		/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(BookPenalty));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.btnSearch = new System.Windows.Forms.Button();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txt2 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.txt3 = new System.Windows.Forms.TextBox();
			this.da1 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.dataSet21 = new 圖書館管理系統(tǒng).DataSet2();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.txt4 = new System.Windows.Forms.TextBox();
			this.btnPenalty = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataSet21)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.btnSearch);
			this.groupBox1.Controls.Add(this.txt1);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.txt2);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.txt3);
			this.groupBox1.Location = new System.Drawing.Point(0, -1);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(642, 60);
			this.groupBox1.TabIndex = 2;
			this.groupBox1.TabStop = false;
			// 
			// btnSearch
			// 
			this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
			this.btnSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnSearch.Location = new System.Drawing.Point(16, 26);
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.Size = new System.Drawing.Size(72, 23);
			this.btnSearch.TabIndex = 3;
			this.btnSearch.Text = " 搜索";
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// txt1
			// 
			this.txt1.Location = new System.Drawing.Point(155, 25);
			this.txt1.Name = "txt1";
			this.txt1.TabIndex = 8;
			this.txt1.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(104, 29);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 16);
			this.label2.TabIndex = 6;
			this.label2.Text = "讀者編號";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(288, 29);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.TabIndex = 4;
			this.label1.Text = "圖書編號";
			// 
			// txt2
			// 
			this.txt2.Location = new System.Drawing.Point(347, 25);
			this.txt2.Name = "txt2";
			this.txt2.TabIndex = 9;
			this.txt2.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(472, 29);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 5;
			this.label3.Text = "讀者姓名";
			// 
			// txt3
			// 
			this.txt3.Location = new System.Drawing.Point(528, 25);
			this.txt3.Name = "txt3";
			this.txt3.TabIndex = 7;
			this.txt3.Text = "";
			// 
			// da1
			// 
			this.da1.SelectCommand = this.sqlSelectCommand1;
			this.da1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																						  new System.Data.Common.DataTableMapping("Table", "圖書罰款", new System.Data.Common.DataColumnMapping[] {
																																																  new System.Data.Common.DataColumnMapping("罰款編號", "罰款編號"),
																																																  new System.Data.Common.DataColumnMapping("圖書編號", "圖書編號"),
																																																  new System.Data.Common.DataColumnMapping("書名", "書名"),
																																																  new System.Data.Common.DataColumnMapping("讀者編號", "讀者編號"),
																																																  new System.Data.Common.DataColumnMapping("姓名", "姓名"),
																																																  new System.Data.Common.DataColumnMapping("罰款日期", "罰款日期"),
																																																  new System.Data.Common.DataColumnMapping("應(yīng)罰金額", "應(yīng)罰金額"),
																																																  new System.Data.Common.DataColumnMapping("實(shí)收金額", "實(shí)收金額"),
																																																  new System.Data.Common.DataColumnMapping("是否交款", "是否交款"),
																																																  new System.Data.Common.DataColumnMapping("備注", "備注")})});
			// 
			// sqlSelectCommand1
			// 
			this.sqlSelectCommand1.CommandText = @"SELECT a.罰款編號, a.圖書編號, c.書名, a.讀者編號, b.姓名, a.罰款日期, a.應(yīng)罰金額, a.實(shí)收金額, a.是否交款, a.備注 FROM 圖書罰款 a INNER JOIN 圖書信息 c ON a.圖書編號 = c.編號 INNER JOIN 讀者信息 b ON a.讀者編號 = b.編號 WHERE (a.是否交款 = '0') AND (a.讀者編號 LIKE @Param14) AND (a.圖書編號 LIKE @Param15) AND (b.姓名 LIKE @Param16)";
			this.sqlSelectCommand1.Connection = this.sqlConnection1;
			this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param14", System.Data.SqlDbType.VarChar, 20, "讀者編號"));
			this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param15", System.Data.SqlDbType.VarChar, 50, "圖書編號"));
			this.sqlSelectCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Param16", System.Data.SqlDbType.VarChar, 20, "姓名"));
			// 
			// sqlConnection1
			// 
			this.sqlConnection1.ConnectionString = "workstation id=localhost;Integrated Security=SSPI;Database=libbook;";
			// 
			// dataSet21
			// 
			this.dataSet21.DataSetName = "DataSet2";
			this.dataSet21.Locale = new System.Globalization.CultureInfo("zh-CN");
			// 
			// dataGrid1
			// 
			this.dataGrid1.CaptionVisible = false;
			this.dataGrid1.DataMember = "圖書罰款";
			this.dataGrid1.DataSource = this.dataSet21;
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(0, 56);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.Size = new System.Drawing.Size(648, 368);
			this.dataGrid1.TabIndex = 3;
			// 
			// txt4
			// 
			this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet21, "圖書罰款.應(yīng)罰金額"));
			this.txt4.Location = new System.Drawing.Point(272, 440);
			this.txt4.Name = "txt4";
			this.txt4.TabIndex = 4;
			this.txt4.Text = "";
			// 
			// btnPenalty
			// 
			this.btnPenalty.Location = new System.Drawing.Point(128, 440);
			this.btnPenalty.Name = "btnPenalty";
			this.btnPenalty.Size = new System.Drawing.Size(128, 23);
			this.btnPenalty.TabIndex = 5;
			this.btnPenalty.Text = "收回罰款";
			this.btnPenalty.Click += new System.EventHandler(this.btnPenalty_Click);
			// 
			// BookPenalty
			// 
			this.AcceptButton = this.btnSearch;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(648, 486);
			this.Controls.Add(this.btnPenalty);
			this.Controls.Add(this.txt4);
			this.Controls.Add(this.dataGrid1);
			this.Controls.Add(this.groupBox1);
			this.Name = "BookPenalty";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "【圖書罰款】";
			this.Load += new System.EventHandler(this.BookPenalty_Load);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataSet21)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		//------------初始化窗體時(shí),填充數(shù)據(jù)-------------
		private void BookPenalty_Load(object sender, System.EventArgs e)
		{
			da1.SelectCommand.Parameters[0].Value="%%";
			da1.SelectCommand.Parameters[1].Value="%%";
			da1.SelectCommand.Parameters[2].Value="%%";
			da1.Fill(dataSet21);
		}

		//-----------搜索讀者罰款記錄-----------
		private void btnSearch_Click(object sender, System.EventArgs e)
		{
			da1.SelectCommand.Parameters[0].Value="%%";
			da1.SelectCommand.Parameters[1].Value="%%";
			da1.SelectCommand.Parameters[2].Value="%%";
			if(txt1.Text!="")
			{
				da1.SelectCommand.Parameters[0].Value="%"+txt1.Text+"%";
			}
			if(txt2.Text!="")
			{
				da1.SelectCommand.Parameters[1].Value="%"+txt2.Text+"%";
			}
			if(txt3.Text!="")
			{
				da1.SelectCommand.Parameters[2].Value="%"+txt3.Text+"%";
			}
			dataSet21.圖書罰款.Clear();
			da1.Fill(dataSet21);
		}

		//-----------收取罰款-----------
		private void btnPenalty_Click(object sender, System.EventArgs e)
		{
			if(txt4.Text.Trim()=="")
			{
				MessageBox.Show("請輸入實(shí)收罰款金額","輸入金額",MessageBoxButtons.OK,MessageBoxIcon.Error);
				return;
			}
			decimal money=Convert.ToDecimal(txt4.Text.Trim());//應(yīng)收罰款金額
			string penaltyID=dataGrid1[dataGrid1.CurrentCell.RowNumber,0].ToString().Trim();//罰款記錄編號
			string strConn = "workstation id=localhost;Integrated Security=SSPI;database=libbook";
			SqlConnection cn=new SqlConnection(strConn);
			cn.Open();
			SqlCommand cmd=cn.CreateCommand();
			cmd.CommandText="update 圖書罰款 set 是否交款='1',實(shí)收金額=CAST('"+money.ToString()+"' as money) where 罰款編號='"+penaltyID+"'";
			
			cmd.ExecuteNonQuery();
			dataSet21.圖書罰款.Clear();
			da1.Fill(dataSet21);		
		}		
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线视频在线| 一区二区三区成人| 国产网红主播福利一区二区| 精品国产一二三区| 久久免费电影网| 国产人成亚洲第一网站在线播放| 久久久久久久久岛国免费| 精品国偷自产国产一区| 久久婷婷成人综合色| 国产亚洲精品久| 国产精品久久午夜夜伦鲁鲁| 综合在线观看色| 亚洲男人天堂一区| 亚洲va天堂va国产va久| 日本不卡一二三区黄网| 国产麻豆成人传媒免费观看| 国产黄色91视频| av一二三不卡影片| 欧日韩精品视频| 欧美精品丝袜久久久中文字幕| 欧美一区二区三区色| 亚洲精品在线观看视频| 日本一区免费视频| 一区二区三区四区不卡视频| 亚洲观看高清完整版在线观看| 日韩精品乱码免费| 国产91丝袜在线播放0| 成人av电影在线播放| 欧美丝袜丝nylons| 精品人在线二区三区| 国产精品天美传媒| 亚洲一区二区三区四区在线免费观看| 丝瓜av网站精品一区二区| 韩国欧美一区二区| 91美女精品福利| 91麻豆精品久久久久蜜臀 | 亚洲乱码国产乱码精品精可以看| 亚洲一卡二卡三卡四卡五卡| 麻豆精品在线看| av电影在线观看一区| 欧美电影影音先锋| 国产精品美女www爽爽爽| 亚洲国产一区二区三区| 韩国av一区二区三区四区| 99久久婷婷国产综合精品| 欧美老女人第四色| 国产精品污www在线观看| 日韩高清在线不卡| 91在线观看视频| 日韩精品一区国产麻豆| 亚洲柠檬福利资源导航| 国产一区二三区| 欧美日韩国产综合一区二区| 欧美激情在线一区二区三区| 亚洲国产视频a| 丰满放荡岳乱妇91ww| 91精品在线观看入口| 中文字幕一区av| 精品在线免费观看| 欧美色涩在线第一页| 国产午夜精品久久| 日本特黄久久久高潮| 91女厕偷拍女厕偷拍高清| 亚洲精品一区二区三区蜜桃下载 | 国产日韩在线不卡| 日韩va亚洲va欧美va久久| 99久久久久久| 国产日韩综合av| 九九精品一区二区| 欧美日韩黄色影视| 亚洲精品伦理在线| www.欧美日韩国产在线| 欧美精品一区二区三区很污很色的 | 国产欧美精品在线观看| 麻豆成人久久精品二区三区红 | 中文字幕一区在线观看视频| 裸体一区二区三区| 欧美电影在哪看比较好| 亚洲一卡二卡三卡四卡| 91免费在线看| 亚洲少妇30p| 成人av网站在线观看| 久久久噜噜噜久久中文字幕色伊伊 | 老司机精品视频线观看86| 欧美日韩在线三区| 玉米视频成人免费看| 波多野结衣在线aⅴ中文字幕不卡| 久久免费看少妇高潮| 韩国欧美一区二区| 久久久一区二区三区捆绑**| 国产资源精品在线观看| 日韩女优制服丝袜电影| 日本欧美久久久久免费播放网| 欧美视频在线一区二区三区| 樱桃视频在线观看一区| 日本丶国产丶欧美色综合| 亚洲欧美另类久久久精品2019| www.爱久久.com| 国产精品久久久久婷婷| 成人免费观看视频| 国产精品污www在线观看| 成人av免费在线| 亚洲码国产岛国毛片在线| 色综合久久88色综合天天免费| 成人欧美一区二区三区小说| 99视频一区二区| 亚洲色图.com| 欧美性猛交xxxx黑人交| 亚洲mv在线观看| 欧美一级理论性理论a| 久久er99精品| 欧美激情一区二区三区在线| 99精品偷自拍| 亚洲大片精品永久免费| 日韩三级电影网址| 国内精品久久久久影院色| 国产欧美一区视频| 97久久精品人人澡人人爽| 亚洲一级二级在线| 欧美一级黄色录像| 国产白丝网站精品污在线入口| 日本一区二区三区国色天香 | 欧美日韩精品一区二区在线播放| 天堂蜜桃91精品| 欧美一级黄色录像| 国产成人亚洲综合色影视| 国产精品国产精品国产专区不蜜| 在线观看av一区二区| 免费精品视频最新在线| 欧美极品xxx| 欧美视频中文字幕| 国产一区二区按摩在线观看| 国产精品久久久久久久久久免费看| 欧美在线观看一区| 久久不见久久见中文字幕免费| 欧美国产精品v| 欧美视频精品在线观看| 精品中文字幕一区二区| 亚洲欧美另类小说视频| 日韩欧美一区二区免费| 99久久精品免费| 日本aⅴ精品一区二区三区| 国产欧美一区二区精品婷婷| 日本韩国精品一区二区在线观看| 奇米四色…亚洲| 最新中文字幕一区二区三区 | 日韩精品高清不卡| 国产日韩av一区二区| 欧美三级韩国三级日本三斤| 国产一区二区三区综合| 亚洲主播在线播放| 国产亚洲婷婷免费| 欧美精品三级日韩久久| 成人午夜激情在线| 日本成人超碰在线观看| 亚洲日本免费电影| 精品福利一二区| 欧美在线你懂的| 成人午夜精品一区二区三区| 美女一区二区在线观看| 亚洲女同女同女同女同女同69| 精品久久久久久久久久久久久久久| 91丨porny丨国产| 国产麻豆精品视频| 秋霞影院一区二区| 亚洲免费成人av| 亚洲国产成人一区二区三区| 欧美一区二区三区思思人| 在线欧美小视频| 成人一级黄色片| 看电视剧不卡顿的网站| 亚洲成人av一区二区| 国产精品国产a级| 久久先锋影音av| 日韩一区二区三| 欧美影院一区二区| www.日本不卡| 丰满放荡岳乱妇91ww| 国产一区二区三区高清播放| 人人超碰91尤物精品国产| 一区二区日韩电影| 亚洲免费观看高清| 国产精品高潮久久久久无| 欧美激情在线观看视频免费| 久久综合av免费| 日韩欧美久久一区| 3d成人动漫网站| 欧美日韩精品一区视频| 在线观看免费一区| 在线观看国产91| 欧美中文字幕一区二区三区亚洲| 成人av手机在线观看| 国产成人精品一区二| 国产精品自拍av| 国产乱妇无码大片在线观看| 韩国av一区二区三区在线观看| 捆绑调教美女网站视频一区| 久久99精品久久久久久国产越南| 麻豆91免费观看| 国产一区二区在线视频|