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

📄 frmbuildproc.frm

📁 一个功能比较完善的远程抄表软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmBuildProc 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "楼内安全器操作"
   ClientHeight    =   1965
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3810
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1965
   ScaleWidth      =   3810
   ShowInTaskbar   =   0   'False
   Begin VB.ComboBox cmbBuild 
      Height          =   300
      Left            =   960
      Style           =   2  'Dropdown List
      TabIndex        =   3
      Top             =   120
      Width           =   2415
   End
   Begin VB.CommandButton cmdOpen 
      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          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CommandButton cmdClose 
      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          =   375
      Left            =   1320
      TabIndex        =   1
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CommandButton cmdCancel 
      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          =   375
      Left            =   2520
      TabIndex        =   0
      Top             =   1440
      Width           =   1095
   End
   Begin VB.Label Label1 
      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            =   360
      TabIndex        =   8
      Top             =   120
      Width           =   495
   End
   Begin VB.Label lblBuild 
      Height          =   255
      Left            =   1800
      TabIndex        =   7
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label3 
      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            =   600
      TabIndex        =   6
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label2 
      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            =   600
      TabIndex        =   5
      Top             =   600
      Width           =   1095
   End
   Begin VB.Label lblFrame 
      Height          =   255
      Left            =   1800
      TabIndex        =   4
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "frmBuildProc"
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 rcBuild As Recordset

Private Sub cmbBuild_Click()
On Error GoTo ProcError
    rcBuild.FindFirst "trim(BuildID)=""" + Trim(cmbBuild.List(cmbBuild.ListIndex)) + """"
    If Not rcBuild.NoMatch Then
        lblFrame = rcBuild!FrameID
        lblBuild = rcBuild!Address
        cmdOpen.Enabled = True
        cmdClose.Enabled = True
    Else
        cmdOpen.Enabled = False
        cmdClose.Enabled = False
        lblrame = ""
        lblBuild = ""
    End If
    Exit Sub
ProcError:
    ProcErr
End Sub


Private Sub cmdCancel_Click()
    Unload frmBuildProc
End Sub

Private Sub cmdClose_Click()
    If IsNumeric(lblBuild.Caption) Then
        If Val(lblBuild.Caption) <> 0 Then
            CloseBuild (Val(lblBuild.Caption))
        End If
    End If
End Sub

Private Sub cmdOpen_Click()
Dim temVal As Boolean

    If IsNumeric(lblBuild.Caption) Then
        If Val(lblBuild.Caption) <> 0 Then
            temVal = openBuild(Val(lblBuild.Caption))
'status
            AppendStatusInfo "打开" & Val(lblBuild.Caption) & "楼安全器", icoBLUE
            SaveLog "打开" & Val(lblBuild.Caption) & "楼安全器", 0
        End If
    End If
End Sub

Private Sub Form_Load()
On Error GoTo ProcError
    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 BuildMap order by FrameID ASC "
    Set rcBuild = dbCbb.OpenRecordset(SQL)
    Do While Not rcBuild.EOF
        cmbBuild.AddItem Trim(rcBuild!BuildID)
        rcBuild.MoveNext
    Loop
    
        cmdOpen.Enabled = False
        cmdClose.Enabled = False
        
    DoEvents
    Exit Sub
ProcError:
    ProcErr
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 + -