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

📄 frm_setsystem.frm

📁 学生学籍管理系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Top             =   3075
         Width           =   1125
         _ExtentX        =   1984
         _ExtentY        =   767
         caption         =   "取消"
      End
      Begin VB.Frame Frame1 
         Height          =   735
         Left            =   210
         TabIndex        =   19
         Top             =   2895
         Width           =   5595
         Begin XP_Button.XPButton command1 
            Height          =   450
            Index           =   0
            Left            =   120
            TabIndex        =   10
            Top             =   165
            Width           =   1005
            _ExtentX        =   1773
            _ExtentY        =   794
            caption         =   "增加"
         End
         Begin XP_Button.XPButton command1 
            Height          =   465
            Index           =   2
            Left            =   2340
            TabIndex        =   12
            Top             =   158
            Width           =   1020
            _ExtentX        =   1799
            _ExtentY        =   820
            caption         =   "删除"
         End
         Begin XP_Button.XPButton command1 
            Height          =   465
            Index           =   3
            Left            =   3465
            TabIndex        =   13
            Top             =   158
            Width           =   945
            _ExtentX        =   1667
            _ExtentY        =   820
            caption         =   "取消"
         End
         Begin XP_Button.XPButton command1 
            Height          =   465
            Index           =   4
            Left            =   4515
            TabIndex        =   14
            Top             =   158
            Width           =   975
            _ExtentX        =   1720
            _ExtentY        =   820
            caption         =   "退出"
         End
         Begin XP_Button.XPButton command1 
            Height          =   450
            Index           =   1
            Left            =   1230
            TabIndex        =   11
            Top             =   165
            Width           =   1005
            _ExtentX        =   1773
            _ExtentY        =   794
            caption         =   "修改"
         End
      End
      Begin VB.Label lblUserid 
         BackColor       =   &H80000009&
         BorderStyle     =   1  'Fixed Single
         Height          =   390
         Left            =   -72465
         TabIndex        =   29
         Top             =   630
         Width           =   2430
      End
      Begin VB.Label Label4 
         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           =   3
         Left            =   -74160
         TabIndex        =   28
         Top             =   2505
         Width           =   1050
      End
      Begin VB.Label Label4 
         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           =   2
         Left            =   -74160
         TabIndex        =   27
         Top             =   1895
         Width           =   840
      End
      Begin VB.Label Label4 
         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            =   -74160
         TabIndex        =   26
         Top             =   1285
         Width           =   1050
      End
      Begin VB.Label Label4 
         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            =   -74145
         TabIndex        =   25
         Top             =   675
         Width           =   1050
      End
   End
   Begin VB.Image imgleftbottom 
      Height          =   450
      Left            =   0
      Picture         =   "frm_setsystem.frx":0038
      Top             =   4170
      Width           =   450
   End
   Begin VB.Image imgleftwindow 
      Height          =   3735
      Left            =   0
      Picture         =   "frm_setsystem.frx":0B42
      Stretch         =   -1  'True
      Top             =   450
      Width           =   465
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "系统参数设置"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   315
      Index           =   1
      Left            =   330
      TabIndex        =   16
      Top             =   90
      Width           =   1815
   End
   Begin VB.Image imglefttitle 
      Height          =   450
      Left            =   0
      Picture         =   "frm_setsystem.frx":40F4
      Top             =   0
      Width           =   450
   End
   Begin VB.Image imgrightbottom 
      Height          =   450
      Left            =   6195
      Picture         =   "frm_setsystem.frx":4BFE
      Top             =   4170
      Width           =   450
   End
   Begin VB.Image imgbottom 
      Height          =   450
      Left            =   405
      Picture         =   "frm_setsystem.frx":5708
      Stretch         =   -1  'True
      Top             =   4170
      Width           =   5805
   End
   Begin VB.Image imgrightwindow 
      Height          =   3720
      Left            =   6195
      Picture         =   "frm_setsystem.frx":C04A
      Stretch         =   -1  'True
      Top             =   465
      Width           =   450
   End
   Begin VB.Image imgclose 
      Height          =   240
      Left            =   6225
      Picture         =   "frm_setsystem.frx":10364
      Top             =   90
      Width           =   240
   End
   Begin VB.Image imgrighttitle 
      Height          =   525
      Left            =   6270
      Picture         =   "frm_setsystem.frx":106A6
      Top             =   15
      Width           =   375
   End
   Begin VB.Image imgtop 
      Height          =   450
      Left            =   300
      Picture         =   "frm_setsystem.frx":1114C
      Stretch         =   -1  'True
      Top             =   15
      Width           =   5970
   End
End
Attribute VB_Name = "frm_setsystem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim myUser As Cls_user
Dim myClass As Cls_Class
Dim mypwd As Cls_user

Private Sub Combo1_Click()
    If Trim(Combo1.Text) = "教员" Then
       Combo2.Enabled = True
    Else
        Combo2.Enabled = False
    End If
End Sub

Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii <> 13 Then KeyAscii = 0
End Sub



Private Sub Combo2_KeyPress(KeyAscii As Integer)
If KeyAscii <> 13 Then KeyAscii = 0
End Sub

Private Sub command2_Click()
If Text2(2).Text <> "" Then
   CheckUp "update"
   TheSecondState
End If
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
    SetWindow Me
    AlwaysOnTop Me, False
    Set myUser = New Cls_user
    Set myClass = New Cls_Class
    SSTab1.Item(0).Tab = 0
    Move (frm_main.Width - Me.Width) / 2, (frm_main.Height - Me.Height) / 2 - 800
    '显示用户编号于list1中
    myUser.OpenUserMessage
    If myUser.GetUserMessageRs.EOF = False Then
       Do Until myUser.GetUserMessageRs.EOF
          List1.AddItem myUser.GetUserMessageRs.Fields(0)
          myUser.GetUserMessageRs.MoveNext
       Loop
    End If
    LoadUserRole
    myClass.OpenClass
    If myClass.GetClassRs.EOF = False Then
        Do Until myClass.GetClassRs.EOF
            Combo2.AddItem Trim(myClass.GetClassRs.Fields(0))
            myClass.GetClassRs.MoveNext
        Loop
    End If
    Set myUser = Nothing
    Set myClass = Nothing

    State "cencel"
    TheSecondState
End Sub

Private Sub List1_Click()
    Dim i As Integer
    '显示选中的用户信息
    State "selected"
    Set myUser = New Cls_user
    myUser.OpenUserMessageByUserID Trim(List1)
    If myUser.GetUserMessageRs.EOF = False Then
       DisplayOut myUser.GetUserMessageRs
    End If
    For i = 0 To List1.ListCount - 1
        List1.Selected(i) = False
    Next
    Set myUser = Nothing
End Sub

⌨️ 快捷键说明

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