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

📄 frmchkgate.frm

📁 一个功能比较完善的远程抄表软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmChkGate 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "网段检查"
   ClientHeight    =   1530
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3960
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1530
   ScaleWidth      =   3960
   Begin VB.CommandButton cmdOK 
      Caption         =   "检查"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   2
      Top             =   840
      Width           =   1215
   End
   Begin VB.CommandButton cmdCancle 
      Caption         =   "返回"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2040
      TabIndex        =   1
      Top             =   840
      Width           =   1215
   End
   Begin VB.ComboBox cmbFrame 
      Height          =   300
      Left            =   1440
      Style           =   2  'Dropdown List
      TabIndex        =   0
      Top             =   240
      Width           =   1695
   End
   Begin VB.Label lblGate 
      BackColor       =   &H80000004&
      BackStyle       =   0  'Transparent
      Caption         =   "网段:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   720
      TabIndex        =   3
      Top             =   240
      Width           =   615
   End
End
Attribute VB_Name = "frmChkGate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/07/09
'描    述:CBB三表户外计量系统 Ver 5.2
'网    站: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 chkFrameID As Integer
Dim rcGate As Recordset


Private Sub cmbFrame_Click()
    If Trim(cmbFrame.List(cmbFrame.ListIndex)) <> "" Then
        cmdOK.Enabled = True
    Else
        cmdOK.Enabled = False
    End If
End Sub


Private Sub cmdCancle_Click()
    Unload frmChkGate
End Sub

Private Sub cmdCancle_KeyPress(KeyAscii As Integer)
    If KeyAscii = 27 Then
        cmdCancle_Click
    End If

End Sub

Private Sub cmdOK_Click()
Dim chkFrameID As Integer
    
    cmdOK.Enabled = False
    
    If Trim(cmbFrame.List(cmbFrame.ListIndex)) = "" Then
        cmdOK.Enabled = True
        Exit Sub
    End If
    chkFrameID = Val(Trim(cmbFrame.List(cmbFrame.ListIndex)))
    
    CheckGate (chkFrameID)
'status
    AppendStatusInfo "检查" & chkFrameID & "网段", icoBLUE
    SaveLog "检查" & chkFrameID & "网段", 0
    
    cmdOK.Enabled = True
End Sub

Private Sub cmdOK_KeyPress(KeyAscii As Integer)
    If KeyAscii = 27 Then
        cmdCancle_Click
    End If

End Sub

Private Sub Form_Load()
    If UBound(curForm) > 0 Then
        curForm(UBound(curForm)).Enabled = False
    End If
    ReDim Preserve curForm(UBound(curForm) + 1)
    Set curForm(UBound(curForm)) = Me

    
    SQL = "select * from GateMap order by FrameID ASC "
    Set rcGate = dbCbb.OpenRecordset(SQL)
    Do While Not rcGate.EOF
        cmbFrame.AddItem Format(rcGate!FrameID)
        rcGate.MoveNext
    Loop
    
    DoEvents
End Sub


Private Sub Form_Unload(Cancel As Integer)
    ReDim Preserve curForm(UBound(curForm) - 1)
    If UBound(curForm) > 0 Then
        curForm(UBound(curForm)).Enabled = True
    End If

End Sub

⌨️ 快捷键说明

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