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

📄 frm保护装置.frm

📁 县级电力调度管理信息系统。VB6.0开发。 DMIS调度子系统包括以下功能模块:调度操作票管理、调度运行日志、调度交接班管理、调度值班管理、调度报表管理、调度文档、避峰拉闸限电管理等7个业务模块。
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm保护装置 
   Caption         =   "调度月报 ----保护装置动作情况"
   ClientHeight    =   5310
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7695
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   5310
   ScaleWidth      =   7695
   Begin VB.TextBox Text4 
      BackColor       =   &H00C0C0C0&
      Height          =   375
      Left            =   960
      TabIndex        =   12
      Top             =   720
      Width           =   615
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   1800
      TabIndex        =   4
      Text            =   "Combo1"
      Top             =   200
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00C0C0C0&
      Height          =   375
      Left            =   2640
      TabIndex        =   3
      Top             =   720
      Width           =   645
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00C0C0C0&
      Height          =   375
      Left            =   4680
      TabIndex        =   2
      Top             =   720
      Width           =   645
   End
   Begin VB.TextBox Text3 
      BackColor       =   &H00C0C0C0&
      Height          =   375
      Left            =   6840
      TabIndex        =   1
      Top             =   720
      Width           =   645
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Height          =   375
      Left            =   3240
      TabIndex        =   0
      Top             =   4680
      Width           =   1215
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   6000
      TabIndex        =   5
      Top             =   120
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      _Version        =   393216
      CustomFormat    =   "yyyy-MM"
      Format          =   61145091
      UpDown          =   -1  'True
      CurrentDate     =   37918
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frm保护装置.frx":0000
      Height          =   3255
      Left            =   0
      TabIndex        =   6
      Top             =   1320
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   5741
      _Version        =   393216
      BackColor       =   8454016
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   3480
      Top             =   2360
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label6 
      Caption         =   "总数"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   13
      Top             =   840
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   4800
      TabIndex        =   11
      Top             =   240
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "电压等级"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   600
      TabIndex        =   10
      Top             =   240
      Width           =   855
   End
   Begin VB.Label Label3 
      Caption         =   "正确次数"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1680
      TabIndex        =   9
      Top             =   840
      Width           =   855
   End
   Begin VB.Label Label4 
      Caption         =   "重合闸成功"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3360
      TabIndex        =   8
      Top             =   840
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "重合闸不成功"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   5400
      TabIndex        =   7
      Top             =   840
      Width           =   1335
   End
End
Attribute VB_Name = "frm保护装置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Call Open_link
  sql1 = "select * from xdgl_ddyb_bhzz where rq='" & DTPicker1.Value & "' and dydj='" & Trim(Combo1.Text) & "'"
  Set RS = ZHCX.Execute(sql1, 0)
   If RS.EOF Then
      sql1 = "insert xdgl_ddyb_bhzz (rq,dydj,zsl,zqcs,zchcg,zchbcg) values('" & DTPicker1.Value & "','" & Trim(Combo1.Text) & "','" & Trim(Text4.Text) & "','" & Trim(Text1.Text) & "'," & Trim(Text2.Text) & "," & Trim(Text3.Text) & ")"
   Else
      sql1 = "update xdgl_ddyb_bhzz set dydj='" & Trim(Combo1.Text) & "',zsl=" & Text4.Text & ",zqcs=" & Text1.Text & ",zchcg=" & Text2.Text & ",zchbcg=" & Text3.Text & " where rq='" & DTPicker1.Value & "' and dydj='" & Trim(Combo1.Text) & "'"
   End If
   If RS.State Then
       RS.Close
   End If
    Set RS = ZHCX.Execute(sql1, 0)
    
    If RS.State Then
       RS.Close
    End If
  
  Call Close_link
  Adodc1.Refresh
  
  Call sx
End Sub

Private Sub DTPicker1_Change()
 Adodc1.RecordSource = "select * from xdgl_ddyb_bhzz where rq='" & DTPicker1.Value & "' "

  Adodc1.Refresh
 Call sx
End Sub

Private Sub DTPicker1_Click()
 Adodc1.RecordSource = "select * from xdgl_ddyb_bhzz where rq='" & DTPicker1.Value & "' "

  Adodc1.Refresh
 Call sx
End Sub

Private Sub Form_Load()
 On Error Resume Next
 DTPicker1.Value = Format(Now, "yyyy-mm-01")
 Adodc1.ConnectionString = "PROVIDER=MSDASQL;dsn=ddmis;uid=mis;pwd=mis005;database=zhcx"
 Adodc1.RecordSource = "select * from xdgl_ddyb_bhzz where rq='" & DTPicker1.Value & "' "

Combo1.AddItem "全部装置"
Combo1.AddItem "10Kv"
Combo1.AddItem "35Kv"
Combo1.AddItem "110Kv"
Combo1.AddItem "故障录波"
Combo1.Text = ""

 Adodc1.Refresh
 Call sx
End Sub
Sub sx()
 DataGrid1.Columns(0).Visible = False
 DataGrid1.Columns(1).Caption = "     等 级"
 DataGrid1.Columns(1).Width = 1500
 DataGrid1.Columns(2).Caption = "     总数量 "
 DataGrid1.Columns(2).Width = 1500
 DataGrid1.Columns(3).Caption = "   正确次数"
 DataGrid1.Columns(3).Width = 1500
 DataGrid1.Columns(4).Caption = "   ZCH成功"
 DataGrid1.Columns(4).Width = 1500
 DataGrid1.Columns(5).Caption = "   ZCH不成功"
 DataGrid1.Columns(5).Width = 1500
End Sub

⌨️ 快捷键说明

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