📄 frmdevice.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form FrmDevice
Caption = "设备资产"
ClientHeight = 8895
ClientLeft = 60
ClientTop = 450
ClientWidth = 13365
Icon = "FrmDevice.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 8895
ScaleWidth = 13365
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame2
Caption = "设备统计"
Height = 615
Left = 3120
TabIndex = 7
Top = 8160
Width = 10215
Begin VB.Label lblCount4
Height = 255
Left = 8160
TabIndex = 17
Top = 240
Width = 855
End
Begin VB.Label lblCount3
Height = 255
Left = 6120
TabIndex = 16
Top = 240
Width = 855
End
Begin VB.Label lblCount2
Height = 255
Left = 4440
TabIndex = 15
Top = 240
Width = 855
End
Begin VB.Label lblCount1
Height = 255
Left = 2760
TabIndex = 14
Top = 240
Width = 855
End
Begin VB.Label lblCountAll
Height = 255
Left = 840
TabIndex = 13
Top = 240
Width = 855
End
Begin VB.Label Label8
Caption = "光纤收发器:"
Height = 255
Left = 7080
TabIndex = 12
Top = 240
Width = 1095
End
Begin VB.Label Label7
Caption = "集线器:"
Height = 255
Left = 5400
TabIndex = 11
Top = 240
Width = 855
End
Begin VB.Label Label6
Caption = "交换机:"
Height = 255
Left = 3720
TabIndex = 10
Top = 240
Width = 855
End
Begin VB.Label Label5
Caption = "路由器:"
Height = 255
Left = 2040
TabIndex = 9
Top = 240
Width = 855
End
Begin VB.Label Label4
Caption = "总计:"
Height = 255
Left = 240
TabIndex = 8
Top = 240
Width = 735
End
End
Begin VB.Frame Frame1
Caption = "查找"
Height = 1575
Left = 3120
TabIndex = 2
Top = 840
Width = 10095
Begin VB.TextBox txtPropertyId
Height = 390
Left = 1200
TabIndex = 26
Top = 1080
Width = 2175
End
Begin VB.ComboBox cboModel
Height = 300
Left = 1200
Style = 2 'Dropdown List
TabIndex = 24
Top = 720
Width = 2175
End
Begin VB.ComboBox cboDevicetype
Height = 300
Left = 4320
Style = 2 'Dropdown List
TabIndex = 22
Top = 240
Width = 2175
End
Begin VB.ComboBox cboManufacturer
Height = 300
Left = 7680
Style = 2 'Dropdown List
TabIndex = 19
Top = 240
Width = 2175
End
Begin VB.CheckBox chkFindAll
Caption = "在所有设备中查找"
Height = 255
Left = 3600
TabIndex = 18
Top = 720
Width = 2175
End
Begin VB.CommandButton cmdSearch
Caption = "查找"
Height = 375
Left = 7320
TabIndex = 6
Top = 720
Width = 1455
End
Begin VB.TextBox txtNetcenterId
Height = 390
Left = 1200
TabIndex = 5
Top = 240
Width = 2175
End
Begin VB.Label Label10
Caption = "固定资产号:"
Height = 255
Left = 120
TabIndex = 25
Top = 1200
Width = 1335
End
Begin VB.Label Label9
Caption = "型号:"
Height = 255
Left = 120
TabIndex = 23
Top = 720
Width = 855
End
Begin VB.Label Label3
Caption = "类型:"
Height = 255
Left = 3600
TabIndex = 21
Top = 360
Width = 855
End
Begin VB.Label Label2
Caption = "厂商:"
Height = 255
Left = 6960
TabIndex = 20
Top = 360
Width = 855
End
Begin VB.Label Label1
Caption = "中心编号:"
Height = 255
Left = 120
TabIndex = 4
Top = 360
Width = 975
End
End
Begin MSComctlLib.TreeView TreeView1
Height = 7935
Left = 0
TabIndex = 1
Top = 840
Width = 3015
_ExtentX = 5318
_ExtentY = 13996
_Version = 393217
Indentation = 531
Style = 7
Appearance = 1
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 780
Left = 0
TabIndex = 0
Top = 0
Width = 13365
_ExtentX = 23574
_ExtentY = 1376
ButtonWidth = 1032
ButtonHeight = 1376
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "添加"
Key = "添加"
ImageIndex = 2
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "导出"
Key = "导出"
ImageIndex = 4
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "关闭"
Key = "关闭"
ImageIndex = 1
EndProperty
EndProperty
Begin MSComctlLib.ImageList ImageList2
Left = 8880
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 4
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":08CA
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":0C64
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":11FE
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":1598
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 8040
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 4
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":1B32
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":240C
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":2CE6
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmDevice.frx":35C0
Key = ""
EndProperty
EndProperty
End
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 5535
Left = 3120
TabIndex = 3
Top = 2640
Width = 10215
_ExtentX = 18018
_ExtentY = 9763
_Version = 393216
RowHeightMin = 315
WordWrap = -1 'True
HighLight = 0
FillStyle = 1
AllowUserResizing= 1
End
End
Attribute VB_Name = "FrmDevice"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/09/25
'描 述:江苏大学网络信息中心网络管理系统 - v1.0 Beta
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Dim txtSQL As String
Dim txtQuery As String
Dim MsgText As String
Dim HasError As Boolean
Dim searchQuery As String
Dim rootNode As Node, nd As Node
Dim count_all As Integer
Dim count_1 As Integer
Dim count_2 As Integer
Dim count_3 As Integer
Dim count_4 As Integer
Private WithEvents mMSFlexGrid1 As cFlexGridBinder
Attribute mMSFlexGrid1.VB_VarHelpID = -1
Private Sub cmdSearch_Click()
If chkFindAll.Value = 0 And txtQuery = "" Then
MsgBox "您是否需要选择一个设备地点或设备状态,以限定搜索范围? 如果不是,请将勾上“所有设备中查找”", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
searchQuery = ""
If chkFindAll.Value = 1 Or txtQuery = "" Then
txtQuery = " where device_id > 0"
End If
If Trim(txtNetcenterId.Text) <> "" Then
searchQuery = searchQuery & " and netcenter_id = '" & Trim(txtNetcenterId.Text) & "' "
End If
If Trim(cboDevicetype.Text) <> "" Then
searchQuery = searchQuery & " and type_name = '" & Trim(cboDevicetype.Text) & "' "
End If
If Trim(cboManufacturer.Text) <> "" Then
searchQuery = searchQuery & " and manufacturer_name = '" & Trim(cboManufacturer.Text) & "' "
End If
If Trim(cboModel.Text) <> "" Then
searchQuery = searchQuery & " and model_name = '" & Trim(cboModel.Text) & "' "
End If
If Trim(txtPropertyId.Text) <> "" Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -