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

📄 出库查询条件.frm

📁 学生教材管理系统:对学校书库进销存进行管理的系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form 教材出库查询条件 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "教材出库查询条件"
   ClientHeight    =   3105
   ClientLeft      =   2760
   ClientTop       =   2580
   ClientWidth     =   5175
   Icon            =   "出库查询条件.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   5175
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   3075
      Left            =   60
      TabIndex        =   0
      Top             =   -60
      Width           =   5055
      Begin VB.Frame Frame2 
         Caption         =   "查询条件"
         Height          =   1035
         Left            =   120
         TabIndex        =   5
         Top             =   240
         Width           =   4815
         Begin VB.OptionButton Option4 
            Caption         =   "按课程类别"
            Height          =   315
            Left            =   3360
            TabIndex        =   9
            Top             =   360
            Width           =   1395
         End
         Begin VB.OptionButton Option1 
            Caption         =   "按出库日期"
            Height          =   315
            Left            =   120
            TabIndex        =   8
            Top             =   360
            Width           =   1275
         End
         Begin VB.OptionButton Option2 
            Caption         =   "按班级"
            Height          =   315
            Left            =   1380
            TabIndex        =   7
            Top             =   360
            Width           =   975
         End
         Begin VB.OptionButton Option3 
            Caption         =   "按经手人"
            Height          =   315
            Left            =   2340
            TabIndex        =   6
            Top             =   360
            Width           =   1155
         End
      End
      Begin VB.Frame Frame3 
         Caption         =   "值"
         Height          =   915
         Left            =   120
         TabIndex        =   3
         Top             =   1380
         Width           =   4815
         Begin MSComCtl2.DTPicker DTPicker1 
            Height          =   375
            Left            =   600
            TabIndex        =   10
            Top             =   300
            Width           =   3615
            _ExtentX        =   6376
            _ExtentY        =   661
            _Version        =   393216
            Format          =   55771137
            CurrentDate     =   38375
         End
         Begin VB.TextBox Text1 
            Height          =   375
            Left            =   600
            TabIndex        =   4
            Top             =   300
            Width           =   3615
         End
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   450
         Left            =   1920
         TabIndex        =   2
         Top             =   2400
         Width           =   1335
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   450
         Left            =   3360
         TabIndex        =   1
         Top             =   2400
         Width           =   1335
      End
   End
End
Attribute VB_Name = "教材出库查询条件"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub ss()                  '当没有查找到时,显示提示信息
    If 教材出库查询.Adodc1.Recordset.RecordCount = 0 Then
       MsgBox "没有要查找的记录!", vbOKOnly + vbInformation
       Text1.Text = ""
       Text1.SetFocus
    End If
End Sub

Private Sub Command1_Click()
  Select Case hh
      Case 0                        '查询所有出库的教材
           If Option1.Value = True Then
               教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where 出库日期  like #" & DTPicker1.Value & "#"
               教材出库查询.Adodc1.Refresh
               Unload Me
               If 教材出库查询.Adodc1.Recordset.RecordCount = 0 Then
                  MsgBox "没有要查找的记录!", vbOKOnly + vbInformation, "教材出库查询"
               End If
            End If
            If Option2.Value = True Then
               If Text1 <> "" Then
                 教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where bj like '%" & Text1 & "%'"
                 教材出库查询.Adodc1.Refresh
                 ss
                 Unload Me
               Else
                  MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                   Text1.SetFocus
               End If
            End If
            If Option3.Value = True Then
               If Text1.Text <> "" Then
                   教材出库查询.Adodc1.RecordSource = "select * from 教材出库表  where 经手人 like '%" & Text1 & "%'"
                   教材出库查询.Adodc1.Refresh
                    ss
                    教材出库查询.Show
                   Unload Me
                Else
                   MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                   Text1.SetFocus
                End If
            End If
            If Option4.Value = True Then
               If Text1.Text <> "" Then
                   教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where 课程类别 like '%" & Text1 & "%'"
                   教材出库查询.Adodc1.Refresh
                   ss
                    教材出库查询.Show
                   Unload Me
               Else
                  MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                  Text1.SetFocus
               End If
            End If
         
    Case 1                      '查询专业课出库教材
            If Option1.Value = True Then
                教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where 出库日期 like #" & DTPicker1.Value & "#"
                教材出库查询.Adodc1.Refresh
                Unload Me
                If 教材出库查询.Adodc1.Recordset.RecordCount = 0 Then
                  MsgBox "没有要查找的记录!", vbOKOnly + vbInformation, "教材出库查询"
                End If
             End If
            If Option2.Value = True Then
                If Text1.Text <> "" Then
                   教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where bj like '%" & Text1 & "%'"
                   教材出库查询.Adodc1.Refresh
                   ss
                    教材出库查询.Show
                   Unload Me
                Else
                   MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                     Text1.SetFocus
                End If
            End If
            If Option3.Value = True Then
                If Text1.Text <> "" Then
                    教材出库查询.Adodc1.RecordSource = "select * from 教材出库表  where 经手人 like '%" & Text1 & "%' "
                    教材出库查询.Adodc1.Refresh
                    ss
                     教材出库查询.Show
                    Unload Me
                Else
                   MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                    Text1.SetFocus
                End If
            End If
        
   Case 2                     '查询选修课教材出库
         If Option1.Value = True Then
                教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where 出库日期 like #" & DTPicker1.Value & "#"
                教材出库查询.Adodc1.Refresh
                Unload Me
                If 教材出库查询.Adodc1.Recordset.RecordCount = 0 Then
                    MsgBox "没有要查找的记录!", vbOKOnly + vbInformation, "教材出库查询"
                End If
         End If
         If Option2.Value = True Then
            If Text1.Text <> "" Then
                 教材出库查询.Adodc1.RecordSource = "select * from 教材出库表 where bj like '%" & Text1 & "%' "
                 教材出库查询.Adodc1.Refresh
                 ss
                  教材出库查询.Show
                 Unload Me
            Else
                 MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                 Text1.SetFocus
            End If
         End If
         If Option3.Value = True Then
            If Text1.Text <> "" Then
                教材出库查询.Adodc1.RecordSource = "select * from 教材出库表  where 经手人 like '%" & Text1 & "%' "
                教材出库查询.Adodc1.Refresh
                ss
                 教材出库查询.Show
                Unload Me
            Else
                MsgBox "请输入要查询的值!", vbOKOnly + vbInformation, "教材出库查询"
                Text1.SetFocus
           End If
        End If
  End Select
End Sub
Private Sub Command2_Click()
    Unload Me
End Sub



Private Sub Form_Load()
   DTPicker1.Visible = False
End Sub

Private Sub Option1_Click()
     Text1.Visible = False
     DTPicker1.Visible = True
End Sub

Private Sub Option2_Click()
    Text1.Visible = True
    DTPicker1.Visible = False
    Text1.SetFocus
    Text1.Text = ""
End Sub

Private Sub Option3_Click()
    Text1.Visible = True
    DTPicker1.Visible = False
    Text1.SetFocus
    Text1.Text = ""
End Sub

Private Sub Option4_Click()
    Text1.Visible = True
    DTPicker1.Visible = False
    Text1.SetFocus
    Text1.Text = ""
End Sub

Private Sub Text1_Click()
   Text1.Text = ""
   Text1.SetFocus
End Sub

⌨️ 快捷键说明

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