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

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

?? frmkuncun.cs

?? 汽車銷售管理系統,進銷存系統典范,值得初學者多多學習
?? CS
字號:
using System;
using System.Data.SqlClient;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Indispost;

namespace MainPrj_CarShop
{
	/// <summary>
	/// frmKunCun 的摘要說明。
	/// </summary>
	public class frmKunCun : System.Windows.Forms.Form
	{
		private System.Data.SqlClient.SqlConnection _sqlCon;
		private System.Data.DataView _dvKuCun;
		private System.Windows.Forms.DataGrid _dgKuCun;
		private System.Windows.Forms.ToolBar _tbar;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
		private System.Data.SqlClient.SqlDataAdapter _sqlAdapKu;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private MainPrj_CarShop.DSKuCun dsKuCun1;
		private System.Windows.Forms.ImageList imageList1;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.ToolBarButton tbnPre;
		private System.Windows.Forms.ToolBarButton tbnBack;
		private System.Windows.Forms.ToolBarButton tbnReport;
		private CurrencyManager _msg;

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

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

		/// <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(frmKunCun));
			this._sqlAdapKu = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this._sqlCon = new System.Data.SqlClient.SqlConnection();
			this._dvKuCun = new System.Data.DataView();
			this.dsKuCun1 = new MainPrj_CarShop.DSKuCun();
			this._dgKuCun = new System.Windows.Forms.DataGrid();
			this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
			this._tbar = new System.Windows.Forms.ToolBar();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.tbnPre = new System.Windows.Forms.ToolBarButton();
			this.tbnBack = new System.Windows.Forms.ToolBarButton();
			this.tbnReport = new System.Windows.Forms.ToolBarButton();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			((System.ComponentModel.ISupportInitialize)(this._dvKuCun)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dsKuCun1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this._dgKuCun)).BeginInit();
			this.SuspendLayout();
			// 
			// _sqlAdapKu
			// 
			this._sqlAdapKu.SelectCommand = this.sqlSelectCommand1;
			this._sqlAdapKu.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																								 new System.Data.Common.DataTableMapping("Table", "view_CarKuCun", 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("車輛名稱", "車輛名稱"),
																																																				  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("進口證號", "進口證號"),
																																																				  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("采購參考價", "采購參考價"),
																																																				  new System.Data.Common.DataColumnMapping("銷售參考價", "銷售參考價"),
																																																				  new System.Data.Common.DataColumnMapping("備注", "備注")})});
			// 
			// sqlSelectCommand1
			// 
			this.sqlSelectCommand1.CommandText = "SELECT 庫存單號, 入庫日期, 采購單號, 采購日期, 廠商名稱, 車型代碼, 車輛名稱, 車輛類型, 產地, 車輛廠牌名稱, 車輛顏色, 底盤號, 發動機" +
				"號, 合格證號, 進口證號, 商檢單號, 自編號, 鑰匙號, 行駛里程, 出廠日期, 提單號, 進價, 采購參考價, 銷售參考價, 備注 FROM view_C" +
				"arKuCun";
			this.sqlSelectCommand1.Connection = this._sqlCon;
			// 
			// _sqlCon
			// 
			this._sqlCon.ConnectionString = "workstation id=Nebular;packet size=4096;user id=sa;data source=\".\";persist securi" +
				"ty info=False;initial catalog=dbCarsys";
			// 
			// _dvKuCun
			// 
			this._dvKuCun.AllowDelete = false;
			this._dvKuCun.AllowEdit = false;
			this._dvKuCun.AllowNew = false;
			this._dvKuCun.Table = this.dsKuCun1.view_CarKuCun;
			// 
			// dsKuCun1
			// 
			this.dsKuCun1.DataSetName = "DSKuCun";
			this.dsKuCun1.Locale = new System.Globalization.CultureInfo("zh-CN");
			// 
			// _dgKuCun
			// 
			this._dgKuCun.BackColor = System.Drawing.Color.WhiteSmoke;
			this._dgKuCun.DataMember = "";
			this._dgKuCun.DataSource = this._dvKuCun;
			this._dgKuCun.Dock = System.Windows.Forms.DockStyle.Bottom;
			this._dgKuCun.GridLineColor = System.Drawing.Color.DodgerBlue;
			this._dgKuCun.HeaderForeColor = System.Drawing.Color.Blue;
			this._dgKuCun.Location = new System.Drawing.Point(0, 22);
			this._dgKuCun.Name = "_dgKuCun";
			this._dgKuCun.Size = new System.Drawing.Size(672, 432);
			this._dgKuCun.TabIndex = 0;
			this._dgKuCun.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
																								 this.dataGridTableStyle1});
			// 
			// dataGridTableStyle1
			// 
			this.dataGridTableStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
			this.dataGridTableStyle1.DataGrid = this._dgKuCun;
			this.dataGridTableStyle1.GridLineColor = System.Drawing.Color.CornflowerBlue;
			this.dataGridTableStyle1.HeaderBackColor = System.Drawing.Color.WhiteSmoke;
			this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGridTableStyle1.MappingName = "";
			this.dataGridTableStyle1.ReadOnly = true;
			// 
			// _tbar
			// 
			this._tbar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this._tbar.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this._tbar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																					 this.toolBarButton1,
																					 this.toolBarButton2,
																					 this.tbnPre,
																					 this.tbnBack,
																					 this.tbnReport});
			this._tbar.ButtonSize = new System.Drawing.Size(50, 30);
			this._tbar.DropDownArrows = true;
			this._tbar.Font = new System.Drawing.Font("宋體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this._tbar.ImageList = this.imageList1;
			this._tbar.Location = new System.Drawing.Point(0, 0);
			this._tbar.Name = "_tbar";
			this._tbar.ShowToolTips = true;
			this._tbar.Size = new System.Drawing.Size(672, 46);
			this._tbar.TabIndex = 1;
			this._tbar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this._tbar_ButtonClick);
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
			// 
			// tbnPre
			// 
			this.tbnPre.ImageIndex = 0;
			this.tbnPre.Text = "上一條";
			this.tbnPre.ToolTipText = "上一條";
			// 
			// tbnBack
			// 
			this.tbnBack.ImageIndex = 1;
			this.tbnBack.Text = "下一條";
			this.tbnBack.ToolTipText = "下一條";
			// 
			// tbnReport
			// 
			this.tbnReport.ImageIndex = 2;
			this.tbnReport.Text = "報表";
			this.tbnReport.ToolTipText = "報表";
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(20, 20);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// frmKunCun
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.WhiteSmoke;
			this.ClientSize = new System.Drawing.Size(672, 454);
			this.Controls.Add(this._tbar);
			this.Controls.Add(this._dgKuCun);
			this.Name = "frmKunCun";
			this.Text = "庫存車輛";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Resize += new System.EventHandler(this.frmKunCun_Resize);
			this.Load += new System.EventHandler(this.frmKunCun_Load);
			((System.ComponentModel.ISupportInitialize)(this._dvKuCun)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dsKuCun1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this._dgKuCun)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void frmKunCun_Load(object sender, System.EventArgs e)
		{
			try
			{
				if(this.IsMdiChild)
					this.MdiParent.Cursor=Cursors.WaitCursor;
				this._sqlAdapKu.Fill(this.dsKuCun1);
				this._msg=(CurrencyManager)this.BindingContext[this._dvKuCun];
				this._msg.PositionChanged+=new EventHandler(_msg_PositionChanged);
			}
			catch(SqlException ex)
			{
				MessageBox.Show("系統發生一個異常的錯誤!請與管理員聯系。\n"+ex.Message,"系統錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
			}
			catch(Exception ex)
			{
				MessageBox.Show("系統發生一個異常的錯誤!請與管理員聯系。\n"+ex.Message,"系統錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
			}
			finally
			{
				this._sqlCon.Close();
				if(this.IsMdiChild)
					this.MdiParent.Cursor=Cursors.Arrow;
			}
		}

		private void frmKunCun_Resize(object sender, System.EventArgs e)
		{
			try
			{
				this._dgKuCun.Height=this.Height-this._tbar.Height-30;
			}
			catch(Exception ex)
			{
				MessageBox.Show("系統發生一個異常的錯誤!請與管理員聯系。\n"+ex.Message,"系統錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
			}
		}

		private void _tbar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			try
			{
			    ToolBarButton tbb=e.Button;
				if(tbb==this.tbnPre)
				{
					this._msg.Position--;
				}
				else if(tbb==this.tbnBack)
				{
					this._msg.Position++;
				}
				else if(tbb==this.tbnReport)
				{
					Indispost.frmInDepotReport rep=new frmInDepotReport(new TextBox());
					rep.Show();
				}

			}
			catch(Exception ex)
			{
				MessageBox.Show("系統發生一個異常的錯誤!請與管理員聯系。\n"+ex.Message,"系統錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
			}
		}

		private void _msg_PositionChanged(object sender, EventArgs e)
		{
			try
			{
				this._dgKuCun.Focus();
				this._dgKuCun.Expand(this._msg.Position);
				this._dgKuCun.Select(this._msg.Position);
			}catch(Exception ex)
			{
				MessageBox.Show("系統發生一個異常的錯誤!請與管理員聯系。\n"+ex.Message,"系統錯誤",MessageBoxButtons.OK,MessageBoxIcon.Error);
			}
			
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成av人综合在线观看| 国产成人综合在线观看| 国产精品久久久久久福利一牛影视 | 亚洲综合丝袜美腿| 国产午夜亚洲精品午夜鲁丝片| 色狠狠一区二区| 欧美亚洲国产怡红院影院| 色视频成人在线观看免| 欧美三级电影精品| 成人国产一区二区三区精品| 日韩一级免费观看| jlzzjlzz亚洲女人18| av激情综合网| 91精品福利在线一区二区三区| 欧美一a一片一级一片| 欧美精品粉嫩高潮一区二区| 91精品国产91久久久久久最新毛片 | 精品亚洲aⅴ乱码一区二区三区| 午夜精品久久久久久久99樱桃| 丝袜a∨在线一区二区三区不卡| 免费在线看成人av| 国产九九视频一区二区三区| 成人黄色免费短视频| 日本精品一区二区三区四区的功能| 在线视频欧美精品| 精品国产区一区| 国产精品久久久久婷婷| 视频一区国产视频| 成人国产电影网| 欧美日韩视频专区在线播放| 久久久精品2019中文字幕之3| 国产精品久久久久久久蜜臀| 天堂av在线一区| 国产成人亚洲精品青草天美| 在线观看日韩毛片| 久久精品欧美一区二区三区不卡| 亚洲日本成人在线观看| 美国毛片一区二区| 色综合天天综合网天天狠天天| 欧美人狂配大交3d怪物一区| 国产精品日产欧美久久久久| 日产欧产美韩系列久久99| 成人一区二区视频| 日韩精品一区二区三区在线 | 97精品国产露脸对白| 在线播放国产精品二区一二区四区| 久久久蜜臀国产一区二区| 性做久久久久久久久| 国产宾馆实践打屁股91| 欧美精品vⅰdeose4hd| 国产精品夫妻自拍| 国产伦精品一区二区三区免费迷| 日本久久电影网| 国产精品理伦片| 国产盗摄精品一区二区三区在线| 欧美疯狂做受xxxx富婆| 亚洲男人的天堂网| jvid福利写真一区二区三区| 久久噜噜亚洲综合| 久久超碰97中文字幕| 欧美狂野另类xxxxoooo| 一区二区三区中文字幕电影| 成人免费高清视频| 国产日韩综合av| 国产精品一区二区三区99| 精品久久五月天| 日本不卡视频在线| 日韩一区二区三| 午夜精品久久久久久久久久| 欧美在线一二三| 亚洲综合自拍偷拍| 色av成人天堂桃色av| 亚洲男人的天堂av| 在线中文字幕一区| 中文字幕亚洲一区二区va在线| 成人黄色免费短视频| 国产精品久久午夜夜伦鲁鲁| 不卡高清视频专区| 亚洲欧美日韩小说| 欧美在线不卡视频| 午夜精品久久一牛影视| 日韩欧美在线1卡| 玖玖九九国产精品| 26uuu亚洲综合色| 粉嫩欧美一区二区三区高清影视| 久久久国产精品不卡| aaa欧美色吧激情视频| 综合中文字幕亚洲| 欧美亚洲综合一区| 免费国产亚洲视频| 国产日韩在线不卡| 色婷婷av一区二区三区gif| 五月天亚洲精品| 久久免费电影网| 日本久久电影网| 日韩精品国产欧美| 中文字幕欧美日韩一区| av不卡免费电影| 午夜久久久影院| 久久免费看少妇高潮| 91麻豆精品视频| 青青青爽久久午夜综合久久午夜| 26uuu国产日韩综合| 99精品热视频| 日韩精品久久久久久| 欧美国产视频在线| 欧美乱妇一区二区三区不卡视频| 蜜臀a∨国产成人精品| 国产精品麻豆一区二区 | 蜜乳av一区二区三区| 久久精品夜夜夜夜久久| 在线免费观看日本一区| 精品在线一区二区| 亚洲一区二区三区在线看| 日韩视频一区二区三区| 成人动漫av在线| 免费在线看成人av| 一区二区三区四区乱视频| 日韩精品中文字幕在线一区| 一本大道久久a久久综合| 亚洲午夜精品久久久久久久久| 国产一区在线看| 韩国欧美国产一区| **网站欧美大片在线观看| 91精品国产色综合久久久蜜香臀| 国产高清不卡一区| 日韩成人免费电影| 一区二区三区四区国产精品| 国产日韩av一区二区| 日韩欧美中文一区二区| 欧美在线视频你懂得| 99久久伊人久久99| 国产一区不卡视频| 日本中文一区二区三区| 一区二区日韩av| 亚洲视频一二三| 中文欧美字幕免费| 久久精品夜色噜噜亚洲a∨| 日韩久久久精品| 欧美一区二区三级| 欧美久久久久久蜜桃| voyeur盗摄精品| 成年人午夜久久久| 成人av网址在线观看| 风间由美一区二区三区在线观看| 精品一区二区三区av| 奇米一区二区三区av| 免费高清在线一区| 蜜臀av亚洲一区中文字幕| 免费欧美在线视频| 久久国产精品无码网站| 美女网站色91| 韩国精品主播一区二区在线观看| 久久er99热精品一区二区| 日韩国产欧美在线观看| 青青国产91久久久久久| 麻豆专区一区二区三区四区五区| 日本不卡不码高清免费观看| 日本少妇一区二区| 久久精品国产在热久久| 国内精品免费**视频| 狠狠色狠狠色综合系列| 顶级嫩模精品视频在线看| 国产91综合一区在线观看| 波多野结衣的一区二区三区| 91免费国产在线| 欧美日韩国产在线观看| 日韩一级免费一区| 国产女同互慰高潮91漫画| 国产精品国产三级国产aⅴ无密码| 自拍av一区二区三区| 午夜精品在线看| 九九视频精品免费| 波多野结衣在线一区| 欧美三级乱人伦电影| 欧美成人一区二区三区| 中文字幕的久久| 亚洲尤物在线视频观看| 美女尤物国产一区| 成人av中文字幕| 制服.丝袜.亚洲.另类.中文| 久久久久99精品一区| 亚洲黄色片在线观看| 免费在线观看一区| aaa欧美色吧激情视频| 91精品在线麻豆| 日本一区二区视频在线观看| 亚洲成人自拍偷拍| 国产精品影视在线观看| 欧美色图12p| 国产亚洲综合在线| 五月婷婷欧美视频| 丰满少妇在线播放bd日韩电影| 欧美在线你懂得| 国内精品嫩模私拍在线| 欧美视频在线一区二区三区| 丝袜诱惑亚洲看片| 五月婷婷综合激情| 成人激情免费视频| 日韩精品一区二区在线|