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

📄 学生上机情况.frm

📁 VB机房管理系统。经证明可以使用。请有需要的人自己下载。
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form6 
   ClientHeight    =   8370
   ClientLeft      =   165
   ClientTop       =   855
   ClientWidth     =   10530
   LinkTopic       =   "Form6"
   ScaleHeight     =   8370
   ScaleWidth      =   10530
   StartUpPosition =   3  '窗口缺省
   Visible         =   0   'False
   Begin VB.CheckBox Check3 
      Caption         =   "按地址:"
      Height          =   375
      Left            =   2280
      TabIndex        =   6
      Top             =   7440
      Width           =   1215
   End
   Begin VB.CheckBox Check2 
      Caption         =   "按时间:"
      Height          =   375
      Left            =   2280
      TabIndex        =   5
      Top             =   6840
      Width           =   1215
   End
   Begin VB.CheckBox Check1 
      Caption         =   "按账号:"
      Height          =   495
      Left            =   2280
      TabIndex        =   4
      Top             =   6120
      Width           =   1215
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "学生上机情况.frx":0000
      Height          =   5175
      Left            =   480
      TabIndex        =   3
      Top             =   360
      Width           =   9135
      _ExtentX        =   16113
      _ExtentY        =   9128
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "使用记录单"
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton Command2 
      Caption         =   "查询"
      Height          =   375
      Left            =   5400
      TabIndex        =   2
      Top             =   6240
      Width           =   1335
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   3600
      TabIndex        =   1
      Top             =   6840
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      _Version        =   393216
      Format          =   24772608
      CurrentDate     =   39230
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   3600
      TabIndex        =   0
      Top             =   6120
      Width           =   1455
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   7560
      Top             =   6000
      Visible         =   0   'False
      Width           =   2655
      _ExtentX        =   4683
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=student;Data Source=127.0.0.1"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=student;Data Source=127.0.0.1"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from used_rec "
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Frame Frame1 
      Caption         =   "查询"
      Height          =   2295
      Left            =   1680
      TabIndex        =   7
      Top             =   5880
      Width           =   5535
      Begin VB.TextBox maskedbox1 
         Height          =   375
         Left            =   1920
         TabIndex        =   8
         Top             =   1560
         Width           =   1455
      End
      Begin VB.Label Label1 
         Caption         =   "提示:可以在上表中双击某一格选择待查询的内容"
         ForeColor       =   &H000000FF&
         Height          =   855
         Left            =   3720
         TabIndex        =   9
         Top             =   1080
         Width           =   1455
      End
   End
   Begin VB.Menu return 
      Caption         =   "返回"
   End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False



Private Sub Command2_Click()
Dim dd As String
dd = DTPicker1.Value

sql = "select * from used_rec"
If Check1.Value = Checked And Check2.Value = Unchecked And Check3.Value = Unchecked Then sql = sql & " where no =  " & Trim(Text1.Text)
If Check1.Value = Checked And Check2.Value = Checked And Check3.Value = Unchecked Then sql = sql & " where no =  " & Trim(Text1.Text) & " and datediff(day,used_start," & "'" & dd & "'" & ")=0"
If Check1.Value = Checked And Check2.Value = Checked And Check3.Value = Checked Then sql = sql & " where no =  " & Trim(Text1.Text) & " and datediff(day,used_start," & "'" & dd & "'" & ")=0 " & " and ip = '" & maskedbox1.Text & "'"
If Check1.Value = Checked And Check2.Value = Unchecked And Check3.Value = Checked Then sql = sql & " where no =  " & Trim(Text1.Text) & " and ip = '" & maskedbox1.Text & "'"

If Check1.Value = Unchecked And Check2.Value = Checked And Check3.Value = Checked Then sql = sql & " where  datediff(day,used_start," & "'" & dd & "'" & ")=0 " & " and ip = '" & maskedbox1.Text & "'"

If Check1.Value = Unchecked And Check2.Value = Unchecked And Check3.Value = Checked Then sql = sql & " where IP = '" & maskedbox1.Text & "'"

If Check1.Value = Unchecked And Check2.Value = Checked And Check3.Value = Unchecked Then sql = sql & " where  datediff(day,used_start," & "'" & dd & "'" & ")=0 "

Adodc1.RecordSource = sql

Adodc1.Refresh
DataGrid1.Refresh

End Sub

Private Sub Label2_Click()

End Sub

Private Sub Label3_Click()

End Sub

Private Sub DataGrid1_ButtonClick(ByVal ColIndex As Integer)
MsgBox DataGrid1.Col

End Sub



Private Sub DataGrid1_Click()

If DataGrid1.Col = 0 Then Text1.Text = DataGrid1.Columns(0).Value
If DataGrid1.Col = 1 Then DTPicker1.Value = DataGrid1.Columns(1).Value
If DataGrid1.Col = 3 Then maskedbox1.Text = DataGrid1.Columns(3).Value
End Sub

Private Sub Form_Load()

End Sub

Private Sub return_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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