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

📄 form_khz.frm

📁 射频卡收费系统 自主开发 可以用于任何商业收费场所
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form_khz 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "卡汇总"
   ClientHeight    =   5565
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9930
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5565
   ScaleWidth      =   9930
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   15
      Top             =   4260
      Width           =   1875
   End
   Begin VB.TextBox Text8 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   420
      Width           =   1875
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退 出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Left            =   6840
      TabIndex        =   4
      Top             =   4380
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   1080
      Width           =   1875
   End
   Begin VB.TextBox Text3 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   2
      Top             =   1800
      Width           =   1875
   End
   Begin VB.TextBox Text4 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   1
      Top             =   2520
      Width           =   1875
   End
   Begin VB.TextBox Text5 
      Alignment       =   1  'Right Justify
      BackColor       =   &H80000004&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3000
      Locked          =   -1  'True
      TabIndex        =   0
      Top             =   3240
      Width           =   1875
   End
   Begin VB.Label Label10 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "元"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5040
      TabIndex        =   17
      Top             =   4380
      Width           =   300
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "实际卡总金"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   16
      Top             =   4380
      Width           =   1500
   End
   Begin VB.Label Label15 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "发卡数量"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1440
      TabIndex        =   14
      Top             =   540
      Width           =   1200
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "元"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5040
      TabIndex        =   13
      Top             =   1200
      Width           =   300
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "刷卡结算金额"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   720
      TabIndex        =   12
      Top             =   1860
      Width           =   1800
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "元"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5040
      TabIndex        =   11
      Top             =   1920
      Width           =   300
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "卡充值金额"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   10
      Top             =   1200
      Width           =   1500
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "元"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5040
      TabIndex        =   9
      Top             =   2640
      Width           =   300
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "卡退款金额"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   8
      Top             =   2640
      Width           =   1500
   End
   Begin VB.Label Label8 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "元"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5040
      TabIndex        =   7
      Top             =   3360
      Width           =   300
   End
   Begin VB.Label Label9 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "应收卡总金"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   1080
      TabIndex        =   6
      Top             =   3360
      Width           =   1500
   End
End
Attribute VB_Name = "Form_khz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim lianjie As Connection

Dim jsjl As Recordset



Private Sub Command2_Click()
Unload Me

End Sub

Private Sub Form_Load()
Text1.Text = yonghuming
Set lianjie = New Connection
     With lianjie
         .ConnectionString = dblianjie
         .Open
     End With
  '==================


Set jsjl = New Recordset
jsjl.CursorLocation = adUseClient
jsjl.CursorType = adOpenDynamic
jsjl.LockType = adLockOptimistic
jsjl.Open "select count(*) as 卡数量 ,sum(卡余额)as 结帐金额 from 卡资料 where 卡余额<>0", lianjie
If IsNull(jsjl.Fields("卡数量")) Then
    Text8.Text = "0"
Else
    Text8.Text = Format(jsjl.Fields("卡数量"), "0")
End If

If IsNull(jsjl.Fields("结帐金额")) Then
    Text1.Text = "0.00"
Else
    Text1.Text = Format(jsjl.Fields("结帐金额"), "0.00")
End If

'_________________________________
Set jsjl = New Recordset
jsjl.CursorLocation = adUseClient
jsjl.CursorType = adOpenDynamic
jsjl.LockType = adLockOptimistic
    
jsjl.Open "select sum(充值金额)as 结帐金额 from 卡充值记录 ", lianjie

If IsNull(jsjl.Fields("结帐金额")) Then
    Text2.Text = "0.00"
Else
    Text2.Text = Format(jsjl.Fields("结帐金额"), "0.00")
End If


'_________________________________
Set jsjl = New Recordset
jsjl.CursorLocation = adUseClient
jsjl.CursorType = adOpenDynamic
jsjl.LockType = adLockOptimistic

jsjl.Open "select sum(结算金额)as 结帐金额 from 卡结算记录 ", lianjie

If IsNull(jsjl.Fields("结帐金额")) Then
    Text3.Text = "0.00"
Else
    Text3.Text = Format(jsjl.Fields("结帐金额"), "0.00")
End If

'_________________________________
Set jsjl = New Recordset
jsjl.CursorLocation = adUseClient
jsjl.CursorType = adOpenDynamic
jsjl.LockType = adLockOptimistic

jsjl.Open "select sum(退款金额)as 结帐金额 from 卡退款记录 ", lianjie

If IsNull(jsjl.Fields("结帐金额")) Then
    Text4.Text = "0.00"
Else
    Text4.Text = Format(jsjl.Fields("结帐金额"), "0.00")
End If

Text5.Text = Format(CDbl(Text2.Text) - CDbl(Text3.Text) - CDbl(Text4.Text), "0.00")


End Sub


⌨️ 快捷键说明

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