⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmtransinfo.vb

📁 这是一个关于图书仓库管理系统的程序源代码。是我的毕业设计的作品
💻 VB
📖 第 1 页 / 共 3 页
字号:
Imports System.Data.SqlClient

Public Class frmTransInfo
    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 txtTransID As System.Windows.Forms.TextBox
    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 txtPrice As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents txtNum As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents txtAmount As System.Windows.Forms.TextBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents txtUserID As System.Windows.Forms.TextBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents txtModifyDate As System.Windows.Forms.TextBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents cboStatus As System.Windows.Forms.ComboBox
    Friend WithEvents btnCancel As System.Windows.Forms.Button
    Friend WithEvents btnOK As System.Windows.Forms.Button
    Friend WithEvents btnDel As System.Windows.Forms.Button
    Friend WithEvents btnUpdate As System.Windows.Forms.Button
    Friend WithEvents btnAdd As System.Windows.Forms.Button
    Friend WithEvents dgTransInfo As System.Windows.Forms.DataGrid
    Friend WithEvents cboOrderByType As System.Windows.Forms.ComboBox
    Friend WithEvents cboOrderByStatus As System.Windows.Forms.ComboBox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents Label14 As System.Windows.Forms.Label
    Friend WithEvents Label15 As System.Windows.Forms.Label
    Friend WithEvents cboOrderType As System.Windows.Forms.ComboBox
    Friend WithEvents Label16 As System.Windows.Forms.Label
    Friend WithEvents txtOrderValue As System.Windows.Forms.TextBox
    Friend WithEvents btnSearch As System.Windows.Forms.Button
    Friend WithEvents Label17 As System.Windows.Forms.Label
    Friend WithEvents cboOrder As System.Windows.Forms.ComboBox
    Friend WithEvents cboGoodsID As System.Windows.Forms.ComboBox
    Friend WithEvents cboGoodsName As System.Windows.Forms.ComboBox
    Friend WithEvents cboCustomerID As System.Windows.Forms.ComboBox
    Friend WithEvents cboCustomerName As System.Windows.Forms.ComboBox
    Friend WithEvents btnQueren As System.Windows.Forms.Button
    Friend WithEvents cboTransType As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.cboOrder = New System.Windows.Forms.ComboBox
        Me.Label17 = New System.Windows.Forms.Label
        Me.btnSearch = New System.Windows.Forms.Button
        Me.txtOrderValue = New System.Windows.Forms.TextBox
        Me.Label16 = New System.Windows.Forms.Label
        Me.cboOrderType = New System.Windows.Forms.ComboBox
        Me.Label15 = New System.Windows.Forms.Label
        Me.Label14 = New System.Windows.Forms.Label
        Me.Label13 = New System.Windows.Forms.Label
        Me.cboOrderByStatus = New System.Windows.Forms.ComboBox
        Me.cboOrderByType = New System.Windows.Forms.ComboBox
        Me.dgTransInfo = New System.Windows.Forms.DataGrid
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.cboCustomerName = New System.Windows.Forms.ComboBox
        Me.cboCustomerID = New System.Windows.Forms.ComboBox
        Me.cboGoodsName = New System.Windows.Forms.ComboBox
        Me.cboGoodsID = New System.Windows.Forms.ComboBox
        Me.cboStatus = New System.Windows.Forms.ComboBox
        Me.Label12 = New System.Windows.Forms.Label
        Me.txtModifyDate = New System.Windows.Forms.TextBox
        Me.Label11 = New System.Windows.Forms.Label
        Me.txtUserID = New System.Windows.Forms.TextBox
        Me.Label10 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label8 = New System.Windows.Forms.Label
        Me.txtAmount = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.txtNum = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.txtPrice = 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.Label2 = New System.Windows.Forms.Label
        Me.txtTransID = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        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.btnQueren = New System.Windows.Forms.Button
        Me.cboTransType = New System.Windows.Forms.ComboBox
        Me.GroupBox1.SuspendLayout()
        CType(Me.dgTransInfo, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox2.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.cboOrder)
        Me.GroupBox1.Controls.Add(Me.Label17)
        Me.GroupBox1.Controls.Add(Me.btnSearch)
        Me.GroupBox1.Controls.Add(Me.txtOrderValue)
        Me.GroupBox1.Controls.Add(Me.Label16)
        Me.GroupBox1.Controls.Add(Me.cboOrderType)
        Me.GroupBox1.Controls.Add(Me.Label15)
        Me.GroupBox1.Controls.Add(Me.Label14)
        Me.GroupBox1.Controls.Add(Me.Label13)
        Me.GroupBox1.Controls.Add(Me.cboOrderByStatus)
        Me.GroupBox1.Controls.Add(Me.cboOrderByType)
        Me.GroupBox1.Controls.Add(Me.dgTransInfo)
        Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(536, 512)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        '
        'cboOrder
        '
        Me.cboOrder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboOrder.Items.AddRange(New Object() {"交易ID", "交易类型", "商品ID", "单价", "交易数量", "总金额", "客户ID", "更新时间", "负责人", "交易状态"})
        Me.cboOrder.Location = New System.Drawing.Point(440, 440)
        Me.cboOrder.Name = "cboOrder"
        Me.cboOrder.Size = New System.Drawing.Size(88, 20)
        Me.cboOrder.TabIndex = 12
        '
        'Label17
        '
        Me.Label17.AutoSize = True
        Me.Label17.Location = New System.Drawing.Point(376, 440)
        Me.Label17.Name = "Label17"
        Me.Label17.Size = New System.Drawing.Size(60, 17)
        Me.Label17.TabIndex = 11
        Me.Label17.Text = "排列方式:"
        '
        'btnSearch
        '
        Me.btnSearch.Location = New System.Drawing.Point(440, 472)
        Me.btnSearch.Name = "btnSearch"
        Me.btnSearch.Size = New System.Drawing.Size(64, 24)
        Me.btnSearch.TabIndex = 10
        Me.btnSearch.Text = "查询"
        '
        'txtOrderValue
        '
        Me.txtOrderValue.Location = New System.Drawing.Point(256, 472)
        Me.txtOrderValue.Name = "txtOrderValue"
        Me.txtOrderValue.Size = New System.Drawing.Size(168, 21)
        Me.txtOrderValue.TabIndex = 9
        Me.txtOrderValue.Text = ""
        '
        'Label16
        '
        Me.Label16.AutoSize = True
        Me.Label16.Location = New System.Drawing.Point(192, 472)
        Me.Label16.Name = "Label16"
        Me.Label16.Size = New System.Drawing.Size(48, 17)
        Me.Label16.TabIndex = 8
        Me.Label16.Text = "查询值:"
        '
        'cboOrderType
        '
        Me.cboOrderType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboOrderType.Location = New System.Drawing.Point(80, 472)
        Me.cboOrderType.Name = "cboOrderType"
        Me.cboOrderType.Size = New System.Drawing.Size(88, 20)
        Me.cboOrderType.TabIndex = 7
        '
        'Label15
        '
        Me.Label15.AutoSize = True
        Me.Label15.Location = New System.Drawing.Point(16, 472)
        Me.Label15.Name = "Label15"
        Me.Label15.Size = New System.Drawing.Size(60, 17)
        Me.Label15.TabIndex = 6
        Me.Label15.Text = "查询类型:"
        '
        'Label14
        '
        Me.Label14.AutoSize = True
        Me.Label14.Location = New System.Drawing.Point(192, 440)
        Me.Label14.Name = "Label14"
        Me.Label14.Size = New System.Drawing.Size(60, 17)
        Me.Label14.TabIndex = 5
        Me.Label14.Text = "交易状态:"
        '
        'Label13
        '
        Me.Label13.AutoSize = True
        Me.Label13.Location = New System.Drawing.Point(16, 440)
        Me.Label13.Name = "Label13"
        Me.Label13.Size = New System.Drawing.Size(60, 17)
        Me.Label13.TabIndex = 4
        Me.Label13.Text = "交易类型:"
        '
        'cboOrderByStatus
        '
        Me.cboOrderByStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboOrderByStatus.Location = New System.Drawing.Point(256, 440)
        Me.cboOrderByStatus.Name = "cboOrderByStatus"
        Me.cboOrderByStatus.Size = New System.Drawing.Size(96, 20)
        Me.cboOrderByStatus.TabIndex = 3
        '
        'cboOrderByType
        '
        Me.cboOrderByType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboOrderByType.Location = New System.Drawing.Point(80, 440)
        Me.cboOrderByType.Name = "cboOrderByType"
        Me.cboOrderByType.Size = New System.Drawing.Size(88, 20)
        Me.cboOrderByType.TabIndex = 2
        '
        'dgTransInfo
        '
        Me.dgTransInfo.DataMember = ""
        Me.dgTransInfo.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.dgTransInfo.Location = New System.Drawing.Point(8, 16)
        Me.dgTransInfo.Name = "dgTransInfo"
        Me.dgTransInfo.ReadOnly = True
        Me.dgTransInfo.Size = New System.Drawing.Size(520, 416)
        Me.dgTransInfo.TabIndex = 1
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.cboTransType)
        Me.GroupBox2.Controls.Add(Me.cboCustomerName)
        Me.GroupBox2.Controls.Add(Me.cboCustomerID)
        Me.GroupBox2.Controls.Add(Me.cboGoodsName)
        Me.GroupBox2.Controls.Add(Me.cboGoodsID)
        Me.GroupBox2.Controls.Add(Me.cboStatus)
        Me.GroupBox2.Controls.Add(Me.Label12)
        Me.GroupBox2.Controls.Add(Me.txtModifyDate)
        Me.GroupBox2.Controls.Add(Me.Label11)
        Me.GroupBox2.Controls.Add(Me.txtUserID)
        Me.GroupBox2.Controls.Add(Me.Label10)
        Me.GroupBox2.Controls.Add(Me.Label9)
        Me.GroupBox2.Controls.Add(Me.Label8)
        Me.GroupBox2.Controls.Add(Me.txtAmount)
        Me.GroupBox2.Controls.Add(Me.Label7)
        Me.GroupBox2.Controls.Add(Me.txtNum)
        Me.GroupBox2.Controls.Add(Me.Label6)
        Me.GroupBox2.Controls.Add(Me.txtPrice)
        Me.GroupBox2.Controls.Add(Me.Label5)
        Me.GroupBox2.Controls.Add(Me.Label4)
        Me.GroupBox2.Controls.Add(Me.Label3)
        Me.GroupBox2.Controls.Add(Me.Label2)
        Me.GroupBox2.Controls.Add(Me.txtTransID)
        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, 512)
        Me.GroupBox2.TabIndex = 1
        Me.GroupBox2.TabStop = False
        '
        'cboCustomerName
        '
        Me.cboCustomerName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
        Me.cboCustomerName.Enabled = False
        Me.cboCustomerName.Location = New System.Drawing.Point(128, 288)
        Me.cboCustomerName.Name = "cboCustomerName"
        Me.cboCustomerName.Size = New System.Drawing.Size(168, 20)
        Me.cboCustomerName.TabIndex = 27
        '
        'cboCustomerID
        '
        Me.cboCustomerID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboCustomerID.Location = New System.Drawing.Point(128, 256)
        Me.cboCustomerID.Name = "cboCustomerID"
        Me.cboCustomerID.Size = New System.Drawing.Size(112, 20)
        Me.cboCustomerID.TabIndex = 26
        '
        'cboGoodsName
        '
        Me.cboGoodsName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
        Me.cboGoodsName.Enabled = False
        Me.cboGoodsName.Location = New System.Drawing.Point(128, 128)
        Me.cboGoodsName.Name = "cboGoodsName"
        Me.cboGoodsName.Size = New System.Drawing.Size(160, 20)
        Me.cboGoodsName.TabIndex = 25
        '
        'cboGoodsID
        '
        Me.cboGoodsID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboGoodsID.Location = New System.Drawing.Point(128, 96)
        Me.cboGoodsID.Name = "cboGoodsID"
        Me.cboGoodsID.Size = New System.Drawing.Size(112, 20)
        Me.cboGoodsID.TabIndex = 24
        '
        'cboStatus
        '
        Me.cboStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboStatus.Enabled = False
        Me.cboStatus.Items.AddRange(New Object() {"退单", "已提交", "仓库确认"})
        Me.cboStatus.Location = New System.Drawing.Point(128, 384)
        Me.cboStatus.Name = "cboStatus"
        Me.cboStatus.Size = New System.Drawing.Size(112, 20)
        Me.cboStatus.TabIndex = 23
        '
        'Label12
        '
        Me.Label12.AutoSize = True
        Me.Label12.Location = New System.Drawing.Point(64, 384)
        Me.Label12.Name = "Label12"
        Me.Label12.Size = New System.Drawing.Size(66, 17)
        Me.Label12.TabIndex = 22
        Me.Label12.Text = "交易状态:*"
        '
        'txtModifyDate
        '
        Me.txtModifyDate.Location = New System.Drawing.Point(128, 320)
        Me.txtModifyDate.Name = "txtModifyDate"
        Me.txtModifyDate.ReadOnly = True
        Me.txtModifyDate.Size = New System.Drawing.Size(112, 21)
        Me.txtModifyDate.TabIndex = 21
        Me.txtModifyDate.Text = ""
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(64, 320)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(60, 17)
        Me.Label11.TabIndex = 20
        Me.Label11.Text = "更新日期:"
        '
        'txtUserID
        '
        Me.txtUserID.Location = New System.Drawing.Point(128, 352)
        Me.txtUserID.Name = "txtUserID"
        Me.txtUserID.ReadOnly = True
        Me.txtUserID.Size = New System.Drawing.Size(112, 21)
        Me.txtUserID.TabIndex = 19
        Me.txtUserID.Text = ""
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(64, 352)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(56, 16)
        Me.Label10.TabIndex = 18
        Me.Label10.Text = "负责人:"
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.Location = New System.Drawing.Point(64, 288)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(66, 17)
        Me.Label9.TabIndex = 16

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -