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

📄 frmsimulation.frm

📁 一个为公安系统接警中心控制软件,不错哦.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSimulation 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "模拟报警"
   ClientHeight    =   2670
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   1545
   Icon            =   "frmSimulation.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2670
   ScaleWidth      =   1545
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      ForeColor       =   &H00FF0000&
      Height          =   1995
      Left            =   120
      TabIndex        =   3
      Top             =   20
      Width           =   1215
      Begin VB.TextBox txtAccountCode 
         Height          =   300
         Left            =   360
         TabIndex        =   0
         Top             =   600
         Width           =   735
      End
      Begin VB.ComboBox cobzoneNum 
         Height          =   300
         Left            =   360
         TabIndex        =   1
         Top             =   1560
         Width           =   735
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "用户编码"
         Height          =   180
         Left            =   120
         TabIndex        =   5
         Top             =   240
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "防区号"
         Height          =   180
         Left            =   120
         TabIndex        =   4
         Top             =   1200
         Width           =   540
      End
   End
   Begin VB.CommandButton cmdAlert 
      BackColor       =   &H00C0C000&
      Caption         =   "报警(&P)"
      Default         =   -1  'True
      Height          =   375
      Left            =   260
      MaskColor       =   &H00FF8080&
      TabIndex        =   2
      Top             =   2160
      Width           =   975
   End
End
Attribute VB_Name = "frmSimulation"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub cmdAlert_Click()
Dim sAccountCode As String
Dim sZoneCode As String
sAccountCode = txtAccountCode.Text
sZoneCode = cobzoneNum.Text
If Len(sAccountCode) <> 4 Or Len(sZoneCode) <> 2 Then
    MsgBox "防区号或用户编码有错!,请重新输入。"
    Exit Sub
End If
FrmProcessEvent.AddNewAlarmEvent sAccountCode, "0", sZoneCode
End Sub

Private Sub cobzoneNum_DropDown()
cobzoneNum.Clear
Dim strSQl As String
Dim sTemp As String
sTemp = txtAccountCode.Text
If sTemp = "" Or Len(sTemp) <> 4 Then
Exit Sub
End If
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
strSQl = "select FZoneCode from ZoneArea where FaccountID ='" & sTemp & "'"
rs.Open strSQl, m_gCnAlarm, adOpenStatic, adLockOptimistic
With rs
    If Not (.EOF And .BOF) Then
        
        Do While Not .EOF
            cobzoneNum.AddItem !Fzonecode
            .MoveNext
        Loop
    End If
End With
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{Tab}"
    End If
End Sub

Private Sub Form_Load()
    SetForm Me, 9
End Sub

⌨️ 快捷键说明

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