⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderform_form.cs

📁 第三方物流信息管理平台 1、数据库配置: 需要打开MS SQL SERVER 2000企业管理器
💻 CS
📖 第 1 页 / 共 3 页
字号:
			// label19
			// 
			this.label19.Location = new System.Drawing.Point(16, 64);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(64, 16);
			this.label19.TabIndex = 8;
			this.label19.Text = "货物体积";
			// 
			// comboBox5
			// 
			this.comboBox5.Location = new System.Drawing.Point(800, 24);
			this.comboBox5.Name = "comboBox5";
			this.comboBox5.Size = new System.Drawing.Size(136, 20);
			this.comboBox5.TabIndex = 7;
			// 
			// comboBox4
			// 
			this.comboBox4.Location = new System.Drawing.Point(560, 24);
			this.comboBox4.Name = "comboBox4";
			this.comboBox4.Size = new System.Drawing.Size(136, 20);
			this.comboBox4.TabIndex = 6;
			// 
			// comboBox3
			// 
			this.comboBox3.Location = new System.Drawing.Point(328, 24);
			this.comboBox3.Name = "comboBox3";
			this.comboBox3.Size = new System.Drawing.Size(136, 20);
			this.comboBox3.TabIndex = 5;
			// 
			// textBox13
			// 
			this.textBox13.Location = new System.Drawing.Point(80, 24);
			this.textBox13.Name = "textBox13";
			this.textBox13.Size = new System.Drawing.Size(160, 21);
			this.textBox13.TabIndex = 4;
			this.textBox13.Text = "";
			// 
			// label18
			// 
			this.label18.Location = new System.Drawing.Point(728, 32);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(64, 16);
			this.label18.TabIndex = 3;
			this.label18.Text = "包装单位";
			// 
			// label17
			// 
			this.label17.Location = new System.Drawing.Point(488, 32);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(64, 16);
			this.label17.TabIndex = 2;
			this.label17.Text = "货物类型";
			// 
			// label16
			// 
			this.label16.Location = new System.Drawing.Point(256, 32);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(64, 16);
			this.label16.TabIndex = 1;
			this.label16.Text = "货物性质";
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(16, 32);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(64, 16);
			this.label15.TabIndex = 0;
			this.label15.Text = "货物名称";
			// 
			// toolBar1
			// 
			this.toolBar1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.toolBarButton1,
																						this.toolBarButton2,
																						this.toolBarButton3,
																						this.toolBarButton4});
			this.toolBar1.ButtonSize = new System.Drawing.Size(50, 30);
			this.toolBar1.Dock = System.Windows.Forms.DockStyle.None;
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList1;
			this.toolBar1.Location = new System.Drawing.Point(376, 408);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(200, 33);
			this.toolBar1.TabIndex = 3;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 0;
			this.toolBarButton1.ToolTipText = "首记录";
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 1;
			this.toolBarButton2.ToolTipText = "上一个记录";
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 2;
			this.toolBarButton3.ToolTipText = "下一个记录";
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 3;
			this.toolBarButton4.ToolTipText = "末记录";
			// 
			// imageList1
			// 
			this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
			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;
			// 
			// dataGrid1
			// 
			this.dataGrid1.CaptionVisible = false;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(16, 440);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.Size = new System.Drawing.Size(976, 256);
			this.dataGrid1.TabIndex = 4;
			// 
			// label25
			// 
			this.label25.Location = new System.Drawing.Point(184, 64);
			this.label25.Name = "label25";
			this.label25.Size = new System.Drawing.Size(24, 24);
			this.label25.TabIndex = 20;
			this.label25.Text = "m3";
			this.label25.Click += new System.EventHandler(this.label25_Click);
			// 
			// label26
			// 
			this.label26.Location = new System.Drawing.Point(576, 64);
			this.label26.Name = "label26";
			this.label26.Size = new System.Drawing.Size(8, 20);
			this.label26.TabIndex = 21;
			this.label26.Text = "m";
			// 
			// label27
			// 
			this.label27.Location = new System.Drawing.Point(848, 72);
			this.label27.Name = "label27";
			this.label27.Size = new System.Drawing.Size(24, 16);
			this.label27.TabIndex = 22;
			this.label27.Text = "吨";
			// 
			// orderform_Form
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(1012, 713);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.dataGrid1,
																		  this.toolBar1,
																		  this.groupBox3,
																		  this.groupBox2,
																		  this.groupBox1});
			this.Name = "orderform_Form";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "orderform_Form";
			this.Load += new System.EventHandler(this.orderform_Form_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void DataGridStateControl()
		{
			
			DataGridTableStyle ts = new DataGridTableStyle();
			ts.AlternatingBackColor = Color.LightGray;
			ts.MappingName = this.ds.Tables[0].TableName;
			ts.AllowSorting = false;
			this.dataGrid1.TableStyles.Add(ts);
		}

		private void DataBingingsFunction()
		{
			this.textBox1.DataBindings.Add("Text",ds.Tables[0],"订单编号");

			this.textBox2.DataBindings.Add("Text",ds.Tables[0],"始发地");

			this.textBox3.DataBindings.Add("Text",ds.Tables[0],"目的地");

			this.textBox4.DataBindings.Add("Text",ds.Tables[0],"运输时间");

			this.textBox5.DataBindings.Add("Text",ds.Tables[0],"发货联系人1");

			this.textBox6.DataBindings.Add("Text",ds.Tables[0],"发货联系人2");

			this.textBox7.DataBindings.Add("Text",ds.Tables[0],"发货联系电话");

			this.textBox8.DataBindings.Add("Text",ds.Tables[0],"发货地址");

			this.textBox9.DataBindings.Add("Text",ds.Tables[0],"收货联系人1");

			this.textBox10.DataBindings.Add("Text",ds.Tables[0],"收货联系人2");

			this.textBox11.DataBindings.Add("Text",ds.Tables[0],"收货联系电话");

			this.textBox12.DataBindings.Add("Text",ds.Tables[0],"收货地址");

			this.textBox13.DataBindings.Add("Text",ds.Tables[0],"货物名称");

			this.textBox14.DataBindings.Add("Text",ds.Tables[0],"货物体积");

			this.textBox15.DataBindings.Add("Text",ds.Tables[0],"货物_长");

			this.textBox16.DataBindings.Add("Text",ds.Tables[0],"货物_宽");

			this.textBox17.DataBindings.Add("Text",ds.Tables[0],"货物_高");

			this.textBox18.DataBindings.Add("Text",ds.Tables[0],"货物重量");

			this.textBox19.DataBindings.Add("Text",ds.Tables[0],"货物描述");

			this.comboBox1.DataBindings.Add("Text",ds.Tables[0],"运输类型");

			this.comboBox2.DataBindings.Add("Text",ds.Tables[0],"运输方式");

			this.comboBox3.DataBindings.Add("Text",ds.Tables[0],"货物性质");

			this.comboBox4.DataBindings.Add("Text",ds.Tables[0],"货物类型");

			this.comboBox5.DataBindings.Add("Text",ds.Tables[0],"包装单位");


		}

		private void orderform_Form_Load(object sender, System.EventArgs e)
		{
		
		}

		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if (e.Button.ToolTipText == "首记录")
			{
				this.dataGrid1.UnSelect(cmAmend.Position); //取消选中指定行
				cmAmend.Position = 0;
				this.dataGrid1.Select(cmAmend.Position);       //选中指定行
				this.dataGrid1.CurrentRowIndex = cmAmend.Position; //移动表头指示图标
				return;
			}
			if (e.Button.ToolTipText == "上一个记录")
			{
				if (cmAmend.Position > 0)
				{
					this.dataGrid1.UnSelect(cmAmend.Position); 
					cmAmend.Position--;
					this.dataGrid1.Select(cmAmend.Position);      
					this.dataGrid1.CurrentRowIndex = cmAmend.Position; 
				}
				return;
			}
			if (e.Button.ToolTipText == "下一个记录")
			{
				if (cmAmend.Position < cmAmend.Count-1)
				{
					this.dataGrid1.UnSelect(cmAmend.Position); 
					cmAmend.Position++;
					this.dataGrid1.Select(cmAmend.Position);       
					this.dataGrid1.CurrentRowIndex = cmAmend.Position; 
				}
				return;
			}
			if (e.Button.ToolTipText == "末记录")
			{
				this.dataGrid1.UnSelect(cmAmend.Position); 
				cmAmend.Position = cmAmend.Count-1;
				this.dataGrid1.Select(cmAmend.Position);       
				this.dataGrid1.CurrentRowIndex = cmAmend.Position; 
				return;
			}
		}

		private void label25_Click(object sender, System.EventArgs e)
		{
		
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -