📄 goodsform.vb
字号:
Imports System.Data.SqlClient
Public Class GoodsForm
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 dgGoods 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 GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents tbName As System.Windows.Forms.TextBox
Friend WithEvents btCancel As System.Windows.Forms.Button
Friend WithEvents btOK As System.Windows.Forms.Button
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents rbAdd As System.Windows.Forms.RadioButton
Friend WithEvents rbMod As System.Windows.Forms.RadioButton
Friend WithEvents btBack As System.Windows.Forms.Button
Friend WithEvents cbFac As System.Windows.Forms.ComboBox
Friend WithEvents tbType As System.Windows.Forms.TextBox
Friend WithEvents tbPrice As System.Windows.Forms.TextBox
Friend WithEvents tbRemark As System.Windows.Forms.TextBox
Friend WithEvents cbCurrency As System.Windows.Forms.ComboBox
Friend WithEvents cmGoods As System.Windows.Forms.ContextMenu
Friend WithEvents eItemMod As System.Windows.Forms.MenuItem
Friend WithEvents ToolTip1 As System.Windows.Forms.ToolTip
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents lbNo As System.Windows.Forms.Label
Friend WithEvents cbSort As System.Windows.Forms.ComboBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.dgGoods = New System.Windows.Forms.DataGrid
Me.cmGoods = New System.Windows.Forms.ContextMenu
Me.eItemMod = 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.GroupBox1 = New System.Windows.Forms.GroupBox
Me.cbSort = New System.Windows.Forms.ComboBox
Me.lbNo = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.btBack = New System.Windows.Forms.Button
Me.btCancel = New System.Windows.Forms.Button
Me.btOK = New System.Windows.Forms.Button
Me.tbRemark = New System.Windows.Forms.TextBox
Me.cbCurrency = New System.Windows.Forms.ComboBox
Me.tbPrice = New System.Windows.Forms.TextBox
Me.tbType = New System.Windows.Forms.TextBox
Me.cbFac = New System.Windows.Forms.ComboBox
Me.tbName = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.rbMod = New System.Windows.Forms.RadioButton
Me.rbAdd = New System.Windows.Forms.RadioButton
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
CType(Me.dgGoods, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'dgGoods
'
Me.dgGoods.ContextMenu = Me.cmGoods
Me.dgGoods.DataMember = ""
Me.dgGoods.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgGoods.Location = New System.Drawing.Point(10, 10)
Me.dgGoods.Name = "dgGoods"
Me.dgGoods.ReadOnly = True
Me.dgGoods.Size = New System.Drawing.Size(574, 254)
Me.dgGoods.TabIndex = 0
Me.dgGoods.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
Me.ToolTip1.SetToolTip(Me.dgGoods, "选中一行,右键修改就可以取得当前行数据")
'
'cmGoods
'
Me.cmGoods.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.eItemMod})
'
'eItemMod
'
Me.eItemMod.Index = 0
Me.eItemMod.Text = "修改"
'
'DataGridTableStyle1
'
Me.DataGridTableStyle1.DataGrid = Me.dgGoods
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 = "CATEGORYNO"
Me.DataGridTextBoxColumn1.Width = 75
'
'DataGridTextBoxColumn2
'
Me.DataGridTextBoxColumn2.Format = ""
Me.DataGridTextBoxColumn2.FormatInfo = Nothing
Me.DataGridTextBoxColumn2.HeaderText = "商品名称"
Me.DataGridTextBoxColumn2.MappingName = "CATEGORYNAME"
Me.DataGridTextBoxColumn2.Width = 75
'
'DataGridTextBoxColumn3
'
Me.DataGridTextBoxColumn3.Format = ""
Me.DataGridTextBoxColumn3.FormatInfo = Nothing
Me.DataGridTextBoxColumn3.HeaderText = "商品类别"
Me.DataGridTextBoxColumn3.MappingName = "SORTNAME"
Me.DataGridTextBoxColumn3.Width = 75
'
'DataGridTextBoxColumn4
'
Me.DataGridTextBoxColumn4.Format = ""
Me.DataGridTextBoxColumn4.FormatInfo = Nothing
Me.DataGridTextBoxColumn4.HeaderText = "厂商名称"
Me.DataGridTextBoxColumn4.MappingName = "FACTORYNAME"
Me.DataGridTextBoxColumn4.Width = 75
'
'DataGridTextBoxColumn5
'
Me.DataGridTextBoxColumn5.Format = ""
Me.DataGridTextBoxColumn5.FormatInfo = Nothing
Me.DataGridTextBoxColumn5.HeaderText = "型号"
Me.DataGridTextBoxColumn5.MappingName = "TYPE"
Me.DataGridTextBoxColumn5.Width = 75
'
'DataGridTextBoxColumn6
'
Me.DataGridTextBoxColumn6.Format = ""
Me.DataGridTextBoxColumn6.FormatInfo = Nothing
Me.DataGridTextBoxColumn6.HeaderText = "价格"
Me.DataGridTextBoxColumn6.MappingName = "PRICE_NEW"
Me.DataGridTextBoxColumn6.Width = 110
'
'DataGridTextBoxColumn7
'
Me.DataGridTextBoxColumn7.Format = ""
Me.DataGridTextBoxColumn7.FormatInfo = Nothing
Me.DataGridTextBoxColumn7.HeaderText = "备注"
Me.DataGridTextBoxColumn7.MappingName = "REMARK"
Me.DataGridTextBoxColumn7.Width = 75
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.cbSort)
Me.GroupBox1.Controls.Add(Me.lbNo)
Me.GroupBox1.Controls.Add(Me.Label8)
Me.GroupBox1.Controls.Add(Me.btBack)
Me.GroupBox1.Controls.Add(Me.btCancel)
Me.GroupBox1.Controls.Add(Me.btOK)
Me.GroupBox1.Controls.Add(Me.tbRemark)
Me.GroupBox1.Controls.Add(Me.cbCurrency)
Me.GroupBox1.Controls.Add(Me.tbPrice)
Me.GroupBox1.Controls.Add(Me.tbType)
Me.GroupBox1.Controls.Add(Me.cbFac)
Me.GroupBox1.Controls.Add(Me.tbName)
Me.GroupBox1.Controls.Add(Me.Label7)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.Label5)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Controls.Add(Me.Label3)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Controls.Add(Me.GroupBox2)
Me.GroupBox1.Location = New System.Drawing.Point(10, 264)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(574, 104)
Me.GroupBox1.TabIndex = 1
Me.GroupBox1.TabStop = False
'
'cbSort
'
Me.cbSort.Location = New System.Drawing.Point(72, 40)
Me.cbSort.Name = "cbSort"
Me.cbSort.Size = New System.Drawing.Size(72, 20)
Me.cbSort.TabIndex = 20
'
'lbNo
'
Me.lbNo.Location = New System.Drawing.Point(80, 72)
Me.lbNo.Name = "lbNo"
Me.lbNo.Size = New System.Drawing.Size(80, 23)
Me.lbNo.TabIndex = 19
Me.lbNo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(8, 72)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(72, 23)
Me.Label8.TabIndex = 18
Me.Label8.Text = "商品编号:"
Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'btBack
'
Me.btBack.Location = New System.Drawing.Point(400, 70)
Me.btBack.Name = "btBack"
Me.btBack.Size = New System.Drawing.Size(56, 23)
Me.btBack.TabIndex = 17
Me.btBack.Text = "还原"
'
'btCancel
'
Me.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btCancel.Location = New System.Drawing.Point(472, 70)
Me.btCancel.Name = "btCancel"
Me.btCancel.Size = New System.Drawing.Size(56, 23)
Me.btCancel.TabIndex = 15
Me.btCancel.Text = "退出"
'
'btOK
'
Me.btOK.Location = New System.Drawing.Point(328, 70)
Me.btOK.Name = "btOK"
Me.btOK.Size = New System.Drawing.Size(56, 23)
Me.btOK.TabIndex = 14
Me.btOK.Text = "增加"
'
'tbRemark
'
Me.tbRemark.Location = New System.Drawing.Point(432, 40)
Me.tbRemark.Name = "tbRemark"
Me.tbRemark.Size = New System.Drawing.Size(136, 21)
Me.tbRemark.TabIndex = 13
Me.tbRemark.Text = ""
'
'cbCurrency
'
Me.cbCurrency.Items.AddRange(New Object() {"人民币", "美元", "欧元"})
Me.cbCurrency.Location = New System.Drawing.Point(360, 40)
Me.cbCurrency.Name = "cbCurrency"
Me.cbCurrency.Size = New System.Drawing.Size(70, 20)
Me.cbCurrency.TabIndex = 12
'
'tbPrice
'
Me.tbPrice.Location = New System.Drawing.Point(296, 40)
Me.tbPrice.Name = "tbPrice"
Me.tbPrice.Size = New System.Drawing.Size(64, 21)
Me.tbPrice.TabIndex = 11
Me.tbPrice.Text = ""
'
'tbType
'
Me.tbType.Location = New System.Drawing.Point(232, 40)
Me.tbType.Name = "tbType"
Me.tbType.Size = New System.Drawing.Size(60, 21)
Me.tbType.TabIndex = 10
Me.tbType.Text = ""
'
'cbFac
'
Me.cbFac.Location = New System.Drawing.Point(152, 40)
Me.cbFac.Name = "cbFac"
Me.cbFac.Size = New System.Drawing.Size(80, 20)
Me.cbFac.TabIndex = 9
'
'tbName
'
Me.tbName.Location = New System.Drawing.Point(8, 40)
Me.tbName.Name = "tbName"
Me.tbName.Size = New System.Drawing.Size(60, 21)
Me.tbName.TabIndex = 7
Me.tbName.Text = ""
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(432, 16)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(56, 23)
Me.Label7.TabIndex = 6
Me.Label7.Text = "备注"
Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(360, 16)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 23)
Me.Label6.TabIndex = 5
Me.Label6.Text = "货币"
Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(296, 16)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 23)
Me.Label5.TabIndex = 4
Me.Label5.Text = "价格"
Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(232, 16)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 23)
Me.Label4.TabIndex = 3
Me.Label4.Text = "型号"
Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(152, 16)
Me.Label3.Name = "Label3"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -