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

📄 用户类型设置.frm

📁 一个以SQL Server 2000为数据库
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form 用户类型设置 
   Caption         =   "用户类型设置"
   ClientHeight    =   5595
   ClientLeft      =   4935
   ClientTop       =   3135
   ClientWidth     =   7020
   LinkTopic       =   "Form7"
   ScaleHeight     =   5595
   ScaleWidth      =   7020
   Begin VB.CommandButton Com_exit 
      Caption         =   "退出"
      Height          =   375
      Left            =   5040
      TabIndex        =   15
      Top             =   4680
      Width           =   855
   End
   Begin VB.CommandButton Com_concel 
      Caption         =   "取消"
      Height          =   375
      Left            =   5040
      TabIndex        =   11
      Top             =   4080
      Width           =   855
   End
   Begin VB.CommandButton Com_delete 
      Caption         =   "删除"
      Height          =   375
      Left            =   5040
      TabIndex        =   10
      Top             =   2880
      Width           =   855
   End
   Begin VB.CommandButton Com_append 
      Caption         =   "添加"
      Height          =   375
      Left            =   5040
      TabIndex        =   9
      Top             =   2400
      Width           =   855
   End
   Begin VB.CommandButton Com_update 
      Caption         =   "修改"
      Height          =   375
      Left            =   5040
      TabIndex        =   8
      Top             =   1920
      Width           =   855
   End
   Begin VB.Frame Frame1 
      Caption         =   "类型信息"
      Height          =   3375
      Left            =   360
      TabIndex        =   0
      Top             =   1800
      Width           =   3975
      Begin VB.TextBox TBorrow_maxdays 
         Height          =   375
         Left            =   1320
         TabIndex        =   19
         Top             =   2760
         Width           =   1095
      End
      Begin VB.TextBox TBorrow_maxnum 
         Height          =   315
         Left            =   1320
         TabIndex        =   17
         Top             =   2280
         Width           =   1095
      End
      Begin VB.TextBox TBreak_agio 
         Height          =   375
         Left            =   1320
         TabIndex        =   13
         Top             =   1320
         Width           =   2055
      End
      Begin VB.TextBox TUpgrade 
         Height          =   375
         Left            =   1320
         TabIndex        =   6
         Top             =   1800
         Width           =   1095
      End
      Begin VB.TextBox TBorrow_agio 
         Height          =   375
         Left            =   1320
         TabIndex        =   4
         Top             =   840
         Width           =   2055
      End
      Begin VB.TextBox TMem_type 
         Height          =   375
         Left            =   1320
         TabIndex        =   2
         Top             =   360
         Width           =   2055
      End
      Begin VB.Label Label1 
         Caption         =   "[*]"
         ForeColor       =   &H000000FF&
         Height          =   375
         Left            =   3480
         TabIndex        =   21
         Top             =   480
         Width           =   255
      End
      Begin VB.Label 天 
         Caption         =   "天"
         Height          =   375
         Left            =   2520
         TabIndex        =   20
         Top             =   2880
         Width           =   255
      End
      Begin VB.Label 可借天数 
         Caption         =   "可借天数:"
         Height          =   375
         Left            =   120
         TabIndex        =   18
         Top             =   2880
         Width           =   1095
      End
      Begin VB.Label 一次可借最大数目 
         Caption         =   "一次可借最大数目:"
         Height          =   375
         Left            =   120
         TabIndex        =   16
         Top             =   2280
         Width           =   1215
      End
      Begin VB.Label 违章折扣 
         Caption         =   "赔偿折扣:"
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   1320
         Width           =   1215
      End
      Begin VB.Label 次 
         Caption         =   "次"
         Height          =   255
         Left            =   2520
         TabIndex        =   7
         Top             =   1800
         Width           =   255
      End
      Begin VB.Label 升级积分 
         Caption         =   "升级积分:"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1800
         Width           =   1215
      End
      Begin VB.Label 出租折率 
         Caption         =   "出租折率:"
         Height          =   375
         Left            =   120
         TabIndex        =   3
         Top             =   840
         Width           =   1095
      End
      Begin VB.Label 用户类型 
         Caption         =   "用户类型:"
         Height          =   375
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   1095
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   2160
      Top             =   1320
      Visible         =   0   'False
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   0
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=project"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=project"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from Memgrade_Info "
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "用户类型设置.frx":0000
      Height          =   1215
      Left            =   120
      TabIndex        =   14
      Top             =   480
      Width           =   6735
      _ExtentX        =   11880
      _ExtentY        =   2143
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   6
      BeginProperty Column00 
         DataField       =   "Mem_type"
         Caption         =   "用户类型"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   "Borrow_agio"
         Caption         =   "租借折扣"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column02 
         DataField       =   "Break_agio"
         Caption         =   "赔偿折扣"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column03 
         DataField       =   "Upgrade"
         Caption         =   "升级积分"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column04 
         DataField       =   "Borrow_maxnum"
         Caption         =   "可借最大数目"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         DataField       =   "Borrow_maxdays"
         Caption         =   "可借天数"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   1200.189
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1035.213
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   1035.213
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   989.858
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   1049.953
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   1080
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "用户类型设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private cnRecordSet As ADODB.Recordset




