📄 frmgoods.vb
字号:
Imports System.Data.SqlClient
Public Class frmGoods
Inherits System.Windows.Forms.Form
Private myDataAdapter As New SqlDataAdapter()
Private strSQL As String
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写处置以清理组件列表。
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 GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txtGoodsID As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents cboTypeName As System.Windows.Forms.ComboBox
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents txtGoodsName As System.Windows.Forms.TextBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents txtPrice As System.Windows.Forms.TextBox
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents txtUnit As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtStockNum As System.Windows.Forms.TextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents txtNumHigh As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents txtNumLow As System.Windows.Forms.TextBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents cboWarehouseName As System.Windows.Forms.ComboBox
Friend WithEvents btnSearch As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnUpdate As System.Windows.Forms.Button
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents btnOK As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents cboOrderbyType As System.Windows.Forms.ComboBox
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents cboOrderByWarehouse As System.Windows.Forms.ComboBox
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents cboOrderbyNum As System.Windows.Forms.ComboBox
Friend WithEvents txtOrderValue As System.Windows.Forms.TextBox
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents dgGoods As System.Windows.Forms.DataGrid
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents cboTypeID As System.Windows.Forms.ComboBox
Friend WithEvents Label16 As System.Windows.Forms.Label
Friend WithEvents cboWarehouseID As System.Windows.Forms.ComboBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label14 = New System.Windows.Forms.Label
Me.txtOrderValue = New System.Windows.Forms.TextBox
Me.cboOrderbyNum = New System.Windows.Forms.ComboBox
Me.Label12 = New System.Windows.Forms.Label
Me.cboOrderByWarehouse = New System.Windows.Forms.ComboBox
Me.Label11 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.cboOrderbyType = New System.Windows.Forms.ComboBox
Me.btnSearch = New System.Windows.Forms.Button
Me.dgGoods = New System.Windows.Forms.DataGrid
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.cboWarehouseID = New System.Windows.Forms.ComboBox
Me.Label16 = New System.Windows.Forms.Label
Me.cboTypeID = New System.Windows.Forms.ComboBox
Me.Label15 = New System.Windows.Forms.Label
Me.cboWarehouseName = New System.Windows.Forms.ComboBox
Me.Label9 = New System.Windows.Forms.Label
Me.txtNumLow = New System.Windows.Forms.TextBox
Me.Label8 = New System.Windows.Forms.Label
Me.txtNumHigh = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txtStockNum = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txtUnit = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txtPrice = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.txtGoodsName = New System.Windows.Forms.TextBox
Me.Label3 = New System.Windows.Forms.Label
Me.cboTypeName = New System.Windows.Forms.ComboBox
Me.Label2 = New System.Windows.Forms.Label
Me.txtGoodsID = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.btnAdd = New System.Windows.Forms.Button
Me.btnUpdate = New System.Windows.Forms.Button
Me.btnDel = New System.Windows.Forms.Button
Me.btnOK = New System.Windows.Forms.Button
Me.btnCancel = New System.Windows.Forms.Button
Me.GroupBox1.SuspendLayout()
CType(Me.dgGoods, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.Label14)
Me.GroupBox1.Controls.Add(Me.txtOrderValue)
Me.GroupBox1.Controls.Add(Me.cboOrderbyNum)
Me.GroupBox1.Controls.Add(Me.Label12)
Me.GroupBox1.Controls.Add(Me.cboOrderByWarehouse)
Me.GroupBox1.Controls.Add(Me.Label11)
Me.GroupBox1.Controls.Add(Me.Label10)
Me.GroupBox1.Controls.Add(Me.cboOrderbyType)
Me.GroupBox1.Controls.Add(Me.btnSearch)
Me.GroupBox1.Controls.Add(Me.dgGoods)
Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(536, 536)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
'
'Label14
'
Me.Label14.AutoSize = True
Me.Label14.Location = New System.Drawing.Point(16, 504)
Me.Label14.Name = "Label14"
Me.Label14.Size = New System.Drawing.Size(60, 17)
Me.Label14.TabIndex = 11
Me.Label14.Text = "图书名称:"
'
'txtOrderValue
'
Me.txtOrderValue.Location = New System.Drawing.Point(80, 504)
Me.txtOrderValue.Name = "txtOrderValue"
Me.txtOrderValue.Size = New System.Drawing.Size(192, 21)
Me.txtOrderValue.TabIndex = 10
Me.txtOrderValue.Text = ""
'
'cboOrderbyNum
'
Me.cboOrderbyNum.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboOrderbyNum.Location = New System.Drawing.Point(432, 472)
Me.cboOrderbyNum.Name = "cboOrderbyNum"
Me.cboOrderbyNum.Size = New System.Drawing.Size(88, 20)
Me.cboOrderbyNum.TabIndex = 7
'
'Label12
'
Me.Label12.AutoSize = True
Me.Label12.Location = New System.Drawing.Point(368, 472)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(60, 17)
Me.Label12.TabIndex = 6
Me.Label12.Text = "图书数量:"
'
'cboOrderByWarehouse
'
Me.cboOrderByWarehouse.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboOrderByWarehouse.Location = New System.Drawing.Point(248, 472)
Me.cboOrderByWarehouse.Name = "cboOrderByWarehouse"
Me.cboOrderByWarehouse.Size = New System.Drawing.Size(96, 20)
Me.cboOrderByWarehouse.TabIndex = 5
'
'Label11
'
Me.Label11.AutoSize = True
Me.Label11.Location = New System.Drawing.Point(184, 472)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(60, 17)
Me.Label11.TabIndex = 4
Me.Label11.Text = "所在仓库:"
'
'Label10
'
Me.Label10.AutoSize = True
Me.Label10.Location = New System.Drawing.Point(16, 472)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(60, 17)
Me.Label10.TabIndex = 3
Me.Label10.Text = "图书类型:"
'
'cboOrderbyType
'
Me.cboOrderbyType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboOrderbyType.Location = New System.Drawing.Point(80, 472)
Me.cboOrderbyType.Name = "cboOrderbyType"
Me.cboOrderbyType.Size = New System.Drawing.Size(88, 20)
Me.cboOrderbyType.TabIndex = 2
'
'btnSearch
'
Me.btnSearch.Location = New System.Drawing.Point(296, 504)
Me.btnSearch.Name = "btnSearch"
Me.btnSearch.Size = New System.Drawing.Size(64, 24)
Me.btnSearch.TabIndex = 1
Me.btnSearch.Text = "查询"
'
'dgGoods
'
Me.dgGoods.DataMember = ""
Me.dgGoods.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgGoods.Location = New System.Drawing.Point(8, 17)
Me.dgGoods.Name = "dgGoods"
Me.dgGoods.ReadOnly = True
Me.dgGoods.Size = New System.Drawing.Size(520, 447)
Me.dgGoods.TabIndex = 0
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.cboWarehouseID)
Me.GroupBox2.Controls.Add(Me.Label16)
Me.GroupBox2.Controls.Add(Me.cboTypeID)
Me.GroupBox2.Controls.Add(Me.Label15)
Me.GroupBox2.Controls.Add(Me.cboWarehouseName)
Me.GroupBox2.Controls.Add(Me.Label9)
Me.GroupBox2.Controls.Add(Me.txtNumLow)
Me.GroupBox2.Controls.Add(Me.Label8)
Me.GroupBox2.Controls.Add(Me.txtNumHigh)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.txtStockNum)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.txtUnit)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.txtPrice)
Me.GroupBox2.Controls.Add(Me.Label4)
Me.GroupBox2.Controls.Add(Me.txtGoodsName)
Me.GroupBox2.Controls.Add(Me.Label3)
Me.GroupBox2.Controls.Add(Me.cboTypeName)
Me.GroupBox2.Controls.Add(Me.Label2)
Me.GroupBox2.Controls.Add(Me.txtGoodsID)
Me.GroupBox2.Controls.Add(Me.Label1)
Me.GroupBox2.Enabled = False
Me.GroupBox2.Location = New System.Drawing.Point(544, 0)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(376, 536)
Me.GroupBox2.TabIndex = 1
Me.GroupBox2.TabStop = False
'
'cboWarehouseID
'
Me.cboWarehouseID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
Me.cboWarehouseID.Enabled = False
Me.cboWarehouseID.Location = New System.Drawing.Point(112, 432)
Me.cboWarehouseID.Name = "cboWarehouseID"
Me.cboWarehouseID.Size = New System.Drawing.Size(88, 20)
Me.cboWarehouseID.TabIndex = 21
'
'Label16
'
Me.Label16.AutoSize = True
Me.Label16.Location = New System.Drawing.Point(48, 432)
Me.Label16.Name = "Label16"
Me.Label16.Size = New System.Drawing.Size(54, 17)
Me.Label16.TabIndex = 20
Me.Label16.Text = "仓库ID:*"
'
'cboTypeID
'
Me.cboTypeID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
Me.cboTypeID.Enabled = False
Me.cboTypeID.Location = New System.Drawing.Point(112, 112)
Me.cboTypeID.Name = "cboTypeID"
Me.cboTypeID.Size = New System.Drawing.Size(88, 20)
Me.cboTypeID.TabIndex = 19
'
'Label15
'
Me.Label15.AutoSize = True
Me.Label15.Location = New System.Drawing.Point(48, 112)
Me.Label15.Name = "Label15"
Me.Label15.Size = New System.Drawing.Size(54, 17)
Me.Label15.TabIndex = 18
Me.Label15.Text = "类型ID:*"
'
'cboWarehouseName
'
Me.cboWarehouseName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboWarehouseName.Location = New System.Drawing.Point(112, 392)
Me.cboWarehouseName.Name = "cboWarehouseName"
Me.cboWarehouseName.Size = New System.Drawing.Size(112, 20)
Me.cboWarehouseName.TabIndex = 17
'
'Label9
'
Me.Label9.AutoSize = True
Me.Label9.Location = New System.Drawing.Point(48, 392)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(66, 17)
Me.Label9.TabIndex = 16
Me.Label9.Text = "所在仓库:*"
'
'txtNumLow
'
Me.txtNumLow.Location = New System.Drawing.Point(112, 312)
Me.txtNumLow.MaxLength = 9
Me.txtNumLow.Name = "txtNumLow"
Me.txtNumLow.Size = New System.Drawing.Size(112, 21)
Me.txtNumLow.TabIndex = 15
Me.txtNumLow.Text = ""
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Location = New System.Drawing.Point(48, 312)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(66, 17)
Me.Label8.TabIndex = 14
Me.Label8.Text = "数量下限:*"
'
'txtNumHigh
'
Me.txtNumHigh.Location = New System.Drawing.Point(112, 352)
Me.txtNumHigh.MaxLength = 9
Me.txtNumHigh.Name = "txtNumHigh"
Me.txtNumHigh.Size = New System.Drawing.Size(112, 21)
Me.txtNumHigh.TabIndex = 13
Me.txtNumHigh.Text = ""
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(48, 352)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(66, 17)
Me.Label7.TabIndex = 12
Me.Label7.Text = "数量上限:*"
'
'txtStockNum
'
Me.txtStockNum.Location = New System.Drawing.Point(112, 272)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -