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

📄 frmtablelook.frm

📁 本系统是本着实用的原则开发的
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmTableLook 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "机房状态监控(图示)"
   ClientHeight    =   6390
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7875
   Icon            =   "FrmTableLook.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6390
   ScaleWidth      =   7875
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtCPT_MemoDis 
      Height          =   1095
      Left            =   5640
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   19
      Top             =   5040
      Width           =   1935
   End
   Begin MSComctlLib.ImageList ImgComputer 
      Left            =   2520
      Top             =   2520
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   3
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmTableLook.frx":000C
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmTableLook.frx":08E8
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmTableLook.frx":11C4
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ListView lvwComputer 
      Height          =   5895
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   4815
      _ExtentX        =   8493
      _ExtentY        =   10398
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      SmallIcons      =   "ImgComputer"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin VB.Label lblCPT_Memo 
      AutoSize        =   -1  'True
      Caption         =   "计算机描述:"
      Height          =   180
      Left            =   5640
      TabIndex        =   20
      Top             =   4680
      Width           =   1080
   End
   Begin VB.Label lblStart_TimeList 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   18
      Top             =   4200
      Width           =   90
   End
   Begin VB.Label lblStart_Time 
      AutoSize        =   -1  'True
      Caption         =   "上机时间:"
      Height          =   180
      Left            =   5640
      TabIndex        =   17
      Top             =   4200
      Width           =   900
   End
   Begin VB.Label lblShjiTypeList 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   16
      Top             =   3720
      Width           =   90
   End
   Begin VB.Label lblShjiType 
      AutoSize        =   -1  'True
      Caption         =   "上机方式:"
      Height          =   180
      Left            =   5640
      TabIndex        =   15
      Top             =   3720
      Width           =   900
   End
   Begin VB.Label lblST_NameList 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   14
      Top             =   3240
      Width           =   90
   End
   Begin VB.Label lblST_Name 
      AutoSize        =   -1  'True
      Caption         =   "类别:"
      Height          =   180
      Left            =   5640
      TabIndex        =   13
      Top             =   3240
      Width           =   540
   End
   Begin VB.Label lblCH_NameList 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   12
      Top             =   2760
      Width           =   90
   End
   Begin VB.Label lblCH_Name 
      AutoSize        =   -1  'True
      Caption         =   "姓名:"
      Height          =   180
      Left            =   5640
      TabIndex        =   11
      Top             =   2760
      Width           =   540
   End
   Begin VB.Label lblCH_ID 
      AutoSize        =   -1  'True
      Caption         =   "卡号:"
      Height          =   180
      Left            =   5640
      TabIndex        =   10
      Top             =   2280
      Width           =   540
   End
   Begin VB.Label lblCH_IDList 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   9
      Top             =   2280
      Width           =   90
   End
   Begin VB.Label lblState 
      AutoSize        =   -1  'True
      Caption         =   "状态:"
      Height          =   180
      Left            =   5640
      TabIndex        =   8
      Top             =   1800
      Width           =   540
   End
   Begin VB.Label lblStateDis 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   7
      Top             =   1800
      Width           =   90
   End
   Begin VB.Label lblCPT_ID 
      AutoSize        =   -1  'True
      Caption         =   "计算机ID:"
      Height          =   180
      Left            =   5640
      TabIndex        =   6
      Top             =   360
      Width           =   900
   End
   Begin VB.Label lblCPT_IDDis 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   5
      Top             =   360
      Width           =   90
   End
   Begin VB.Label lblRow 
      AutoSize        =   -1  'True
      Caption         =   "行号:"
      Height          =   180
      Left            =   5640
      TabIndex        =   4
      Top             =   840
      Width           =   540
   End
   Begin VB.Label lblRowDis 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   3
      Top             =   840
      Width           =   90
   End
   Begin VB.Label lblTier 
      AutoSize        =   -1  'True
      Caption         =   "列号:"
      Height          =   180
      Left            =   5640
      TabIndex        =   2
      Top             =   1320
      Width           =   540
   End
   Begin VB.Label lblTierDis 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   6840
      TabIndex        =   1
      Top             =   1320
      Width           =   90
   End
End
Attribute VB_Name = "FrmTableLook"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rsComputer As Recordset
Dim rsCardholderTemp As Recordset
Dim lItem As ListItem
Private Sub Form_Load()
Set rsComputer = New Recordset
rsComputer.Open "select * from TbComputer ", Modmain.conn, 3, 2
lvwComputer.View = lvwIcon          '配置lvwComputer控件
lvwComputer.Icons = ImgComputer
lvwComputer.Sorted = True
lvwComputer.Visible = True
While Not rsComputer.EOF
    If rsComputer.Fields!State = "正常" Then
        Set lItem = lvwComputer.ListItems.Add(, , rsComputer.Fields("CPT_ID"), 3)
    ElseIf rsComputer.Fields!State = "使用" Then
        Set lItem = lvwComputer.ListItems.Add(, , rsComputer.Fields("CPT_ID"), 2)
    ElseIf rsComputer.Fields!State = "故障" Then
        Set lItem = lvwComputer.ListItems.Add(, , rsComputer.Fields("CPT_ID"), 1)
    End If
rsComputer.MoveNext
Wend
txtCPT_MemoDis.Enabled = False
rsComputer.Close
Set rsComputer = Nothing

frmHourStatistic.AddLog ("L31")          '记入操作日志
End Sub
Private Sub lvwComputer_ItemClick(ByVal Item As MSComctlLib.ListItem)
Set rsComputer = New Recordset
rsComputer.Open "select * from TbComputer where CPT_ID='" & Item & "' ", Modmain.conn, 3, 2
        lblCH_IDList.Caption = ""
        lblCH_nameList.Caption = ""
        lblST_NameList.Caption = ""
        lblShjiTypeList.Caption = ""
        lblStart_TimeList.Caption = ""

    If rsComputer.Fields!State = "使用" Then
        Set rsCardholderTemp = New Recordset
        rsCardholderTemp.Open "select * from TbCardholderTemp where CPT_ID='" & Item & "'", Modmain.conn, 3, 2
        lblCH_IDList.Caption = rsCardholderTemp.Fields!CH_ID
        lblCH_nameList.Caption = rsCardholderTemp.Fields!CH_Name
        lblST_NameList.Caption = rsCardholderTemp.Fields!ST_Name
        lblShjiTypeList.Caption = rsCardholderTemp.Fields!Fashion
        lblStart_TimeList.Caption = rsCardholderTemp.Fields!Start_Time
    End If
        lblCPT_IDDis.Caption = rsComputer.Fields!CPT_ID
        lblRowDis.Caption = rsComputer.Fields!row
        lblTierDis.Caption = rsComputer.Fields!Tier
        lblStateDis.Caption = rsComputer.Fields!State
        If rsComputer.Fields!CPT_Memo <> "" Then
            txtCPT_MemoDis.Text = rsComputer.Fields!CPT_Memo
        End If
End Sub

⌨️ 快捷键说明

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