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

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

?? frmassets.cs

?? 資產(chǎn)數(shù)據(jù)庫設(shè)計
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace AdminGoods
{
	/// <summary>
	/// frmAssets 的摘要說明。
	/// </summary>
	public class frmAssets : System.Windows.Forms.Form
	{
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.ComboBox comboBox1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button button2;
		/// <summary>
		/// 必需的設(shè)計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmAssets()
		{
			//
			// 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.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.button1 = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.button2 = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// dataGrid1
			// 
			this.dataGrid1.AlternatingBackColor = System.Drawing.Color.LightGray;
			this.dataGrid1.BackColor = System.Drawing.Color.Gainsboro;
			this.dataGrid1.BackgroundColor = System.Drawing.Color.Silver;
			this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.dataGrid1.CaptionBackColor = System.Drawing.Color.LightSteelBlue;
			this.dataGrid1.CaptionForeColor = System.Drawing.Color.MidnightBlue;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.FlatMode = true;
			this.dataGrid1.Font = new System.Drawing.Font("Tahoma", 8F);
			this.dataGrid1.ForeColor = System.Drawing.Color.Black;
			this.dataGrid1.GridLineColor = System.Drawing.Color.DimGray;
			this.dataGrid1.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
			this.dataGrid1.HeaderBackColor = System.Drawing.Color.MidnightBlue;
			this.dataGrid1.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
			this.dataGrid1.HeaderForeColor = System.Drawing.Color.White;
			this.dataGrid1.LinkColor = System.Drawing.Color.MidnightBlue;
			this.dataGrid1.Location = new System.Drawing.Point(16, 56);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.DarkGray;
			this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.Black;
			this.dataGrid1.SelectionBackColor = System.Drawing.Color.CadetBlue;
			this.dataGrid1.SelectionForeColor = System.Drawing.Color.White;
			this.dataGrid1.Size = new System.Drawing.Size(608, 224);
			this.dataGrid1.TabIndex = 0;
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(272, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(160, 21);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "";
			// 
			// comboBox1
			// 
			this.comboBox1.Items.AddRange(new object[] {
														   "所有類別"});
			this.comboBox1.Location = new System.Drawing.Point(96, 24);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(96, 20);
			this.comboBox1.TabIndex = 2;
			this.comboBox1.Text = "comboBox1";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(464, 24);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(64, 24);
			this.button1.TabIndex = 3;
			this.button1.Text = "Query";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(216, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 16);
			this.label1.TabIndex = 4;
			this.label1.Text = "Code";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(40, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(40, 16);
			this.label2.TabIndex = 5;
			this.label2.Text = "Class";
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(552, 24);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(56, 24);
			this.button2.TabIndex = 6;
			this.button2.Text = "Close";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// frmAssets
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(640, 293);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.comboBox1);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.dataGrid1);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "frmAssets";
			this.Text = "資產(chǎn)管理";
			this.Load += new System.EventHandler(this.frmAssets_Load);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void button2_Click(object sender, System.EventArgs e)
		{
			this.Close ();

		}

		private void frmAssets_Load(object sender, System.EventArgs e)
		{
			this.InitGrid ();
			this.InitDorpDownList();
			

			this.comboBox1.DataSource = this.listAllAssetsClass().DefaultView ;

			this.comboBox1 .ValueMember = "className";

			this.comboBox1 .Refresh ();

		}
		private void InitDorpDownList()
		{
			AssetsClassDAO dao = new AssetsClassDAO();

			//IList list = dao.listAllAssetsForList();

			//for(int i=0;i<list.Count ;i++)
			//{
				//this.comboBox1 .Items .Add (new Item(list.));
			//}

		}

		
		private  int queryClassID(string className)
		{
			int last = 0;

			Database db = new Database ();

			System.Data .SqlClient .SqlConnection conn;
			System.Data .SqlClient .SqlCommand cmd;
			System.Data .SqlClient .SqlDataReader rs;
			string sql = "";
			try
			{
				conn = db.openConn ();
				cmd = new System.Data.SqlClient.SqlCommand ();
				sql = "select * from assetsClass where  className =  '"+ className +"'  ";
				cmd.CommandText = sql;
				cmd.Connection = conn;

				rs = cmd.ExecuteReader (System.Data .CommandBehavior .CloseConnection );

				while(rs.Read ())
				{
					
					last =Convert.ToInt32 (  rs["ID"].ToString() );

				}
			}
			catch(Exception ex)
			{
				string sm = ex.Message ;
				last = 0;
			}
			finally
			{
				db.closeConn ();
			}

			return last;
		}

		private  int queryWorkID(string className)
		{
			int last = 0;

			Database db = new Database ();

			System.Data .SqlClient .SqlConnection conn;
			System.Data .SqlClient .SqlCommand cmd;
			System.Data .SqlClient .SqlDataReader rs;
			string sql = "";
			try
			{
				conn = db.openConn ();
				cmd = new System.Data.SqlClient.SqlCommand ();
				sql = "select * from worker where  username =  '"+ className +"'  ";
				cmd.CommandText = sql;
				cmd.Connection = conn;

				rs = cmd.ExecuteReader (System.Data .CommandBehavior .CloseConnection );

				while(rs.Read ())
				{
					
					last =Convert.ToInt32 (  rs["ID"].ToString() );

				}
			}
			catch(Exception ex)
			{
				string sm = ex.Message ;
				last = 0;
			}
			finally
			{
				db.closeConn ();
			}

			return last;
		}
		private  DataTable listAllAssetsClass()
		{
			System.Data.SqlClient.SqlConnection conn;		

			SqlDataAdapter dp;
			string sql;
			DataSet ds = new DataSet();
			Database db = new Database();

			DataTable last = new DataTable();
			try
			{
				//sql = "select id,username,realname ,workcode,workage,address from worker  where worktype = '1'";

				sql = "select id,className from assetsClass";

				conn = db.openConn();
				
				dp = new System.Data.SqlClient.SqlDataAdapter(sql,conn);	 
 
				dp.Fill(ds,"worker");

				last = ds.Tables["worker"];

			}
			catch
			{
				last = null;
			}
			finally
			{
				db.closeConn();
			}
			return last;
		}

		private void InitGrid()
		{
			AssetsDAO dao = new  AssetsDAO();

			this.dataGrid1 .DataSource = dao.listAllAssets ();
			this.dataGrid1.Refresh ();


		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			AssetsDAO dao = new  AssetsDAO();

			if(this.textBox1 .Text .Trim () .ToString () == "")
			{
				int classid = this.queryClassID( this.comboBox1 .SelectedValue.ToString ());


				this.dataGrid1 .DataSource = dao.executeSQL (	 "select a.id,a.name,a.code ,w.realname,c.className  from assets as a ,worker as w ,assetsClass as c where  a.workerID = w.ID and a.classID = c.ID  and a.classID = " + classid +" " ).DefaultView ;
				this.dataGrid1.Refresh ();
			}
			else
			{
				int classid = this.queryClassID( this.comboBox1 .SelectedValue.ToString ());

				string name = this.textBox1 .Text .Trim ().ToString ();

				this.dataGrid1 .DataSource = dao.executeSQL (	 "select a.id,a.name,a.code ,w.realname,c.className  from assets as a ,worker as w ,assetsClass as c where  a.workerID = w.ID and a.classID = c.ID  and a.classID = " + classid +"  and  name like  '%"+ name +"%'" ).DefaultView ;
				this.dataGrid1.Refresh ();

			}

			this.textBox1 .Text = "";
			
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国精品久久久| 日韩欧美国产午夜精品| 中文字幕久久午夜不卡| 国产成人免费在线视频| 国产色产综合产在线视频| 成人美女在线观看| 亚洲欧美偷拍三级| 欧美三级蜜桃2在线观看| 日韩av中文在线观看| www日韩大片| 99国产精品99久久久久久| 亚洲h在线观看| 337p日本欧洲亚洲大胆精品| 懂色av中文一区二区三区| 樱花草国产18久久久久| 日韩欧美色综合| 91美女精品福利| 九九**精品视频免费播放| 国产精品美女一区二区| 欧美日韩国产一区| 国产丶欧美丶日本不卡视频| 一区二区在线观看不卡| 精品久久久久久久久久久院品网| 99久久国产免费看| 久久av中文字幕片| 亚洲精品高清视频在线观看| 精品国产一区二区在线观看| av中文字幕亚洲| 日本成人在线视频网站| 亚洲欧洲成人av每日更新| 日韩午夜精品视频| 91免费精品国自产拍在线不卡| 青草av.久久免费一区| 中文字幕视频一区二区三区久| 91精品国产综合久久精品| 99精品在线观看视频| 国产资源在线一区| 亚洲高清视频的网址| 国产精品乱人伦一区二区| 欧美一区二区不卡视频| 色婷婷久久久综合中文字幕| 国产一区二区三区蝌蚪| 午夜激情综合网| 国产精品久久久久久久蜜臀| 日韩久久精品一区| 欧美午夜视频网站| voyeur盗摄精品| 国产一区在线观看麻豆| 免费成人小视频| 天堂在线亚洲视频| 亚洲国产乱码最新视频| 亚洲欧洲日产国产综合网| 久久久久久久久久久久久女国产乱| 欧美久久一区二区| 91黄色免费观看| 99精品久久久久久| 成人黄色网址在线观看| 紧缚奴在线一区二区三区| 青青草国产成人av片免费| 午夜国产精品影院在线观看| 亚洲一区二区三区四区在线观看 | 青青草97国产精品免费观看无弹窗版| 国产精品久久久久四虎| 欧美高清在线视频| 国产午夜精品一区二区三区四区| 日韩欧美国产一区二区在线播放 | 色哟哟亚洲精品| 成人毛片老司机大片| 成人免费视频一区二区| 成人免费av资源| 91视频免费看| 91老师片黄在线观看| 色婷婷亚洲综合| 欧美日韩一区在线| 欧美裸体一区二区三区| 欧美日韩国产高清一区| 91精品国产美女浴室洗澡无遮挡| 欧美一区二区三区精品| 91精品国产手机| 欧美变态凌虐bdsm| 久久婷婷国产综合国色天香| 久久久青草青青国产亚洲免观| 久久综合成人精品亚洲另类欧美| 2024国产精品| 国产精品丝袜久久久久久app| 最新国产成人在线观看| 一区二区三区电影在线播| 五月综合激情网| 精品制服美女丁香| 国产91精品免费| 日本黄色一区二区| 欧美精品乱码久久久久久 | 欧美三级电影精品| 91麻豆精品国产综合久久久久久 | 美日韩一区二区| 国产综合色在线| 99精品久久久久久| 欧美日韩三级一区| 精品福利二区三区| **欧美大码日韩| 三级欧美在线一区| 国产福利电影一区二区三区| 91蝌蚪porny成人天涯| 欧美精选一区二区| 久久久久国产精品厨房| 亚洲精品伦理在线| 久久99热这里只有精品| 成人av在线一区二区| 欧美日韩高清一区二区| 国产欧美日韩久久| 亚洲国产欧美一区二区三区丁香婷 | 欧美性xxxxxxxx| 亚洲精品一区二区三区四区高清| 中文字幕第一区第二区| 日韩不卡手机在线v区| 国产经典欧美精品| 欧美日韩国产精品自在自线| 久久综合久色欧美综合狠狠| 一区二区在线观看免费| 国产乱码精品一区二区三区五月婷| 色综合久久天天| 久久亚洲免费视频| 亚洲成人一区二区在线观看| 国产成人福利片| 欧美一区二区在线免费观看| 最新热久久免费视频| 久久成人精品无人区| 欧美性色欧美a在线播放| 日本一区二区综合亚洲| 美国毛片一区二区三区| 欧美综合久久久| 国产精品亲子伦对白| 另类的小说在线视频另类成人小视频在线 | 亚洲久草在线视频| 国产一区二区三区久久悠悠色av| 欧美高清视频不卡网| 国产精品每日更新在线播放网址| 免播放器亚洲一区| 欧美日韩一本到| 亚洲日本va午夜在线影院| 国产91精品一区二区麻豆网站| 日韩精品一区二区三区老鸭窝| 亚洲二区视频在线| 91麻豆.com| 亚洲欧美一区二区三区孕妇| 成人av在线资源| 中文字幕免费一区| 国产成人免费在线| 久久久精品tv| 国产呦萝稀缺另类资源| 精品99999| 久久99久久精品欧美| 这里只有精品视频在线观看| 五月天欧美精品| 91国内精品野花午夜精品| 亚洲欧美一区二区三区孕妇| 91无套直看片红桃| 日韩一区在线播放| 99视频精品全部免费在线| 中文字幕成人在线观看| 国产美女视频一区| 国产欧美一区二区在线观看| 国产精品一区二区91| 国产欧美日韩激情| 成人av资源下载| 亚洲欧美一区二区久久| 在线视频欧美区| 亚洲444eee在线观看| 91精品国产一区二区| 九色porny丨国产精品| 欧美精品一区二区久久久| 国产一区二区三区黄视频| 国产三级一区二区三区| 99久久久久免费精品国产| 亚洲色欲色欲www| 欧美日韩亚洲另类| 日本aⅴ精品一区二区三区 | 在线不卡中文字幕播放| 日韩精品电影在线观看| 日韩精品一区二区三区蜜臀 | 美国欧美日韩国产在线播放| 精品国产91久久久久久久妲己| 国产成人免费视频网站| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 色综合久久久久| 丝袜诱惑亚洲看片| 精品欧美黑人一区二区三区| 粉嫩嫩av羞羞动漫久久久| 亚洲欧美韩国综合色| 911精品产国品一二三产区| 久久国产精品一区二区| 国产精品久久夜| 欧美亚洲综合色| 久久成人麻豆午夜电影| ㊣最新国产の精品bt伙计久久| 欧美狂野另类xxxxoooo| 国产盗摄一区二区三区| 一区二区免费看| 亚洲精品在线三区| 91麻豆成人久久精品二区三区|