📄 orderform.vb
字号:
Imports System.Data.SqlClient
Public Class OrderForm
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents dtPicker As System.Windows.Forms.DateTimePicker
Friend WithEvents tbDate As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents cbGoods As System.Windows.Forms.ComboBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents tbCount As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents tbRemark As System.Windows.Forms.TextBox
Friend WithEvents btBack As System.Windows.Forms.Button
Friend WithEvents btCancel As System.Windows.Forms.Button
Friend WithEvents btOK As System.Windows.Forms.Button
Friend WithEvents dgOrder As System.Windows.Forms.DataGrid
Friend WithEvents DataGridTableStyle1 As System.Windows.Forms.DataGridTableStyle
Friend WithEvents DataGridTextBoxColumn1 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn2 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn3 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn4 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn5 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn6 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents DataGridTextBoxColumn7 As System.Windows.Forms.DataGridTextBoxColumn
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
Friend WithEvents cmOrder As System.Windows.Forms.ContextMenu
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.btBack = New System.Windows.Forms.Button
Me.btCancel = New System.Windows.Forms.Button
Me.btOK = New System.Windows.Forms.Button
Me.Label4 = New System.Windows.Forms.Label
Me.tbRemark = New System.Windows.Forms.TextBox
Me.tbCount = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.cbGoods = New System.Windows.Forms.ComboBox
Me.Label2 = New System.Windows.Forms.Label
Me.dtPicker = New System.Windows.Forms.DateTimePicker
Me.tbDate = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.dgOrder = New System.Windows.Forms.DataGrid
Me.cmOrder = New System.Windows.Forms.ContextMenu
Me.MenuItem1 = New System.Windows.Forms.MenuItem
Me.MenuItem2 = New System.Windows.Forms.MenuItem
Me.DataGridTableStyle1 = New System.Windows.Forms.DataGridTableStyle
Me.DataGridTextBoxColumn1 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn2 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn3 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn4 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn5 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn6 = New System.Windows.Forms.DataGridTextBoxColumn
Me.DataGridTextBoxColumn7 = New System.Windows.Forms.DataGridTextBoxColumn
Me.Label3 = New System.Windows.Forms.Label
Me.GroupBox1.SuspendLayout()
CType(Me.dgOrder, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.btBack)
Me.GroupBox1.Controls.Add(Me.btCancel)
Me.GroupBox1.Controls.Add(Me.btOK)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Controls.Add(Me.tbRemark)
Me.GroupBox1.Controls.Add(Me.tbCount)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.cbGoods)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.dtPicker)
Me.GroupBox1.Controls.Add(Me.tbDate)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Location = New System.Drawing.Point(488, 40)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(200, 224)
Me.GroupBox1.TabIndex = 1
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "增加订单"
'
'btBack
'
Me.btBack.Location = New System.Drawing.Point(72, 184)
Me.btBack.Name = "btBack"
Me.btBack.Size = New System.Drawing.Size(48, 23)
Me.btBack.TabIndex = 30
Me.btBack.Text = "还原"
'
'btCancel
'
Me.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btCancel.Location = New System.Drawing.Point(128, 184)
Me.btCancel.Name = "btCancel"
Me.btCancel.Size = New System.Drawing.Size(48, 23)
Me.btCancel.TabIndex = 29
Me.btCancel.Text = "退出"
'
'btOK
'
Me.btOK.Location = New System.Drawing.Point(16, 184)
Me.btOK.Name = "btOK"
Me.btOK.Size = New System.Drawing.Size(48, 23)
Me.btOK.TabIndex = 28
Me.btOK.Text = "增加"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(8, 144)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 23)
Me.Label4.TabIndex = 27
Me.Label4.Text = "备注"
Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'tbRemark
'
Me.tbRemark.Location = New System.Drawing.Point(72, 144)
Me.tbRemark.Name = "tbRemark"
Me.tbRemark.Size = New System.Drawing.Size(112, 21)
Me.tbRemark.TabIndex = 26
Me.tbRemark.Text = ""
'
'tbCount
'
Me.tbCount.Location = New System.Drawing.Point(72, 112)
Me.tbCount.Name = "tbCount"
Me.tbCount.Size = New System.Drawing.Size(48, 21)
Me.tbCount.TabIndex = 25
Me.tbCount.Text = ""
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(8, 112)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 23)
Me.Label6.TabIndex = 24
Me.Label6.Text = "数量"
Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'cbGoods
'
Me.cbGoods.Location = New System.Drawing.Point(72, 80)
Me.cbGoods.Name = "cbGoods"
Me.cbGoods.Size = New System.Drawing.Size(88, 20)
Me.cbGoods.TabIndex = 7
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(8, 80)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(56, 23)
Me.Label2.TabIndex = 6
Me.Label2.Text = "商品"
Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'dtPicker
'
Me.dtPicker.Location = New System.Drawing.Point(72, 48)
Me.dtPicker.Name = "dtPicker"
Me.dtPicker.Size = New System.Drawing.Size(120, 21)
Me.dtPicker.TabIndex = 5
'
'tbDate
'
Me.tbDate.Location = New System.Drawing.Point(72, 24)
Me.tbDate.Name = "tbDate"
Me.tbDate.ReadOnly = True
Me.tbDate.Size = New System.Drawing.Size(64, 21)
Me.tbDate.TabIndex = 4
Me.tbDate.Text = ""
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 24)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(56, 23)
Me.Label1.TabIndex = 3
Me.Label1.Text = "日期"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'dgOrder
'
Me.dgOrder.ContextMenu = Me.cmOrder
Me.dgOrder.DataMember = ""
Me.dgOrder.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgOrder.Location = New System.Drawing.Point(10, 10)
Me.dgOrder.Name = "dgOrder"
Me.dgOrder.ReadOnly = True
Me.dgOrder.Size = New System.Drawing.Size(470, 254)
Me.dgOrder.TabIndex = 2
Me.dgOrder.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
'
'cmOrder
'
Me.cmOrder.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem1, Me.MenuItem2})
'
'MenuItem1
'
Me.MenuItem1.Index = 0
Me.MenuItem1.Text = "修改订单状态"
'
'MenuItem2
'
Me.MenuItem2.Index = 1
Me.MenuItem2.Text = "修改备注"
'
'DataGridTableStyle1
'
Me.DataGridTableStyle1.DataGrid = Me.dgOrder
Me.DataGridTableStyle1.GridColumnStyles.AddRange(New System.Windows.Forms.DataGridColumnStyle() {Me.DataGridTextBoxColumn1, Me.DataGridTextBoxColumn2, Me.DataGridTextBoxColumn3, Me.DataGridTextBoxColumn4, Me.DataGridTextBoxColumn5, Me.DataGridTextBoxColumn6, Me.DataGridTextBoxColumn7})
Me.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGridTableStyle1.MappingName = ""
'
'DataGridTextBoxColumn1
'
Me.DataGridTextBoxColumn1.Format = ""
Me.DataGridTextBoxColumn1.FormatInfo = Nothing
Me.DataGridTextBoxColumn1.HeaderText = "编号"
Me.DataGridTextBoxColumn1.MappingName = "ORDERNO"
Me.DataGridTextBoxColumn1.Width = 50
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -