📄 frmgoodstrans.vb
字号:
Imports System.Data.SqlClient
Public Class frmGoodsTrans
Inherits System.Windows.Forms.Form
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 txtGoodsTransID As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents cboGoodsTransType As System.Windows.Forms.ComboBox
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 txtModifyDate As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtUserID As System.Windows.Forms.TextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader3 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader4 As System.Windows.Forms.ColumnHeader
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents cboOrderByType As System.Windows.Forms.ComboBox
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 lstGoodsTrans As System.Windows.Forms.ListView
Friend WithEvents ColumnHeader5 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader6 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader7 As System.Windows.Forms.ColumnHeader
Friend WithEvents cboWarehouseID As System.Windows.Forms.ComboBox
Friend WithEvents cboWarehouseName As System.Windows.Forms.ComboBox
Friend WithEvents cboTransactionID As System.Windows.Forms.ComboBox
Friend WithEvents btnTrans As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.btnTrans = New System.Windows.Forms.Button
Me.cboOrderByType = New System.Windows.Forms.ComboBox
Me.Label8 = New System.Windows.Forms.Label
Me.lstGoodsTrans = 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.ColumnHeader4 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader5 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader6 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader7 = New System.Windows.Forms.ColumnHeader
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.cboTransactionID = New System.Windows.Forms.ComboBox
Me.cboWarehouseName = New System.Windows.Forms.ComboBox
Me.cboWarehouseID = New System.Windows.Forms.ComboBox
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.Label7 = New System.Windows.Forms.Label
Me.txtUserID = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txtModifyDate = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.cboGoodsTransType = New System.Windows.Forms.ComboBox
Me.Label2 = New System.Windows.Forms.Label
Me.txtGoodsTransID = 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.btnTrans)
Me.GroupBox1.Controls.Add(Me.cboOrderByType)
Me.GroupBox1.Controls.Add(Me.Label8)
Me.GroupBox1.Controls.Add(Me.lstGoodsTrans)
Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(280, 416)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
'
'btnTrans
'
Me.btnTrans.Location = New System.Drawing.Point(8, 384)
Me.btnTrans.Name = "btnTrans"
Me.btnTrans.Size = New System.Drawing.Size(80, 24)
Me.btnTrans.TabIndex = 3
Me.btnTrans.Text = "查看交易单"
'
'cboOrderByType
'
Me.cboOrderByType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cboOrderByType.Items.AddRange(New Object() {"采购入库", "销售退货", "销售出库", "采购退货"})
Me.cboOrderByType.Location = New System.Drawing.Point(80, 352)
Me.cboOrderByType.Name = "cboOrderByType"
Me.cboOrderByType.Size = New System.Drawing.Size(104, 20)
Me.cboOrderByType.TabIndex = 2
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Location = New System.Drawing.Point(8, 352)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(72, 17)
Me.Label8.TabIndex = 1
Me.Label8.Text = "按库存类型:"
'
'lstGoodsTrans
'
Me.lstGoodsTrans.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1, Me.ColumnHeader2, Me.ColumnHeader3, Me.ColumnHeader4, Me.ColumnHeader5, Me.ColumnHeader6, Me.ColumnHeader7})
Me.lstGoodsTrans.FullRowSelect = True
Me.lstGoodsTrans.GridLines = True
Me.lstGoodsTrans.Location = New System.Drawing.Point(8, 17)
Me.lstGoodsTrans.Name = "lstGoodsTrans"
Me.lstGoodsTrans.Size = New System.Drawing.Size(264, 327)
Me.lstGoodsTrans.TabIndex = 0
Me.lstGoodsTrans.View = System.Windows.Forms.View.Details
'
'ColumnHeader1
'
Me.ColumnHeader1.Text = "库存ID"
'
'ColumnHeader2
'
Me.ColumnHeader2.Text = "库存类型"
Me.ColumnHeader2.Width = 80
'
'ColumnHeader3
'
Me.ColumnHeader3.Text = "交易ID"
'
'ColumnHeader4
'
Me.ColumnHeader4.Text = "仓库ID"
'
'ColumnHeader5
'
Me.ColumnHeader5.Text = "库存名称"
Me.ColumnHeader5.Width = 0
'
'ColumnHeader6
'
Me.ColumnHeader6.Text = "更新时间"
Me.ColumnHeader6.Width = 0
'
'ColumnHeader7
'
Me.ColumnHeader7.Text = "负责人"
Me.ColumnHeader7.Width = 0
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.cboTransactionID)
Me.GroupBox2.Controls.Add(Me.cboWarehouseName)
Me.GroupBox2.Controls.Add(Me.cboWarehouseID)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.txtUserID)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.txtModifyDate)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.Label4)
Me.GroupBox2.Controls.Add(Me.Label3)
Me.GroupBox2.Controls.Add(Me.cboGoodsTransType)
Me.GroupBox2.Controls.Add(Me.Label2)
Me.GroupBox2.Controls.Add(Me.txtGoodsTransID)
Me.GroupBox2.Controls.Add(Me.Label1)
Me.GroupBox2.Enabled = False
Me.GroupBox2.Location = New System.Drawing.Point(288, 0)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(328, 272)
Me.GroupBox2.TabIndex = 1
Me.GroupBox2.TabStop = False
'
'cboTransactionID
'
Me.cboTransactionID.Location = New System.Drawing.Point(96, 96)
Me.cboTransactionID.Name = "cboTransactionID"
Me.cboTransactionID.Size = New System.Drawing.Size(104, 20)
Me.cboTransactionID.TabIndex = 21
'
'cboWarehouseName
'
Me.cboWarehouseName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
Me.cboWarehouseName.Enabled = False
Me.cboWarehouseName.Location = New System.Drawing.Point(96, 160)
Me.cboWarehouseName.Name = "cboWarehouseName"
Me.cboWarehouseName.Size = New System.Drawing.Size(168, 20)
Me.cboWarehouseName.TabIndex = 20
'
'cboWarehouseID
'
Me.cboWarehouseID.Location = New System.Drawing.Point(96, 128)
Me.cboWarehouseID.Name = "cboWarehouseID"
Me.cboWarehouseID.Size = New System.Drawing.Size(104, 20)
Me.cboWarehouseID.TabIndex = 19
'
'btnCancel
'
Me.btnCancel.Location = New System.Drawing.Point(496, 384)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(64, 24)
Me.btnCancel.TabIndex = 18
Me.btnCancel.Text = "取消"
'
'btnOK
'
Me.btnOK.Location = New System.Drawing.Point(392, 384)
Me.btnOK.Name = "btnOK"
Me.btnOK.Size = New System.Drawing.Size(64, 24)
Me.btnOK.TabIndex = 17
Me.btnOK.Text = "确定"
'
'btnDel
'
Me.btnDel.Location = New System.Drawing.Point(520, 344)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(64, 24)
Me.btnDel.TabIndex = 16
Me.btnDel.Text = "删除"
'
'btnUpdate
'
Me.btnUpdate.Location = New System.Drawing.Point(440, 344)
Me.btnUpdate.Name = "btnUpdate"
Me.btnUpdate.Size = New System.Drawing.Size(64, 24)
Me.btnUpdate.TabIndex = 15
Me.btnUpdate.Text = "更新"
'
'btnAdd
'
Me.btnAdd.Location = New System.Drawing.Point(360, 344)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(64, 24)
Me.btnAdd.TabIndex = 14
Me.btnAdd.Text = "添加"
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(32, 160)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(60, 17)
Me.Label7.TabIndex = 12
Me.Label7.Text = "仓库名称:"
'
'txtUserID
'
Me.txtUserID.Location = New System.Drawing.Point(96, 224)
Me.txtUserID.Name = "txtUserID"
Me.txtUserID.ReadOnly = True
Me.txtUserID.Size = New System.Drawing.Size(104, 21)
Me.txtUserID.TabIndex = 11
Me.txtUserID.Text = ""
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Location = New System.Drawing.Point(32, 224)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(48, 17)
Me.Label6.TabIndex = 10
Me.Label6.Text = "负责人:"
'
'txtModifyDate
'
Me.txtModifyDate.Location = New System.Drawing.Point(96, 192)
Me.txtModifyDate.Name = "txtModifyDate"
Me.txtModifyDate.ReadOnly = True
Me.txtModifyDate.Size = New System.Drawing.Size(168, 21)
Me.txtModifyDate.TabIndex = 9
Me.txtModifyDate.Text = ""
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(32, 192)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(60, 17)
Me.Label5.TabIndex = 8
Me.Label5.Text = "更新时间:"
'
'Label4
'
Me.Label4.AutoSize = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -