📄 frmwarehouse.vb
字号:
Imports System.Data.SqlClient
Public Class frmWarehouse
Inherits System.Windows.Forms.Form
#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 txtWarehouseID As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents txtWarehouseName As System.Windows.Forms.TextBox
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents txtDescr As System.Windows.Forms.TextBox
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 lstWarehouse As System.Windows.Forms.ListView
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader3 As System.Windows.Forms.ColumnHeader
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.lstWarehouse = New System.Windows.Forms.ListView
Me.ColumnHeader1 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader2 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader3 = New System.Windows.Forms.ColumnHeader
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.btnCancel = New System.Windows.Forms.Button
Me.btnOK = New System.Windows.Forms.Button
Me.btnDel = New System.Windows.Forms.Button
Me.btnUpdate = New System.Windows.Forms.Button
Me.btnAdd = New System.Windows.Forms.Button
Me.txtDescr = New System.Windows.Forms.TextBox
Me.Label3 = New System.Windows.Forms.Label
Me.txtWarehouseName = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.txtWarehouseID = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.lstWarehouse)
Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(184, 344)
Me.GroupBox1.TabIndex = 1
Me.GroupBox1.TabStop = False
'
'lstWarehouse
'
Me.lstWarehouse.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1, Me.ColumnHeader2, Me.ColumnHeader3})
Me.lstWarehouse.FullRowSelect = True
Me.lstWarehouse.GridLines = True
Me.lstWarehouse.Location = New System.Drawing.Point(8, 16)
Me.lstWarehouse.Name = "lstWarehouse"
Me.lstWarehouse.Size = New System.Drawing.Size(168, 320)
Me.lstWarehouse.TabIndex = 0
Me.lstWarehouse.View = System.Windows.Forms.View.Details
'
'ColumnHeader1
'
Me.ColumnHeader1.Text = "仓库ID"
'
'ColumnHeader2
'
Me.ColumnHeader2.Text = "仓库名称"
Me.ColumnHeader2.Width = 101
'
'ColumnHeader3
'
Me.ColumnHeader3.Text = "描述"
Me.ColumnHeader3.Width = 0
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.btnCancel)
Me.GroupBox2.Controls.Add(Me.btnOK)
Me.GroupBox2.Controls.Add(Me.btnDel)
Me.GroupBox2.Controls.Add(Me.btnUpdate)
Me.GroupBox2.Controls.Add(Me.btnAdd)
Me.GroupBox2.Controls.Add(Me.txtDescr)
Me.GroupBox2.Controls.Add(Me.Label3)
Me.GroupBox2.Controls.Add(Me.txtWarehouseName)
Me.GroupBox2.Controls.Add(Me.Label2)
Me.GroupBox2.Controls.Add(Me.txtWarehouseID)
Me.GroupBox2.Controls.Add(Me.Label1)
Me.GroupBox2.Location = New System.Drawing.Point(200, 8)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(312, 336)
Me.GroupBox2.TabIndex = 2
Me.GroupBox2.TabStop = False
'
'btnCancel
'
Me.btnCancel.Location = New System.Drawing.Point(176, 280)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(56, 24)
Me.btnCancel.TabIndex = 10
Me.btnCancel.Text = "取消"
'
'btnOK
'
Me.btnOK.Location = New System.Drawing.Point(96, 280)
Me.btnOK.Name = "btnOK"
Me.btnOK.Size = New System.Drawing.Size(56, 24)
Me.btnOK.TabIndex = 9
Me.btnOK.Text = "确定"
'
'btnDel
'
Me.btnDel.Location = New System.Drawing.Point(200, 240)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(56, 24)
Me.btnDel.TabIndex = 8
Me.btnDel.Text = "删除(&D)"
'
'btnUpdate
'
Me.btnUpdate.Location = New System.Drawing.Point(128, 240)
Me.btnUpdate.Name = "btnUpdate"
Me.btnUpdate.Size = New System.Drawing.Size(56, 24)
Me.btnUpdate.TabIndex = 7
Me.btnUpdate.Text = "修改(&U)"
'
'btnAdd
'
Me.btnAdd.Location = New System.Drawing.Point(56, 240)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(56, 24)
Me.btnAdd.TabIndex = 6
Me.btnAdd.Text = "添加(&A)"
'
'txtDescr
'
Me.txtDescr.Enabled = False
Me.txtDescr.Location = New System.Drawing.Point(64, 120)
Me.txtDescr.MaxLength = 80
Me.txtDescr.Multiline = True
Me.txtDescr.Name = "txtDescr"
Me.txtDescr.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.txtDescr.Size = New System.Drawing.Size(160, 56)
Me.txtDescr.TabIndex = 5
Me.txtDescr.Text = ""
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(16, 112)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(35, 17)
Me.Label3.TabIndex = 4
Me.Label3.Text = "描述:"
'
'txtWarehouseName
'
Me.txtWarehouseName.Enabled = False
Me.txtWarehouseName.Location = New System.Drawing.Point(72, 72)
Me.txtWarehouseName.MaxLength = 30
Me.txtWarehouseName.Name = "txtWarehouseName"
Me.txtWarehouseName.Size = New System.Drawing.Size(112, 21)
Me.txtWarehouseName.TabIndex = 3
Me.txtWarehouseName.Text = ""
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(16, 72)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(48, 17)
Me.Label2.TabIndex = 2
Me.Label2.Text = "仓库名:"
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -