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

📄 form14.frm

📁 会员管理系统 功能自己扩展把! 如果有改进给我发一份quweijie8@126.com 这个比较适合初学者``` Q:151693707 msn:quweijie8@hotmail.com
💻 FRM
字号:
VERSION 5.00
Object = "{9A226D6F-2658-4445-8D35-5C19D42676FE}#1.0#0"; "xp.ocx"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form14 
   BackColor       =   &H00E7F7FF&
   BorderStyle     =   0  'None
   Caption         =   "会员续费"
   ClientHeight    =   3630
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   6270
   ControlBox      =   0   'False
   LinkTopic       =   "Form14"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3630
   ScaleWidth      =   6270
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin BSE_Engine.BSE BSE1 
      Left            =   2340
      Top             =   2280
      _ExtentX        =   6588
      _ExtentY        =   1085
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3360
      TabIndex        =   13
      Top             =   3000
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   1620
      TabIndex        =   12
      Top             =   3000
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00E7F7FF&
      Caption         =   "会员卡信息"
      Height          =   2235
      Left            =   180
      TabIndex        =   1
      Top             =   600
      Width           =   5895
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   315
         Left            =   4320
         TabIndex        =   15
         Top             =   840
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   556
         _Version        =   393216
         Format          =   60882945
         CurrentDate     =   38971
      End
      Begin VB.CheckBox Check1 
         BackColor       =   &H00E7F7FF&
         Caption         =   "打印续费小票"
         Enabled         =   0   'False
         Height          =   195
         Left            =   3540
         TabIndex        =   11
         Top             =   1860
         Width           =   2055
      End
      Begin VB.TextBox Text2 
         Height          =   315
         Left            =   4260
         Locked          =   -1  'True
         TabIndex        =   10
         Text            =   "¥0.00"
         Top             =   1320
         Width           =   1515
      End
      Begin VB.TextBox Text1 
         Height          =   315
         Left            =   1320
         TabIndex        =   8
         Text            =   "0"
         Top             =   1320
         Width           =   1515
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "消费日期:"
         Height          =   180
         Left            =   3300
         TabIndex        =   16
         Top             =   900
         Width           =   900
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Label8"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   180
         Left            =   1320
         TabIndex        =   14
         Top             =   900
         Width           =   630
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "实际续费金额:"
         Height          =   180
         Left            =   3000
         TabIndex        =   9
         Top             =   1380
         Width           =   1260
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "续费金额:"
         ForeColor       =   &H000000FF&
         Height          =   180
         Left            =   420
         TabIndex        =   7
         Top             =   1380
         Width           =   900
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "卡内余额:"
         Height          =   180
         Left            =   420
         TabIndex        =   6
         Top             =   900
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Label4"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   180
         Left            =   4320
         TabIndex        =   5
         Top             =   480
         Width           =   630
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Label3"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   180
         Left            =   1320
         TabIndex        =   4
         Top             =   480
         Width           =   630
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "会员姓名:"
         Height          =   180
         Left            =   3300
         TabIndex        =   3
         Top             =   480
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "会员卡号:"
         Height          =   180
         Left            =   420
         TabIndex        =   2
         Top             =   480
         Width           =   900
      End
   End
   Begin 会员管理系统.XPForm XPForm1 
      Height          =   3615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   6255
      _ExtentX        =   11033
      _ExtentY        =   6376
      Caption         =   "会员续费"
   End
End
Attribute VB_Name = "Form14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'拖动窗体的API
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const HTCAPTION = 2
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Const WM_NCLBUTTONDOWN = &HA1

Private Sub Command1_Click()
Dim strSQL As String
strSQL = "UPDATE hyxx set 卡内金额 =" & Form3.ListView1.SelectedItem.SubItems(16) & " + '" & Text1.Text & "' where id=" & Me.Tag
If RunSQL(strSQL) = True Then
       strSQL = "INSERT INTO  CUSTOMER (卡号,xiaofeiriqi,beizhu,xiaofeicishu) values ('" & Trim(Label3.caption) & "','" & Trim(DTPicker1.Value) & "','续费','" & Trim(Text1.Text) & "')"
            If RunSQL(strSQL) = True Then
            'Form3.ListView1.SelectedItem.SubItems(16) = Trim(Text1.Text)
            Form3.listlogin
            Unload Me
            End If
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
DTPicker1.Value = Format(Date, "yyyy-mm-dd")
XPForm1.BackColor = Me.BackColor
BSE1.SchemeStyle = 0
BSE1.EndSubClassing
BSE1.InitSubClassing
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= 48 And KeyAscii <= 57 Then
ElseIf KeyAscii = 8 Then
    KeyAscii = 8
Else
      KeyAscii = 0
End If
End Sub

Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Text2.Text = "¥" + Text1.Text + ".00"
End Sub

Private Sub XPForm1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'拖动窗体
If Button = 1 Then
ReleaseCapture
SendMessage Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
Else
'这里可以添加弹出菜单的语句
End If

End Sub

Private Sub Form_Resize()
XPForm1.Width = Me.Width
XPForm1.Height = Me.Height
XPForm1.Nomin '屏蔽最小化按钮(如果你不想有最小化按钮)
End Sub

Private Sub XPForm1_CloseClick()
'关闭按钮的事件
Unload Me
End Sub

Private Sub XPForm1_MinClick()
'最小化按钮的事件
Me.WindowState = 1
End Sub

⌨️ 快捷键说明

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