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

📄 form5.frm

📁 这款双龙风景区售票系统 Ver 1.0
💻 FRM
字号:
VERSION 5.00
Object = "{CFA7AFF4-3242-4269-9172-7389D695AE01}#1.0#0"; "StoneXP.ocx"
Begin VB.Form form5 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "售票统计中心"
   ClientHeight    =   5385
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5940
   Icon            =   "Form5.frx":0000
   LinkTopic       =   "form5"
   MaxButton       =   0   'False
   ScaleHeight     =   5385
   ScaleWidth      =   5940
   StartUpPosition =   1  '所有者中心
   Begin StoneXP.XPFrame XPFrame1 
      Height          =   2055
      Left            =   600
      TabIndex        =   3
      Top             =   840
      Width           =   4695
      _ExtentX        =   8281
      _ExtentY        =   3625
      Caption         =   "自定义统计"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BackColor       =   16777152
      LeftSpace       =   0
      RightSpace      =   0
      RoundSize       =   5
      Begin 售票系统.XPCombo XPCombo1 
         Height          =   315
         Left            =   1200
         TabIndex        =   10
         Top             =   1350
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   556
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.TextBox Text2 
         Appearance      =   0  'Flat
         BeginProperty DataFormat 
            Type            =   1
            Format          =   "yyyy-M-d"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   3
         EndProperty
         Height          =   270
         Left            =   2640
         TabIndex        =   8
         Top             =   465
         Width           =   1575
      End
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         BeginProperty DataFormat 
            Type            =   1
            Format          =   "yyyy-M-d"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   3
         EndProperty
         Height          =   270
         Left            =   720
         TabIndex        =   7
         Top             =   465
         Width           =   1575
      End
      Begin StoneXP.XPButton XPButton4 
         Height          =   375
         Left            =   2880
         TabIndex        =   4
         Top             =   1320
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "开始统计"
         MouseIcon       =   "Form5.frx":000C
         MousePointer    =   99
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "游客类型:"
         Height          =   255
         Left            =   360
         TabIndex        =   11
         Top             =   1440
         Width           =   855
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "格式:YYYY-MM-DD"
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   2160
         TabIndex        =   9
         Top             =   840
         Width           =   1455
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "至"
         Height          =   255
         Left            =   2400
         TabIndex        =   6
         Top             =   480
         Width           =   255
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "日期:"
         Height          =   255
         Left            =   240
         TabIndex        =   5
         Top             =   480
         Width           =   495
      End
   End
   Begin StoneXP.XPButton XPButton1 
      Height          =   375
      Left            =   720
      TabIndex        =   0
      Top             =   360
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "日统计"
      MouseIcon       =   "Form5.frx":0326
      MousePointer    =   99
   End
   Begin StoneXP.XPButton XPButton2 
      Height          =   375
      Left            =   2160
      TabIndex        =   1
      Top             =   360
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "月统计"
      MouseIcon       =   "Form5.frx":0640
      MousePointer    =   99
   End
   Begin StoneXP.XPButton XPButton3 
      Height          =   375
      Left            =   3600
      TabIndex        =   2
      Top             =   360
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "年统计"
      MouseIcon       =   "Form5.frx":095A
      MousePointer    =   99
   End
   Begin StoneXP.XPFrame XPFrame2 
      Height          =   2055
      Left            =   600
      TabIndex        =   12
      Top             =   3120
      Width           =   4695
      _ExtentX        =   8281
      _ExtentY        =   3625
      Caption         =   "统计结果"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BackColor       =   16777152
      LeftSpace       =   0
      RightSpace      =   0
      RoundSize       =   5
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Height          =   255
         Left            =   3360
         TabIndex        =   16
         Top             =   600
         Width           =   1095
      End
      Begin VB.Label Label8 
         BackStyle       =   0  'Transparent
         Caption         =   "游客人数:"
         Height          =   255
         Left            =   360
         TabIndex        =   15
         Top             =   600
         Width           =   855
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "总金额:"
         Height          =   255
         Left            =   2640
         TabIndex        =   14
         Top             =   600
         Width           =   855
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Height          =   255
         Left            =   1200
         TabIndex        =   13
         Top             =   600
         Width           =   1095
      End
   End
End
Attribute VB_Name = "form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'作者:星零工作室
'发布日期:2007/03/08
'描    述:双龙风景区售票系统 Ver 1.0
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Dim Classprint As New OpenRs '定义打印记录集

Private Sub Form_Load()
Set fj3 = cnn.Execute("select * from 售票类型")
XPCombo1.AddItem "全部"
Do While Not fj3.EOF
XPCombo1.AddItem fj3.Fields(1)
fj3.MoveNext
Loop
End Sub

Private Sub XPButton1_Click()
sql = "select sum(人数),sum(金额) from 售票记录 where 售票日期='" & Date & "' and 注销='0'"
Set fj3 = cnn.Execute(sql)
Label5.Caption = fj3.Fields(0) & "人"
Label6.Caption = fj3.Fields(1) & "元"
End Sub

Private Sub XPButton2_Click()
sql = "select sum(人数),sum(金额) from 售票记录 where 售票日期 like '" & Year(Date) & "-" & Month(Date) & "%' and 注销='0'"
Set fj3 = cnn.Execute(sql)
Label5.Caption = fj3.Fields(0) & "人"
Label6.Caption = fj3.Fields(1) & "元"
End Sub

Private Sub XPButton3_Click()
sql = "select sum(人数),sum(金额) from 售票记录 where 售票日期 like '" & Year(Date) & "%' and 注销='0'"
Set fj3 = cnn.Execute(sql)
Label5.Caption = fj3.Fields(0) & "人"
Label6.Caption = fj3.Fields(1) & "元"
End Sub

Private Sub XPButton4_Click()
If Text1.Text <> "" And Text2.Text <> "" Then
 If XPCombo1.Text = "全部" Or XPCombo1.Text = "" Then
sql = "select sum(人数),sum(金额) from 售票记录 where 售票日期>='" & Text1.Text & "' and 售票日期<='" & Text2.Text & "' and 注销='0'"
 Else
 sql = "select sum(人数),sum(金额) from 售票记录 where 售票日期>='" & Text1.Text & "' and 售票日期<='" & Text2.Text & "' and 售票类型='" & XPCombo1.Text & "' and 注销='0'"
 End If
Set fj3 = cnn.Execute(sql)
Label5.Caption = fj3.Fields(0) & "人"
Label6.Caption = fj3.Fields(1) & "元"
End If
End Sub

⌨️ 快捷键说明

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