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

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

?? stokerdatamanage.cs

?? 進銷存管理(水晶報表) "商品信息維護" "供貨商信息維護" "進貨管理" "進貨單" "銷售管理" "銷售單" "庫存管理" "庫存查詢" "系統管理" "權限管理"
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace 進銷存管理系統
{
	/// <summary>
	/// StokerDataManage 的摘要說明。
	/// </summary>
	public class StokerDataManage : System.Windows.Forms.Form
	{
		private DataSet ds = new DataSet();
		private LinkDataBase link = new LinkDataBase();	
		private string sendTableName = "供貨商清單";
		private string sendStrSQL = "SELECT 供貨商號, 拼音編碼, 名稱, 業務員, 電話, 地址, 郵編, 區號, 地區, 類型, 傳真, 電報, 開戶行, 開戶行郵編, 銀行帳號, 稅號, 庫房地址, 庫房電話, 業務部門 FROM 供貨商清單";

		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt_WareWord;
		private System.Windows.Forms.Button btn_Search;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ToolBarButton tbarBtnSave;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.ToolBarButton tbarBtnDelete;
		private System.Windows.Forms.DataGrid dgrd_StockerData;
		private System.ComponentModel.IContainer components;

		public StokerDataManage()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		//---------------重載構造函數-------------
		public StokerDataManage(bool blShowToolBar)
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
			this.ds = this.link.SelectDataBase(sendStrSQL,sendTableName);
			this.dgrd_StockerData.DataSource = ds;
			this.dgrd_StockerData.DataMember = sendTableName;
			//如果blToolBarShow為false,則表示該窗體使由銷售單和進貨單雙擊時生成
			this.DataGridStateControl(blShowToolBar); 
			this.toolBar1.Enabled = blShowToolBar;
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(StokerDataManage));
			this.dgrd_StockerData = new System.Windows.Forms.DataGrid();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txt_WareWord = new System.Windows.Forms.TextBox();
			this.btn_Search = new System.Windows.Forms.Button();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.tbarBtnSave = new System.Windows.Forms.ToolBarButton();
			this.tbarBtnDelete = new System.Windows.Forms.ToolBarButton();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			((System.ComponentModel.ISupportInitialize)(this.dgrd_StockerData)).BeginInit();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// dgrd_StockerData
			// 
			this.dgrd_StockerData.AllowSorting = false;
			this.dgrd_StockerData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.dgrd_StockerData.CaptionVisible = false;
			this.dgrd_StockerData.DataMember = "";
			this.dgrd_StockerData.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgrd_StockerData.Location = new System.Drawing.Point(0, 75);
			this.dgrd_StockerData.Name = "dgrd_StockerData";
			this.dgrd_StockerData.Size = new System.Drawing.Size(720, 349);
			this.dgrd_StockerData.TabIndex = 3;
			this.dgrd_StockerData.DoubleClick += new System.EventHandler(this.dgrd_StockerData_DoubleClick);
			// 
			// groupBox1
			// 
			this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.txt_WareWord);
			this.groupBox1.Controls.Add(this.btn_Search);
			this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.groupBox1.Location = new System.Drawing.Point(1, 23);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(718, 50);
			this.groupBox1.TabIndex = 8;
			this.groupBox1.TabStop = false;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(154, 18);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 16);
			this.label1.TabIndex = 9;
			this.label1.Text = "供貨商拼音:";
			// 
			// txt_WareWord
			// 
			this.txt_WareWord.Anchor = System.Windows.Forms.AnchorStyles.Top;
			this.txt_WareWord.Location = new System.Drawing.Point(245, 14);
			this.txt_WareWord.Name = "txt_WareWord";
			this.txt_WareWord.Size = new System.Drawing.Size(248, 21);
			this.txt_WareWord.TabIndex = 1;
			this.txt_WareWord.Text = "";
			// 
			// btn_Search
			// 
			this.btn_Search.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btn_Search.Location = new System.Drawing.Point(517, 13);
			this.btn_Search.Name = "btn_Search";
			this.btn_Search.Size = new System.Drawing.Size(48, 24);
			this.btn_Search.TabIndex = 2;
			this.btn_Search.Text = "查詢";
			this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
			// 
			// toolBar1
			// 
			this.toolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.tbarBtnSave,
																						this.tbarBtnDelete});
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList1;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(720, 29);
			this.toolBar1.TabIndex = 9;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// tbarBtnSave
			// 
			this.tbarBtnSave.ImageIndex = 0;
			this.tbarBtnSave.ToolTipText = "保存修改";
			// 
			// tbarBtnDelete
			// 
			this.tbarBtnDelete.ImageIndex = 1;
			this.tbarBtnDelete.ToolTipText = "刪除數據";
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// StokerDataManage
			// 
			this.AcceptButton = this.btn_Search;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(720, 421);
			this.Controls.Add(this.toolBar1);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.dgrd_StockerData);
			this.Name = "StokerDataManage";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "【供貨商信息維護】";
			((System.ComponentModel.ISupportInitialize)(this.dgrd_StockerData)).EndInit();
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		//-----------根據輸入的供貨商拼音搜索供貨商信息----------
		private void btn_Search_Click(object sender, System.EventArgs e)
		{
			string strSpellWord = this.txt_WareWord.Text.Trim();
			string tempStrSQL = "select * from 供貨商清單 where 拼音編碼 like '" + strSpellWord + "%'";
			this.link.SelectDataBase(tempStrSQL,sendTableName);	
		}

		//-----------向服務器提交修改--------------
		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if (e.Button.ToolTipText == "保存修改")
			{
				try
				{
					int row = this.dgrd_StockerData.CurrentCell.RowNumber;
					//將當前所在行往下移動一行,為便于實現同步保存
					//(否則會出現修改的最后一行無法保存,因為它還處于編輯狀態)
					this.dgrd_StockerData.CurrentCell = new DataGridCell(row+1,0); 
					if (this.ds.HasChanges())
					{
						this.link.UpdateDataBase(this.ds.GetChanges(),sendTableName);
						MessageBox.Show("數據修改成功!","信息");
					}
					else
					{
						MessageBox.Show("沒有修改的數據!");
						return;
					}
				}
				catch
				{
					MessageBox.Show("數據保存失敗,請確認所有信息輸入完整且正確!","提示");
					return;
				}
			}

			if (e.Button.ToolTipText == "刪除數據")
			{
				if (MessageBox.Show("確實要刪除這條記錄嗎?","詢問",MessageBoxButtons.YesNo) == DialogResult.Yes)
				{
					int intRowNumber = this.dgrd_StockerData.CurrentCell.RowNumber;
					try
					{
						this.ds.Tables[0].Rows[intRowNumber].Delete();
						this.link.UpdateDataBase(this.ds.GetChanges(),sendTableName);
						MessageBox.Show("數據刪除成功!","信息");
					
					}
					catch
					{
						MessageBox.Show("該數據不能刪除!","提示");
						string tempStrSQL = "select * from " + sendTableName;
						this.link.SelectDataBase(tempStrSQL,sendTableName);
						return;
					}
				}
			}		
		}

		//------------設置表格格式-----------
		private void DataGridStateControl(bool blReadOnly)
		{
			DataGridTableStyle ts = new DataGridTableStyle();
			ts.AlternatingBackColor = Color.LightGray;
			ts.MappingName = this.ds.Tables[0].TableName;
			ts.AllowSorting = false;
			int numCols = this.ds.Tables[0].Columns.Count;
			for (int i = 0;i< numCols;i++)
			{
				if (blReadOnly == true)
				{
					if ( i == 3)//設置【業務員】字段下拉列表框顯示
					{
						DataTable tempTable = new DataTable();
						tempTable = this.link.SelectDataBase("select 姓名 from 業務員清單");
						DataGridComboBoxColumn aComboBoxColumn = new DataGridComboBoxColumn(tempTable,0,0);
						aComboBoxColumn.MappingName = this.ds.Tables[0].Columns[i].ColumnName;
						aComboBoxColumn.HeaderText = this.ds.Tables[0].Columns[i].ColumnName;
						aComboBoxColumn.NullText = "";
						ts.GridColumnStyles.Add(aComboBoxColumn);
					}
					else
					{

						DataGridTextBoxColumn aColumnTextColumn = new DataGridTextBoxColumn();
						aColumnTextColumn.MappingName = this.ds.Tables[0].Columns[i].ColumnName;
						aColumnTextColumn.HeaderText = this.ds.Tables[0].Columns[i].ColumnName;
						aColumnTextColumn.NullText = "";
						aColumnTextColumn.Format = "F";
						ts.GridColumnStyles.Add(aColumnTextColumn);
					}
				}
				else
				{
					DataGridNoActiveCellColumn	aColumnTextColumn = new DataGridNoActiveCellColumn();
					aColumnTextColumn.MappingName = this.ds.Tables[0].Columns[i].ColumnName;
					aColumnTextColumn.HeaderText = this.ds.Tables[0].Columns[i].ColumnName;
					aColumnTextColumn.NullText = "";
					aColumnTextColumn.Format = "F";
					ts.GridColumnStyles.Add(aColumnTextColumn);
				}
			}
			this.dgrd_StockerData.TableStyles.Add(ts);
		}
		
		//----------其他窗體調用,雙擊選擇供貨商信息并回送到調用的窗體-------------
		private void dgrd_StockerData_DoubleClick(object sender, System.EventArgs e)
		{
			if (this.dgrd_StockerData.ReadOnly == true) //判斷如果是在進貨單中生成的窗體則不響應DataGrid的雙擊事件
			{
				int intCurrentRowNumber = this.dgrd_StockerData.CurrentCell.RowNumber;
				string sendStokerID,sendStokerName;
				sendStokerID = this.dgrd_StockerData[intCurrentRowNumber,0].ToString().Trim();
				sendStokerName = this.dgrd_StockerData[intCurrentRowNumber,2].ToString().Trim();
				string [] sendArray = new string [] {sendStokerID,sendStokerName};
				StockTable.inputTextDataArray[0] = sendArray[0];
				StockTable.inputTextDataArray[1] = sendArray[1];
				this.Close();
			}
		}

		public void setDataGridReadOnly()
		{
			this.dgrd_StockerData.ReadOnly = true;
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久久精品| 国产日韩精品一区二区浪潮av| 欧美sm美女调教| 综合久久久久久| 精品在线免费观看| 欧美少妇性性性| 国产精品国产自产拍高清av王其 | 国产欧美精品区一区二区三区| 亚洲女人****多毛耸耸8| 国产精品系列在线观看| 欧美一区二区三区日韩视频| 亚洲综合在线观看视频| 成人在线视频首页| 亚洲精品一区二区三区在线观看| 亚洲国产精品久久艾草纯爱| 色偷偷久久人人79超碰人人澡| 国产欧美日产一区| 国产成人自拍在线| 久久婷婷色综合| 国产综合久久久久久久久久久久| 欧美精品1区2区3区| 图片区小说区国产精品视频| 91福利视频网站| 亚洲精品免费播放| 92国产精品观看| 亚洲欧美日韩国产综合| 91在线观看地址| 亚洲日穴在线视频| 91丝袜呻吟高潮美腿白嫩在线观看| 中文字幕不卡的av| www.欧美精品一二区| 中文字幕日韩一区二区| 99久久国产免费看| 亚洲男人天堂一区| 欧美日韩一区二区三区四区五区| 一区二区三区高清在线| 欧美三级蜜桃2在线观看| 婷婷久久综合九色综合伊人色| 欧美日韩国产色站一区二区三区| 图片区小说区区亚洲影院| 91精品中文字幕一区二区三区| 五月综合激情婷婷六月色窝| 日韩色视频在线观看| 国产一区二区调教| 欧美激情一二三区| 91在线一区二区三区| 亚洲一区二区三区视频在线播放| 欧美中文字幕久久| 免费观看久久久4p| 久久精品人人做人人爽97| 9i在线看片成人免费| 亚洲综合另类小说| 日韩精品一区二区三区老鸭窝| 国产精品一区二区久久不卡| 久久精品视频一区二区| 91视频在线观看免费| 亚洲综合免费观看高清在线观看| 日韩午夜激情电影| 国产成人在线影院 | 亚洲成人av中文| 欧美成人精品3d动漫h| 大尺度一区二区| 亚洲精品国产a| 欧美videos中文字幕| av电影在线观看完整版一区二区| 亚洲综合999| 久久先锋资源网| 在线免费观看日本一区| 国产一区不卡精品| 亚洲韩国一区二区三区| 久久九九99视频| 欧美区视频在线观看| 成人av资源在线| 麻豆视频观看网址久久| 亚洲欧美日韩国产中文在线| 欧美精品一区二区久久婷婷| 91黄色免费观看| 成人美女视频在线观看18| 天天av天天翘天天综合网 | 日韩精品一区二区三区三区免费| 成人免费的视频| 免费观看在线色综合| 亚洲猫色日本管| 久久这里只有精品视频网| 欧洲av在线精品| 福利一区福利二区| 精品午夜一区二区三区在线观看 | 色婷婷综合久久久中文一区二区 | 国产欧美日韩综合精品一区二区| 7777精品伊人久久久大香线蕉的| 99视频一区二区三区| 国产毛片精品国产一区二区三区| 日韩经典一区二区| 亚洲综合色在线| 国产精品理论片| 欧美精品一区二区三区四区 | 精品999在线播放| 欧美色老头old∨ideo| 北岛玲一区二区三区四区| 国产精品夜夜嗨| 91久久国产最好的精华液| 国产99久久久精品| 激情综合色综合久久| 久久狠狠亚洲综合| 久久精品噜噜噜成人av农村| 日韩在线播放一区二区| 午夜精品久久久久| 午夜亚洲国产au精品一区二区 | 国产亚洲福利社区一区| 欧美精品一区二区三区四区| 欧美一级高清片| 日韩午夜激情av| 精品国产青草久久久久福利| 日韩欧美123| 欧美成人福利视频| 精品乱人伦一区二区三区| 日韩三级伦理片妻子的秘密按摩| 日韩午夜激情av| 精品捆绑美女sm三区| 欧美www视频| 久久影院午夜片一区| 久久久不卡影院| 国产精品国产自产拍高清av| 亚洲色欲色欲www在线观看| 中文字幕日韩一区| 亚洲激情成人在线| 日本中文一区二区三区| 久久国产日韩欧美精品| 国产成人亚洲综合色影视| 成人午夜在线视频| 91在线码无精品| 欧美在线观看视频一区二区| 91精品国产手机| 久久久久久99久久久精品网站| 国产精品久久久久影视| 亚洲一区二区在线播放相泽 | 精品国产乱码久久久久久久久| 精品乱码亚洲一区二区不卡| 久久精品视频一区二区| 中文字幕中文在线不卡住| 亚洲一级二级在线| 国内外成人在线| av亚洲精华国产精华精华 | 日韩av电影免费观看高清完整版| 久久黄色级2电影| 91在线观看高清| 欧美一区二区三区系列电影| 欧美韩国日本不卡| 三级在线观看一区二区 | 欧美性生交片4| 26uuu精品一区二区| 亚洲精品视频在线看| 日韩av高清在线观看| 成人午夜免费电影| 欧美二区三区的天堂| 欧美激情一区二区三区在线| 午夜欧美视频在线观看| 成人美女在线观看| 日韩欧美中文一区| 亚洲精品中文在线| 国产一区二区在线观看免费| 欧美性大战xxxxx久久久| 国产日本欧美一区二区| 日韩中文字幕亚洲一区二区va在线| 国产69精品久久99不卡| 91精品国产综合久久久久久久久久 | 丁香桃色午夜亚洲一区二区三区| 欧美日韩国产色站一区二区三区| 国产精品天干天干在线综合| 麻豆成人av在线| 欧美日韩电影在线| 亚洲欧洲精品一区二区三区不卡| 韩国成人福利片在线播放| 欧美日韩一区二区三区免费看| 国产精品美女久久福利网站| 国产一区日韩二区欧美三区| 91麻豆精品国产91久久久久| 亚洲国产成人精品视频| 色婷婷精品大在线视频| 国产精品伦理在线| 国产传媒一区在线| 日韩午夜在线播放| 日韩影视精彩在线| 欧美日韩你懂的| 亚洲久本草在线中文字幕| 99久久精品免费看| 国产精品久久久久永久免费观看 | 亚洲美女电影在线| av不卡在线观看| 国产亚洲欧美在线| 黑人精品欧美一区二区蜜桃| 91精品在线麻豆| 秋霞成人午夜伦在线观看| 欧美色视频在线观看| 亚洲影院久久精品| 欧美精品99久久久**| 青青草国产成人av片免费| 欧美日韩一级二级三级| 日本一不卡视频| 日韩限制级电影在线观看|