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

📄 frmbhdzbgb.frm

📁 县级电力调度管理信息系统。VB6.0开发。 DMIS调度子系统包括以下功能模块:调度操作票管理、调度运行日志、调度交接班管理、调度值班管理、调度报表管理、调度文档、避峰拉闸限电管理等7个业务模块。
💻 FRM
📖 第 1 页 / 共 2 页
字号:
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 frmbhdzbgb 
   Caption         =   "保护定值变更记录"
   ClientHeight    =   7050
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8130
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   7050
   ScaleWidth      =   8130
   Begin VB.CheckBox Check1 
      Caption         =   "全选"
      Height          =   255
      Left            =   600
      TabIndex        =   12
      Top             =   120
      Width           =   855
   End
   Begin VB.ListBox List1 
      BackColor       =   &H00C0C0C0&
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   1500
      Left            =   0
      TabIndex        =   11
      Top             =   480
      Width           =   1215
   End
   Begin VB.CheckBox Check2 
      Caption         =   "全选"
      Height          =   255
      Left            =   600
      TabIndex        =   10
      Top             =   2400
      Width           =   855
   End
   Begin VB.ListBox List2 
      BackColor       =   &H00C0C0C0&
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   1500
      Left            =   0
      TabIndex        =   9
      Top             =   2760
      Width           =   1215
   End
   Begin VB.CheckBox Check3 
      Caption         =   "全选"
      Height          =   255
      Left            =   600
      TabIndex        =   8
      Top             =   4680
      Width           =   855
   End
   Begin VB.ListBox List3 
      BackColor       =   &H00C0C0C0&
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   1740
      Left            =   0
      TabIndex        =   7
      Top             =   5040
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   375
      Index           =   0
      Left            =   1920
      TabIndex        =   3
      Top             =   6240
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   375
      Index           =   1
      Left            =   3600
      TabIndex        =   2
      Top             =   6240
      Width           =   975
   End
   Begin VB.CommandButton Command3 
      Caption         =   "查询"
      Height          =   375
      Index           =   2
      Left            =   5160
      TabIndex        =   1
      Top             =   6240
      Width           =   975
   End
   Begin VB.CommandButton Command5 
      Caption         =   "打印"
      Height          =   375
      Index           =   0
      Left            =   6840
      TabIndex        =   0
      Top             =   6240
      Width           =   975
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   1560
      Top             =   6840
      Visible         =   0   'False
      Width           =   6375
      _ExtentX        =   11245
      _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         =   "PROVIDER=MSDASQL;dsn=ddmis;uid=mis;pwd=mis005;database=zhcx"
      OLEDBString     =   "PROVIDER=MSDASQL;dsn=ddmis;uid=mis;pwd=mis005;database=zhcx"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from xdgl_bhdzbgb"
      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 MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frmbhdzbgb.frx":0000
      Height          =   5295
      Left            =   1560
      TabIndex        =   4
      Top             =   480
      Width           =   6375
      _ExtentX        =   11245
      _ExtentY        =   9340
      _Version        =   393216
      AllowUpdate     =   -1  'True
      BackColor       =   16761024
      ForeColor       =   8388608
      HeadLines       =   1
      RowHeight       =   16
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   10.5
         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 MSComCtl2.DTPicker DTPicker2 
      Height          =   375
      Left            =   5880
      TabIndex        =   5
      Top             =   0
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Format          =   64749569
      CurrentDate     =   37895
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   2880
      TabIndex        =   6
      Top             =   0
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Format          =   64749569
      CurrentDate     =   37895
   End
   Begin VB.Label Label1 
      Caption         =   "厂站"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   0
      TabIndex        =   17
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "设备"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   0
      TabIndex        =   16
      Top             =   2400
      Width           =   495
   End
   Begin VB.Label Label3 
      Caption         =   "名称"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   0
      TabIndex        =   15
      Top             =   4680
      Width           =   495
   End
   Begin VB.Label Label4 
      Caption         =   "开始时间"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   1920
      TabIndex        =   14
      Top             =   120
      Width           =   975
   End
   Begin VB.Label Label5 
      Caption         =   "结束时间"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   4920
      TabIndex        =   13
      Top             =   120
      Width           =   975
   End
End
Attribute VB_Name = "frmbhdzbgb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim sql1 As String
Dim sq12 As String
Dim sql3 As String
Dim sql4 As String
Dim RS As ADODB.Recordset

Private Sub Check1_Click()
If Check1.Value Then
   sql4 = "select * from xdgl_bhdzbgb where slsj BETWEEN '" & DTPicker1.Value & "' and '" & DTPicker2.Value & "' order by SLSJ"
End If
   Adodc1.RecordSource = sql4
   Adodc1.Refresh
   DataGrid1.Refresh
   Call sx
End Sub

Private Sub Check2_Click()
   If Check1.Value Then
       sql2 = "select * from xdgl_bhdzbgb order by SLSJ"
    Else
       If Check2.Value Then
           sql2 = "select * from xdgl_bhdzbgb where dwmc='" & Trim(List1.Text) & "' order by SLSJ"
       Else
           If Check3.Value Then
               sql2 = "select * from xdgl_bhdzbgb where dwmc='" & Trim(List1.Text) & "' and sbxl='" & Trim(List2.Text) & "' order by SLSJ"
            Else
               sql2 = "select * from xdgl_bhdzbgb where dwmc='" & Trim(List1.Text) & "' and sbxl='" & Trim(List2.Text) & "' and sbbh='" & Trim(List3.Text) & "' order by SLSJ"
            End If
        End If
    End If
    Adodc1.RecordSource = sql2
    Adodc1.Refresh
    DataGrid1.Refresh
  Call sx
End Sub

Private Sub Check3_Click()
   If Check1.Value Then
       sql2 = "select * from xdgl_bhdzbgb slsj BETWEEN '" & DTPicker1.Value & "' and '" & DTPicker2.Value & "' order by SLSJ"
    Else
       If Check2.Value Then
           sql2 = "select * from xdgl_bhdzbgb where slsj BETWEEN '" & DTPicker1.Value & "' and '" & DTPicker2.Value & "' and dwmc='" & Trim(List1.Text) & "' order by SLSJ"
       Else
           If Check3.Value Then
               sql2 = "select * from xdgl_bhdzbgb where slsj BETWEEN '" & DTPicker1.Value & "' and '" & DTPicker2.Value & "' and  dwmc='" & Trim(List1.Text) & "' and sbxl='" & Trim(List2.Text) & "' order by SLSJ"
            Else
               sql2 = "select * from xdgl_bhdzbgb where slsj BETWEEN '" & DTPicker1.Value & "' and '" & DTPicker2.Value & "' and  dwmc='" & Trim(List1.Text) & "' and sbxl='" & Trim(List2.Text) & "' and sbbh='" & Trim(List3.Text) & "' order by SLSJ"

⌨️ 快捷键说明

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