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

📄 frmzhczptjb.frm

📁 县级电力调度管理信息系统。VB6.0开发。 DMIS调度子系统包括以下功能模块:调度操作票管理、调度运行日志、调度交接班管理、调度值班管理、调度报表管理、调度文档、避峰拉闸限电管理等7个业务模块。
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      TabIndex        =   0
      Text            =   "Frmzhczptjb.frx":0015
      Top             =   960
      Width           =   4215
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   9600
      TabIndex        =   7
      Top             =   240
      Width           =   1695
      _ExtentX        =   2990
      _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
      CustomFormat    =   "yyyy-MM"
      Format          =   61210627
      CurrentDate     =   37904
   End
   Begin VB.Label Label13 
      Caption         =   "评价情况"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   9120
      TabIndex        =   28
      Top             =   1320
      Width           =   855
   End
   Begin VB.Label Label12 
      Caption         =   "执行情况"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   9120
      TabIndex        =   27
      Top             =   840
      Width           =   975
   End
   Begin VB.Label Label11 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   1200
      TabIndex        =   19
      Top             =   600
      Width           =   1575
   End
   Begin VB.Label Label2 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   1200
      TabIndex        =   18
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "拟票时间"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   8280
      TabIndex        =   14
      Top             =   360
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "县调综令第"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   3360
      TabIndex        =   13
      Top             =   360
      Width           =   1335
   End
   Begin VB.Label Label6 
      Caption         =   "号"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   7200
      TabIndex        =   12
      Top             =   360
      Width           =   255
   End
   Begin VB.Label Label3 
      Caption         =   "操作单位"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   120
      TabIndex        =   11
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label7 
      Caption         =   "操作任务"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   255
      Left            =   3360
      TabIndex        =   10
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label9 
      Caption         =   "备  注:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   375
      Left            =   120
      TabIndex        =   9
      Top             =   1800
      Width           =   975
   End
   Begin VB.Label Label10 
      Caption         =   "注意事项"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   375
      Left            =   120
      TabIndex        =   8
      Top             =   2520
      Width           =   1095
   End
End
Attribute VB_Name = "Frmzhczptjb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim sql1 As String
Dim sql2 As String
Dim sql3 As String
Dim RS As ADODB.Recordset

Private Sub Combo2_Click()
Call Open_link
sql2 = "select * from xdgl_zhczpzb where zlph='" & Trim(Combo2.Text) & "'"
       Set RS = ZHCX.Execute(sql2, 0)
         If Not RS.EOF Then
          If Not IsNull(RS("npyj")) Then
              Label2.Caption = Trim(RS("npyj"))
          End If
          If Not IsNull(RS("npjtxm")) Then
              Label11.Caption = Trim(RS("npjtxm"))
          End If
          If Not IsNull(RS("czdw")) Then
              Combo3.Text = Trim(RS("czdw"))
          End If
          If Not IsNull(RS("czrw")) Then
              Text4.Text = Trim(RS("czrw"))
          End If
          If Not IsNull(RS("bz")) Then
             Text2.Text = Trim(RS("bz"))
         End If
     Else
         A = MsgBox("没有相关票据!", vbOKOnly)
      End If
      If RS.State Then
         RS.Close
      End If
 sql3 = "select * from XDGL_ZHCZPFB where zlph='" & Trim(Combo2.Text) & "'"
 Adodc1.RecordSource = sql3
  Set RS = ZHCX.Execute(sql1, 0)
      If Not Adodc1.Recordset.EOF Then
           Adodc1.Recordset.Update
       End If
      If RS.State Then
         RS.Close
      End If
      Adodc1.Refresh
      DataGrid1.Refresh
      Call sx
Call Close_link
End Sub

Private Sub Combo3_Click()
   Call Open_link
    sql1 = "select * from xggl_zhczpzb where czdw='" & Trim(Combo3.Text) & "' and rq between '" & Format(DTPicker1.Value, "yyyy-mm-01") & "' and '" & DateAdd("d", -1, DateAdd("m", 1, Format(DTPicker1.Value, "yyyy-mm-01"))) & "'"
    Set RS = ZHCX.Execute(sql1, 0)
        
        If RS.State Then
           RS.Close
        End If
   Call Close_link
End Sub

Private Sub Command1_Click()
On Error Resume Next
Unload ActiveReport3
ActiveReport3.Show
Call Open_link
Sql = "select * from xdgl_zhczpzb where zlph='" & Trim(Combo2.Text) & "'"
Set RS = ZHCX.Execute(Sql, 0)
If RS.EOF Then
    ActiveReport3.Label12 = Format(DTPicker1.Value, "yyyy年mm月dd日")
    ActiveReport3.Label4 = ""
    ActiveReport3.Label5 = ""
    ActiveReport3.Label9 = ""
    ActiveReport3.Label17 = ""
    ActiveReport3.Label19 = ""
    ActiveReport3.Field4.Text = ""

Else
    ActiveReport3.Label12 = Format(RS("zxrq"), "yyyy年mm月dd日")
        ActiveReport3.Label62 = Format(RS("rq"), "yyyy-mm-dd hh:mm")
    ActiveReport3.Label4 = Trim(RS("npyj"))
    ActiveReport3.Label5 = Trim(RS("npjtxm"))
    ActiveReport3.Label9 = Trim(Combo2.Text)
    ActiveReport3.Label17 = Trim(RS("czdw"))
    ActiveReport3.Label19 = Trim(RS("czrw"))
    ActiveReport3.Field4.Text = Trim(RS("bz"))

End If
If RS.State Then
   RS.Close
End If
Sql = "select * from xdgl_zhczpfb where zlph='" & Trim(Combo2.Text) & "'"
Set RS = ZHCX.Execute(Sql, 0)
If Not RS.EOF Then
    ActiveReport3.Label53.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
    RS.MoveNext
    If Err Then Err.Clear
    If Not RS.EOF Then
        ActiveReport3.Label54.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
            RS.MoveNext
            If Not RS.EOF Then
                ActiveReport3.Label55.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                RS.MoveNext
                If Not RS.EOF Then
                    ActiveReport3.Label56.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                    RS.MoveNext
                    If Not RS.EOF Then
                            ActiveReport3.Label57.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                            RS.MoveNext
                            If Not RS.EOF Then
                                ActiveReport3.Label58.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                                RS.MoveNext
                                If Not RS.EOF Then
                                    ActiveReport3.Label59.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                                    RS.MoveNext
                                    If Not RS.EOF Then
                                         ActiveReport3.Label60.Caption = Trim(CStr(RS("jlxh"))) + " . " + Trim(CStr(RS("zysx")))
                                         RS.MoveNext
                                    End If
                                End If
                            End If
                    End If
                End If
            End If
    End If
End If
If RS.State Then
    RS.Close
End If
Call Close_link
'ActiveReport3.PageSetup
End Sub

Private Sub Command2_Click()
  Call Open_link
If Option3.Value Then
   sql1 = "update xdgl_zhczpzb set pjjg='合格' where zlph='" & Trim(Combo2.Text) & "'"
Else
   If Option4.Value Then
    sql1 = "update xdgl_zhczpzb set pjjg='不合格' where zlph='" & Trim(Combo2.Text) & "'"
   End If
End If
Set RS = ZHCX.Execute(sql1, 0)
If RS.State Then
   RS.Close
End If
Call Close_link
End Sub

Private Sub Command3_Click()
Call Open_link
If Option1.Value Then

⌨️ 快捷键说明

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