Private Sub Com_append_Click()
If TMem_type.Text = "" Then
     MsgBox "类型不能为空!", vbOKOnly + vbExclamation, "Warning"
     Exit Sub
End If

Dim sql As String
sql = "insert into Memgrade_Info values('" + TMem_type.Text + "','" + TBorrow_agio.Text + "','" + TBreak_agio.Text + "','" + TUpgrade.Text + "','" + TBorrow_maxnum.Text + "','" + TBorrow_maxdays.Text + "')"
Set cnRecordSet = Form1.cnTest.Execute(sql)
'If cnRecordSet.EOF = False Then
    MsgBox "插入成功!", vbOKOnly + vbExclamation, "ok"
'End If
Adodc1.RecordSource = "select * from Memgrade_Info"
Adodc1.Refresh
End Sub

Private Sub Com_concel_Click()
TMem_type.Text = ""
TBorrow_agio.Text = ""
TBreak_agio.Text = ""
TUpgrade.Text = ""
TBorrow_maxnum.Text = ""
TBorrow_maxdays.Text = ""
End Sub

Private Sub Com_delete_Click()
If TMem_type.Text = "" Then
     MsgBox "类型不能为空!", vbOKOnly + vbExclamation, "Warning"
     Exit Sub
End If

Dim sql As String
sql = "delete from Memgrade_Info where Mem_type='" + TMem_type.Text + "'"
Set cnRecordSet = Form1.cnTest.Execute(sql)
'If cnRecordSet.EOF = False Then
    MsgBox "删除成功!", vbOKOnly + vbExclamation, "ok"
'End If
Adodc1.RecordSource = "select * from Memgrade_Info"
Adodc1.Refresh
End Sub

Private Sub Com_exit_Click()
Unload 用户类型设置
End Sub

Private Sub Com_update_Click()
If TMem_type.Text = "" Then
     MsgBox "类型不能为空!", vbOKOnly + vbExclamation, "Warning"
     Exit Sub
End If

Dim sql As String

sql = "update Memgrade_Info set Borrow_agio = '" + TBorrow_agio.Text + "',Break_agio = '" + TBreak_agio.Text + "', Upgrade = '" + TUpgrade.Text + "', Borrow_maxnum = '" + TBorrow_maxnum.Text + "', Borrow_maxdays = '" + TBorrow_maxdays.Text + "' where Mem_type ='" + TMem_type.Text + "'"
Set cnRecordSet = Form1.cnTest.Execute(sql)
'If cnRecordSet.EOF = False Then
    MsgBox "修改成功!", vbOKOnly + vbExclamation, "ok"
'End If
Adodc1.RecordSource = "select * from Memgrade_Info"
Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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