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

📄 userinfo.frm

📁 ktv场所的包房开房、迎宾、预定管理系统。
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmuserinfo 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "用户信息"
   ClientHeight    =   4695
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5835
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4695
   ScaleWidth      =   5835
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "启用(&S)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   450
      Left            =   2460
      TabIndex        =   5
      Top             =   4095
      Width           =   1080
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出(&X)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   450
      Left            =   3675
      TabIndex        =   10
      Top             =   4095
      Width           =   1080
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   375
      Left            =   2025
      TabIndex        =   9
      Top             =   375
      Width           =   1800
      _ExtentX        =   3175
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   11.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      CustomFormat    =   "yyyy-MM-dd"
      Format          =   23658499
      CurrentDate     =   37838
   End
   Begin VB.Frame Frame1 
      Caption         =   "用户信息"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3030
      Left            =   255
      TabIndex        =   0
      Top             =   855
      Width           =   4995
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   885
         Index           =   3
         Left            =   1365
         MultiLine       =   -1  'True
         TabIndex        =   12
         Text            =   "userinfo.frx":0000
         Top             =   2025
         Width           =   3345
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   2
         Left            =   1380
         TabIndex        =   4
         Text            =   "Text1"
         Top             =   1470
         Width           =   3345
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   1
         Left            =   1395
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   930
         Width           =   3345
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   0
         Left            =   1395
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   390
         Width           =   3345
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "备    注:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   1
         Left            =   360
         TabIndex        =   11
         Top             =   2055
         Width           =   945
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "用户电话:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   1
         Left            =   375
         TabIndex        =   7
         Top             =   1050
         Width           =   945
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "地    址:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   0
         Left            =   375
         TabIndex        =   6
         Top             =   1590
         Width           =   945
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "用户名称:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Index           =   0
         Left            =   375
         TabIndex        =   1
         Top             =   465
         Width           =   945
      End
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "启用时间:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   1050
      TabIndex        =   8
      Top             =   435
      Width           =   945
   End
End
Attribute VB_Name = "frmuserinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
    Unload Me
End Sub

Private Sub Command2_Click()
Dim strsql As String
Dim msgtext As String
Dim mrc As ADODB.Recordset

If Text1(0).Enabled = True Then
    If Text1(0) = "" Or Text1(1) = "" Or Text1(2) = "" Then Exit Sub
    strsql = "update r_parameter set pass_date=cdate('" & DTPicker1.Value & _
        "'),offline=false,monthdate=cdate('" & DTPicker1.Value & "')"
    Set mrc = ExecuteSQL(strsql, msgtext)
    
    strsql = "update userinfo set username='" & Text1(0) & "'"
    strsql = strsql & ",usertell='" & Text1(1) & "'"
    strsql = strsql & " ,useraddress='" & Text1(2) & "'"
    Set mrc = ExecuteSQL(strsql, msgtext)
    
    MsgBox "系统已正式启用!", vbInformation, "系统启用"
    frmMain.mnusql.Enabled = True
    frmMain.mnuSet_jczl.Enabled = True
    frmMain.mnuAct_rk.Enabled = True
    frmMain.Toolbar1.Buttons(4).Enabled = True
    frmMain.Toolbar1.Buttons(1).Enabled = True
    frmMain.Toolbar1.Buttons(2).Enabled = True
    frmMain.Toolbar1.Buttons(5).Enabled = True
    frmMain.Toolbar1.Buttons(6).Enabled = True
    Unload Me
Else
    strsql = "update userinfo set userdemo='" & Text1(3) & "'"
    Set mrc = ExecuteSQL(strsql, msgtext)
    struserinfodemo = Text1(3)
    Unload Me
End If
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
    EnterToTab KeyCode
End Sub

⌨️ 快捷键说明

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