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

📄 frmsnhb.frm

📁 针对各种管理系统提供有的VB源代码
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form FrmSNHHZ 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "水 能 耗 汇 总"
   ClientHeight    =   5610
   ClientLeft      =   2040
   ClientTop       =   1830
   ClientWidth     =   7740
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   5610
   ScaleWidth      =   7740
   Begin VB.Frame Frame1 
      Caption         =   "统计条件"
      Height          =   1215
      Left            =   0
      TabIndex        =   8
      Top             =   480
      Width           =   7695
      Begin VB.CommandButton Command4 
         Caption         =   "关闭"
         Height          =   375
         Left            =   6840
         TabIndex        =   15
         Top             =   720
         Width           =   735
      End
      Begin VB.CommandButton Command2 
         Caption         =   "汇总"
         Height          =   375
         Left            =   5880
         TabIndex        =   14
         Top             =   720
         Width           =   735
      End
      Begin VB.Frame Frame2 
         BorderStyle     =   0  'None
         Caption         =   "Frame2"
         Height          =   615
         Left            =   1680
         TabIndex        =   10
         Top             =   360
         Visible         =   0   'False
         Width           =   4215
         Begin MSComCtl2.DTPicker BeginDate 
            Height          =   300
            Left            =   240
            TabIndex        =   11
            Top             =   240
            Width           =   1455
            _ExtentX        =   2566
            _ExtentY        =   529
            _Version        =   393216
            Format          =   66060289
            CurrentDate     =   36187
         End
         Begin MSComCtl2.DTPicker EndDate 
            Height          =   300
            Left            =   2520
            TabIndex        =   12
            Top             =   240
            Width           =   1455
            _ExtentX        =   2566
            _ExtentY        =   529
            _Version        =   393216
            Format          =   66060289
            CurrentDate     =   36187
         End
      End
      Begin VB.CheckBox Check1 
         Caption         =   "日期"
         Height          =   255
         Left            =   840
         TabIndex        =   9
         Top             =   600
         Width           =   1215
      End
   End
   Begin VB.Frame Frame3 
      Height          =   3735
      Left            =   0
      TabIndex        =   0
      Top             =   1800
      Width           =   7695
      Begin VB.Frame Frame4 
         Height          =   495
         Left            =   2400
         TabIndex        =   4
         Top             =   1440
         Width           =   2895
         Begin VB.TextBox SL 
            Height          =   300
            Left            =   960
            TabIndex        =   5
            Top             =   150
            Width           =   1815
         End
         Begin VB.Label Label3 
            Alignment       =   2  'Center
            BackStyle       =   0  'Transparent
            Caption         =   "数  量"
            Height          =   255
            Left            =   0
            TabIndex        =   6
            Top             =   195
            Width           =   855
         End
         Begin VB.Line Line3 
            BorderColor     =   &H80000003&
            X1              =   825
            X2              =   825
            Y1              =   120
            Y2              =   480
         End
         Begin VB.Line Line4 
            BorderColor     =   &H80000005&
            X1              =   840
            X2              =   840
            Y1              =   120
            Y2              =   600
         End
      End
      Begin VB.Frame Frame5 
         Height          =   495
         Left            =   2400
         TabIndex        =   1
         Top             =   2280
         Width           =   2895
         Begin VB.TextBox JE 
            Height          =   300
            Left            =   960
            TabIndex        =   2
            Top             =   150
            Width           =   1815
         End
         Begin VB.Line Line1 
            BorderColor     =   &H80000005&
            X1              =   840
            X2              =   840
            Y1              =   120
            Y2              =   600
         End
         Begin VB.Line Line2 
            BorderColor     =   &H80000003&
            X1              =   825
            X2              =   825
            Y1              =   120
            Y2              =   480
         End
         Begin VB.Label Label4 
            Alignment       =   2  'Center
            BackStyle       =   0  'Transparent
            Caption         =   "金额"
            Height          =   255
            Left            =   0
            TabIndex        =   3
            Top             =   195
            Width           =   855
         End
      End
      Begin VB.Label Label2 
         Caption         =   "单位:(立方)"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   2400
         TabIndex        =   7
         Top             =   1200
         Width           =   1695
      End
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "水 能 耗 汇 总"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   0
      TabIndex        =   13
      Top             =   0
      Width           =   7695
   End
End
Attribute VB_Name = "FrmSNHHZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
        Frame2.Visible = True
      Else
        Frame2.Visible = False
    End If
End Sub

Private Sub Command2_Click()
    'Me.Height = 6000
    SQL = "select * from 水能耗表 where 日期 between '" & BeginDate.Value & "' and '" & EndDate.Value & "'"
    Set rs = ConnWZ.Execute(SQL)
    Do While Not rs.EOF
        HZ = HZ + rs("数量")
        rs.MoveNext
    Loop
    SL = HZ
    JE = HZ * 10
End Sub

Private Sub Command1_Click()
   ' Me.Height = 2160
End Sub

Private Sub Command4_Click()
    SBGCGL.Enabled = True
    Unload Me
End Sub

Private Sub Form_Load()
   On Error Resume Next
    For Each TextBox In Me.Controls
        TextBox.Font.Name = "宋体"
        TextBox.Font.Size = 9
    Next

End Sub

⌨️ 快捷键说明

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