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

📄 frmreport.frm

📁 基于化工行业造气岗位的自动化监控系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{E228A480-FDCB-11D5-A3C8-0050BF074C3F}#2.0#0"; "curtPrinter.ocx"
Begin VB.Form frmReport 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "报表管理"
   ClientHeight    =   11115
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   15240
   Icon            =   "frmReport.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   11115
   ScaleWidth      =   15240
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin VB.Frame Frame1 
      Height          =   10935
      Left            =   0
      TabIndex        =   6
      Top             =   0
      Width           =   1455
      Begin VB.CommandButton cmdClose 
         Caption         =   "关  闭"
         Height          =   495
         Left            =   120
         TabIndex        =   17
         Top             =   6960
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "单炉日报表"
         Height          =   495
         Index           =   0
         Left            =   120
         TabIndex        =   16
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "H岗位日报表"
         Height          =   495
         Index           =   1
         Left            =   120
         TabIndex        =   15
         Top             =   3360
         Width           =   1215
      End
      Begin VB.CommandButton cmdPrint 
         Caption         =   "打印报表&P"
         Height          =   495
         Left            =   120
         TabIndex        =   14
         Top             =   6120
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "流量累计日报表"
         Height          =   495
         Index           =   3
         Left            =   120
         TabIndex        =   13
         Top             =   930
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "流量统计月报表"
         Height          =   495
         Index           =   4
         Left            =   120
         TabIndex        =   12
         Top             =   4560
         Visible         =   0   'False
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "交接班报表"
         Height          =   495
         Index           =   2
         Left            =   120
         TabIndex        =   11
         Top             =   1680
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "消耗产量日报表"
         Height          =   495
         Index           =   5
         Left            =   120
         TabIndex        =   10
         Top             =   5160
         Visible         =   0   'False
         Width           =   1215
      End
      Begin VB.CommandButton cmdReport 
         Caption         =   "系统日报表"
         Height          =   495
         Index           =   6
         Left            =   120
         TabIndex        =   9
         Top             =   2520
         Width           =   1215
      End
      Begin VB.TextBox txtID 
         Alignment       =   2  'Center
         Height          =   270
         Left            =   120
         TabIndex        =   8
         Text            =   "1"
         Top             =   10500
         Width           =   975
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除上月数据&D"
         Height          =   495
         Left            =   120
         TabIndex        =   7
         Top             =   8280
         Width           =   1215
      End
      Begin MSComCtl2.UpDown UpDownID 
         Height          =   375
         Left            =   1080
         TabIndex        =   18
         Top             =   10440
         Width           =   240
         _ExtentX        =   423
         _ExtentY        =   661
         _Version        =   393216
         Value           =   1
         OrigLeft        =   5400
         OrigTop         =   10440
         OrigRight       =   5640
         OrigBottom      =   10815
         Max             =   50
         Enabled         =   -1  'True
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   330
         Left            =   120
         TabIndex        =   19
         Top             =   9600
         Width           =   1245
         _ExtentX        =   2196
         _ExtentY        =   582
         _Version        =   393216
         Format          =   23789569
         CurrentDate     =   38166
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "选择炉号:"
         Height          =   180
         Index           =   1
         Left            =   120
         TabIndex        =   21
         Top             =   10080
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "选择日期:"
         Height          =   180
         Index           =   0
         Left            =   120
         TabIndex        =   20
         Top             =   9240
         Width           =   900
      End
   End
   Begin CurtPrinter打印预览控件.CurtPrinter CurtPrinter1 
      Height          =   1695
      Left            =   1680
      TabIndex        =   3
      Top             =   960
      Visible         =   0   'False
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   2990
      ForeColor       =   -2147483640
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Frame frmrpt 
      Height          =   11175
      Left            =   1485
      TabIndex        =   0
      Top             =   0
      Width           =   14815
      Begin VB.TextBox Text1 
         Height          =   1575
         Left            =   120
         MultiLine       =   -1  'True
         TabIndex        =   4
         Top             =   9360
         Width           =   13575
      End
      Begin MSComctlLib.ListView lstReport 
         Height          =   8055
         Left            =   120
         TabIndex        =   1
         Top             =   840
         Width           =   13575
         _ExtentX        =   23945
         _ExtentY        =   14208
         View            =   3
         LabelEdit       =   1
         LabelWrap       =   -1  'True
         HideSelection   =   -1  'True
         FullRowSelect   =   -1  'True
         GridLines       =   -1  'True
         _Version        =   393217
         ForeColor       =   -2147483640
         BackColor       =   -2147483643
         BorderStyle     =   1
         Appearance      =   1
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         NumItems        =   0
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "交班记录:"
         Height          =   180
         Index           =   2
         Left            =   120
         TabIndex        =   5
         Top             =   9120
         Width           =   900
      End
      Begin VB.Label lblReport 
         AutoSize        =   -1  'True
         Caption         =   "单炉日报表"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   21.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   435
         Left            =   3720
         TabIndex        =   2
         Top             =   240
         Width           =   2265
      End
   End
End
Attribute VB_Name = "frmReport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim lngIndex As Long
Dim strTitle As String
'Dim Conn As New ADODB.Connection
'Dim Cmd As New ADODB.Command
Dim rs As New ADODB.Recordset

Private Sub DTPicker1_Change()
If DTPicker1.Value < Date Then
    Select Case lngIndex
        Case 0
            DataRefresh 0, True
        Case 1
            DataRefresh 1, True
        Case 2
            DataRefresh 2, True
        Case 3
            DataRefresh 3, True
        Case 4
            DataRefresh 4, True
        Case 5
            DataRefresh 5, True
        Case 6
            DataRefresh 6, True
    End Select
End If
End Sub

Private Sub lstReport_ItemClick(ByVal Item As MSComctlLib.ListItem)
   If lngIndex = 2 Then Text1.Text = lstReport.ListItems(Item.Index).SubItems(lstReport.ListItems(Item.Index).ListSubItems.Count)
End Sub

Private Sub UpDownID_Change()
    If UpDownID.Value > StoveStart + StoveNumber - 1 Then
       UpDownID.Value = StoveStart
    ElseIf UpDownID.Value < StoveStart Then
       UpDownID.Value = StoveStart + StoveNumber - 1
    End If
    txtID.Text = UpDownID.Value
    DataRefresh 0, True
End Sub

Private Sub cmdClose_Click()
    Unload Me
End Sub

Private Sub cmdDelete_Click()
    Dim strConn As String
    Dim monthDel As Long
    lngPopedom = 4
    frmPassword.Show 1
    If mPassword Then
        If Month(Date) - 1 = 0 Then
            monthDel = 12
        Else
            monthDel = Month(Date) - 1
        End If
        Select Case lngIndex
            Case 0
                If IsAcess Then
                   Cmd.CommandText = "delete from RecStove where month(CDATE(Wdate))='" & monthDel & "'"
                Else
                   Cmd.CommandText = "delete from RecStove where month(Wdate)='" & monthDel & "'"
                End If
            Case 1
                If IsAcess Then
                   Cmd.CommandText = "delete from RecDay where month(CDATE(Wdate))='" & monthDel & "'"
                Else
                   Cmd.CommandText = "delete from RecDay where month(Wdate)='" & monthDel & "'"
                End If

⌨️ 快捷键说明

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