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

📄 xueshengguanli.frm

📁 主要用于学生的各方面信息的管理
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc5"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin MSDataGridLib.DataGrid DataGrid4 
         Bindings        =   "xueshengguanli.frx":35A8
         Height          =   2415
         Left            =   -74640
         TabIndex        =   4
         Top             =   960
         Width           =   7815
         _ExtentX        =   13785
         _ExtentY        =   4260
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            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       =   ""
            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 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
      Begin VB.Label Label4 
         Caption         =   "请输入您的学号"
         Height          =   375
         Left            =   1200
         TabIndex        =   19
         Top             =   -480
         Width           =   1695
      End
      Begin VB.Image Image8 
         Height          =   3705
         Left            =   -75000
         Picture         =   "xueshengguanli.frx":35BD
         Top             =   360
         Width           =   8595
      End
      Begin VB.Image Image7 
         Height          =   3705
         Left            =   -75000
         Picture         =   "xueshengguanli.frx":6A38
         Top             =   360
         Width           =   8595
      End
      Begin VB.Image Image6 
         Height          =   3705
         Left            =   -75000
         Picture         =   "xueshengguanli.frx":9EB3
         Top             =   360
         Width           =   8595
      End
      Begin VB.Image Image5 
         Height          =   3705
         Left            =   -75000
         Picture         =   "xueshengguanli.frx":D32E
         Top             =   360
         Width           =   8595
      End
      Begin VB.Image Image4 
         Height          =   3705
         Left            =   -75000
         Picture         =   "xueshengguanli.frx":107A9
         Top             =   360
         Width           =   8595
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "请输入您当前的密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000080&
         Height          =   255
         Left            =   1200
         TabIndex        =   15
         Top             =   840
         Width           =   1935
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "请输入您的新密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000080&
         Height          =   255
         Left            =   1200
         TabIndex        =   14
         Top             =   1680
         Width           =   1695
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "请确认您的新密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000080&
         Height          =   255
         Left            =   1200
         TabIndex        =   13
         Top             =   2520
         Width           =   1695
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "已修课程平均成绩"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000080&
         Height          =   495
         Left            =   -71880
         TabIndex        =   6
         Top             =   960
         Width           =   2055
      End
      Begin VB.Image Image2 
         Height          =   3705
         Left            =   0
         Picture         =   "xueshengguanli.frx":13C24
         Top             =   360
         Width           =   8595
      End
      Begin VB.Image Image9 
         Height          =   3705
         Left            =   -74880
         Picture         =   "xueshengguanli.frx":1709F
         Top             =   360
         Width           =   8595
      End
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   18
      Top             =   5550
      Width           =   8340
      _ExtentX        =   14711
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   6
            Alignment       =   1
            TextSave        =   "2005-1-4"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            Alignment       =   1
            TextSave        =   "8:34"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
            Object.Width           =   7038
            MinWidth        =   7038
            Text            =   "学生管理系统"
            TextSave        =   "学生管理系统"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   1
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc8 
      Height          =   495
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   4935
      _ExtentX        =   8705
      _ExtentY        =   873
      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         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc4"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Image Image1 
      Height          =   5895
      Left            =   0
      Picture         =   "xueshengguanli.frx":1A51A
      Top             =   0
      Width           =   8310
   End
   Begin VB.Image Image3 
      Height          =   3705
      Left            =   -120
      Top             =   1080
      Width           =   8595
   End
End
Attribute VB_Name = "xinxixianshi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim name1 As String
Dim xm As String

Private Sub Command1_Click()
   Dim sun As String
   sun = Text4.Text
   Adodc7.RecordSource = "select user_password from Manage_user where user_id = " & sun
   Adodc7.Refresh
   If Trim(Text1.Text <> Adodc7.Recordset.Fields("user_password")) Then
    MsgBox "您输入的密码不正确!"
    Text1.SetFocus
    Else
        If Trim(Text2.Text) <> Trim(Text3.Text) Then
          MsgBox "新密码输入不正确!", vbOKOnly + vbExclamation, "警告"
          Text2.SetFocus
          Text3.Text = ""
    Else
        Adodc7.Recordset.Fields("user_password") = Text2.Text
        Adodc7.Recordset.Update
        Adodc7.Refresh
        MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
    End If
     End If
    
End Sub


Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = cnn()
Adodc7.ConnectionString = cnn()
Adodc2.ConnectionString = cnn()
Adodc3.ConnectionString = cnn()
Adodc4.ConnectionString = cnn()
Adodc5.ConnectionString = cnn()
Adodc6.ConnectionString = cnn()
name1 = mainstu.StatusBar1.Panels(4).Text


Adodc2.RecordSource = "select user_id as 学号,user_name as 姓名,user_sex as 性别,user_birth as 出生年月,user_indate as 入学日期,user_status as 政治面貌,user_college as 所在学院,user_depart as 系别,user_major as 专业 from Manage_user where Manage_user.user_name='" & name1 & "'"
Adodc2.Refresh

Adodc3.RecordSource = "select Manage_subject.sub_name,Manage_subject.sub_type,Manage_subject.sub_record,Manage_score.score_score from Manage_user,Manage_subject,Manage_score where Manage_score.user_id = Manage_user.user_id And Manage_subject.sub_id = Manage_score.sub_id and Manage_user.user_name='" & name1 & "'"
Adodc3.Refresh

'fetch data of student's major
Me.Adodc8.ConnectionString = cnn()
Adodc8.RecordSource = "select user_major from Manage_user where user_name='" & name1 & "'"

Adodc8.Refresh

A = Mid$(Adodc8.Recordset.Fields("user_major"), 1, InStr(2, Adodc8.Recordset.Fields("user_major"), "0") + 1)
'mid 从第一个开始 向后拿字符 instr找到第几个位置

Adodc4.RecordSource = "select distinct Manage_subject.sub_name,Manage_subject.sub_type,Manage_subject.sub_record,Manage_subject.sub_describ from Manage_subject,Manage_user,Manage_class where Manage_subject.sub_name=Manage_class.sub_name and Manage_class.major_name ='" & A & "'"
Adodc4.Refresh

Adodc1.RecordSource = "select Manage_subject.sub_name,Manage_subject.sub_type,Manage_subject.sub_record,Manage_score.score_score from Manage_subject, Manage_score, Manage_user where Manage_subject.sub_id = Manage_score.sub_id And Manage_score.score_score < 60 and Manage_score.user_id=Manage_user.user_id and Manage_user.user_name='" & name1 & "'"
Adodc1.Refresh


Adodc5.RecordSource = "select Manage_subject.sub_name,Manage_subject.sub_type,Manage_subject.sub_record,Manage_score.score_score from Manage_subject, Manage_score, Manage_user, Manage_renew where Manage_subject.sub_id = Manage_score.sub_id And Manage_score.score_score < 60 and Manage_renew.re_id=Manage_score.score_id and Manage_score.user_id=Manage_user.user_id and Manage_user.user_name='" & name1 & "'"
Adodc5.Refresh



Adodc6.RecordSource = "select Manage_user.user_name,Manage_sum.score_ave from Manage_user,Manage_sum where Manage_user.user_id=Manage_sum.user_id and Manage_user.user_name='" & name1 & "'"
Adodc6.Refresh


End Sub


⌨️ 快捷键说明

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