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

📄 信息查询窗口.frm

📁 本软件涉及 物料管理 库存管理 生产计划 薪酬管理 等 界面简洁 操作方便
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form xxcx 
   Caption         =   "信息查询窗口"
   ClientHeight    =   8925
   ClientLeft      =   2880
   ClientTop       =   2055
   ClientWidth     =   13200
   LinkTopic       =   "Form1"
   ScaleHeight     =   8925
   ScaleWidth      =   13200
   Begin VB.Frame Frame5 
      Caption         =   "警报信息查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3615
      Left            =   9480
      TabIndex        =   4
      Top             =   5160
      Width           =   3615
   End
   Begin VB.Frame Frame4 
      Caption         =   "余额信息查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3615
      Left            =   4800
      TabIndex        =   3
      Top             =   5160
      Width           =   4575
   End
   Begin VB.Frame Frame3 
      Caption         =   "出库信息查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2535
      Left            =   120
      TabIndex        =   2
      Top             =   2520
      Width           =   12975
   End
   Begin VB.Frame Frame2 
      Caption         =   "入库信息查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2295
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   12975
      Begin MSFlexGridLib.MSFlexGrid msglist1 
         Height          =   1935
         Left            =   2880
         TabIndex        =   11
         Top             =   240
         Width           =   9975
         _ExtentX        =   17595
         _ExtentY        =   3413
         _Version        =   393216
      End
      Begin VB.CommandButton Command3 
         Caption         =   "按日期查询"
         Height          =   375
         Left            =   1560
         TabIndex        =   10
         Top             =   1560
         Width           =   1215
      End
      Begin VB.CommandButton Command2 
         Caption         =   "按编号查询"
         Height          =   375
         Left            =   1560
         TabIndex        =   9
         Top             =   960
         Width           =   1215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "按名称查询"
         Height          =   375
         Left            =   1560
         TabIndex        =   8
         Top             =   360
         Width           =   1215
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   240
         TabIndex        =   7
         Top             =   1560
         Width           =   1095
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   240
         TabIndex        =   6
         Top             =   960
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   240
         TabIndex        =   5
         Top             =   360
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "基本信息查询"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3615
      Left            =   120
      TabIndex        =   0
      Top             =   5160
      Width           =   4575
   End
End
Attribute VB_Name = "xxcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
    Dim j As Integer
    Dim i As Integer
    Dim rs As ADODB.Recordset
    txtSQL = "select * from msave where rkid like '%" & Trim(Text2.Text) & "%'"
    Set rs = ExecuteSQL(txtSQL, txtmsg)
    If rs.EOF = False Then
        With msglist1
            .Rows = 1
            Do While Not rs.EOF
            .Rows = .Rows + 1
            For i = 1 To rs.Fields.Count - 1
                Select Case rs.Fields(i).Type
                    Case adDBDate
                    .TextMatrix(.Rows - 1, i) = Format(rs.Fields(i - 1), "yyyy-mm-dd")
                    Case Else
                    .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
                End Select
            Next i
            .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
            rs.MoveNext
            Loop
        End With
    End If
    rs.Close
End Sub
Private Sub Command1_Click()
    Dim j As Integer
    Dim i As Integer
    Dim rs As ADODB.Recordset
    txtSQL = "select * from msave where rkname like '%" & Trim(Text1.Text) & "%'"
    Set rs = ExecuteSQL(txtSQL, txtmsg)
    If rs.EOF = False Then
        With msglist1
            .Rows = 1
            Do While Not rs.EOF
            .Rows = .Rows + 1
            For i = 1 To rs.Fields.Count - 1
                Select Case rs.Fields(i).Type
                    Case adDBDate
                    .TextMatrix(.Rows - 1, i) = Format(rs.Fields(i - 1), "yyyy-mm-dd")
                    Case Else
                    .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
                End Select
            Next i
            .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
            rs.MoveNext
            Loop
        End With
    End If
    rs.Close
End Sub
Private Sub Command3_Click()
    Dim j As Integer
    Dim i As Integer
    Dim rs As ADODB.Recordset
    txtSQL = "select * from msave where rkdate like '%" & Trim(Format(Text3.Text, "yyyy-m-d")) & "%'"
    Set rs = ExecuteSQL(txtSQL, txtmsg)
    If rs.EOF = False Then
        With msglist1
            .Rows = 1
            Do While Not rs.EOF
            .Rows = .Rows + 1
            For i = 1 To rs.Fields.Count - 1
                Select Case rs.Fields(i).Type
                    Case adDBDate
                    .TextMatrix(.Rows - 1, i) = Format(rs.Fields(i - 1), "yyyy-m-d")
                    Case Else
                    .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
                End Select
            Next i
            .TextMatrix(.Rows - 1, i) = rs.Fields(i - 1)
            rs.MoveNext
            Loop
        End With
    End If
    rs.Close
End Sub
Private Sub Form_Load()
    ShowTitle1
End Sub
Private Sub ShowTitle1()
    Dim i As Integer
    With msglist1
        .Cols = 15
        .TextMatrix(0, 1) = "入库编号"
        .TextMatrix(0, 2) = "物资编号"
        .TextMatrix(0, 3) = "物资名称"
        .TextMatrix(0, 4) = "规格型号"
        .TextMatrix(0, 5) = "类别"
        .TextMatrix(0, 6) = "计量单位"
        .TextMatrix(0, 7) = "数量"
        .TextMatrix(0, 8) = "单价"
        .TextMatrix(0, 9) = "金额"
        .TextMatrix(0, 10) = "供货商"
        .TextMatrix(0, 11) = "入库日期"
        .TextMatrix(0, 12) = "经办人"
        .TextMatrix(0, 13) = "保管人"
        .TextMatrix(0, 14) = "备注"
        .FixedRows = 1
        For i = 0 To 13
            .ColAlignment(i) = 0
        Next i
        .FillStyle = flexFillRepeat
        .Col = 0
        .RowSel = 1
        .ColSel = .Cols - 1
        .CellAlignment = 4
        .ColWidth(0) = 200
        .ColWidth(1) = 1000
        .ColWidth(2) = 1000
        .ColWidth(3) = 1000
        .ColWidth(4) = 1000
        .ColWidth(5) = 1000
        .ColWidth(6) = 1000
        .ColWidth(7) = 1000
        .ColWidth(8) = 1000
        .ColWidth(9) = 1000
        .ColWidth(10) = 1000
        .ColWidth(11) = 1000
        .ColWidth(12) = 1000
        .ColWidth(13) = 1000
        .Row = 1
    End With
End Sub

⌨️ 快捷键说明

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