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

📄 mainform1.frm

📁 带有SQL
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm mainForm1 
   BackColor       =   &H8000000C&
   Caption         =   "重庆交通学院(大坪)学生寝室信息管理"
   ClientHeight    =   8280
   ClientLeft      =   165
   ClientTop       =   555
   ClientWidth     =   14700
   Icon            =   "mainForm1.frx":0000
   LinkTopic       =   "MDIForm1"
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   6600
      Top             =   960
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   8
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":1082
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":14D4
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":1926
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":1D78
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":21CA
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":28C4
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":2BDE
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "mainForm1.frx":2EF8
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   795
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   14700
      _ExtentX        =   25929
      _ExtentY        =   1402
      ButtonWidth     =   2725
      ButtonHeight    =   1349
      AllowCustomize  =   0   'False
      Appearance      =   1
      Style           =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   5
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "学生基本信息录入"
            Key             =   "a"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "寝室查询"
            Key             =   "b"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "学生查询"
            Key             =   "c"
            ImageIndex      =   5
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "寝室评分查询"
            Key             =   "e"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "帮助"
            Key             =   "f"
            ImageIndex      =   8
         EndProperty
      EndProperty
      BorderStyle     =   1
      MousePointer    =   1
   End
   Begin VB.Menu 系统 
      Caption         =   "系统管理"
      Begin VB.Menu 添加用户 
         Caption         =   "添加用户"
         Shortcut        =   ^A
      End
      Begin VB.Menu 修改密码 
         Caption         =   "修改密码"
         Shortcut        =   ^U
      End
      Begin VB.Menu aSS 
         Caption         =   "-"
      End
      Begin VB.Menu 退出系统 
         Caption         =   "退出系统"
         Shortcut        =   ^Q
      End
   End
   Begin VB.Menu 学生管理 
      Caption         =   "学生管理"
      Begin VB.Menu 学生基本信息录入 
         Caption         =   "学生基本信息录入"
         Shortcut        =   ^I
      End
      Begin VB.Menu 浏览所有学生信息 
         Caption         =   "浏览所有学生信息"
      End
      Begin VB.Menu kkkkk 
         Caption         =   "-"
      End
      Begin VB.Menu 学生信息修改 
         Caption         =   "学生信息修改"
         Shortcut        =   ^X
      End
      Begin VB.Menu 学生离校注销 
         Caption         =   "学生离校注销"
         Shortcut        =   ^L
      End
   End
   Begin VB.Menu 居住管理 
      Caption         =   "居住管理"
      Begin VB.Menu 居住信息出入 
         Caption         =   "居住信息出入"
      End
      Begin VB.Menu asdasd 
         Caption         =   "-"
      End
      Begin VB.Menu 新学期注册 
         Caption         =   "新学期注册"
      End
   End
   Begin VB.Menu 查询管理 
      Caption         =   "查询管理"
      Begin VB.Menu 寝室情况查询 
         Caption         =   "寝室情况查询"
      End
      Begin VB.Menu 学生情况查询 
         Caption         =   "学生情况查询"
      End
      Begin VB.Menu a 
         Caption         =   "-"
      End
      Begin VB.Menu 其他 
         Caption         =   "其他"
      End
   End
   Begin VB.Menu 寝室管理 
      Caption         =   "寝室管理"
      Begin VB.Menu 寝室评分录入 
         Caption         =   "寝室评分录入"
      End
      Begin VB.Menu hhhhgg 
         Caption         =   "-"
      End
      Begin VB.Menu 寝室评分查询 
         Caption         =   "寝室评分查询"
      End
   End
   Begin VB.Menu 帮助 
      Caption         =   "帮助"
      Begin VB.Menu 关于我们 
         Caption         =   "关于我们"
      End
      Begin VB.Menu dddd 
         Caption         =   "-"
      End
      Begin VB.Menu 您想知道的 
         Caption         =   "您想知道的?"
      End
   End
   Begin VB.Menu ABC 
      Caption         =   ""
      Enabled         =   0   'False
      Begin VB.Menu 查看所有学生信息 
         Caption         =   "浏览所有学生信息"
         Shortcut        =   ^F
      End
      Begin VB.Menu ddddd 
         Caption         =   "个人信息>>"
         Begin VB.Menu m 
            Caption         =   "系统开发人员:莫小明"
         End
         Begin VB.Menu kaifa 
            Caption         =   "系统开发时间:2005年5月"
         End
         Begin VB.Menu 访问我的主页 
            Caption         =   "访问我的主页"
         End
         Begin VB.Menu d 
            Caption         =   "盗者后果自负!"
         End
      End
   End
End
Attribute VB_Name = "mainForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
    Dim mrc As ADODB.Recordset
Private Sub MDIForm_Load()
     Me.WindowState = 2            '让刚刚开始时就使屏幕最大化
     Me.Arrange vbCascade          '层叠子窗子
     Me.Arrange vbArrangeIcons     '排列所有最小化子窗体图标
     
     
     
    
End Sub
Private Sub 查看所有学生信息_Click()
       
      Dim MsgText As String
      Dim txtSQL As String
      '///////////////////////////////////
      txtSQL = "select * from student_if"
      Set mrc = ExecuteSQL(txtSQL, MsgText)
      '/////////////判断
      If mrc.EOF = True Then
          a = MsgBox("库里没任何东西,请先录入学生信息!", 0, "警告")
          If a = 1 Then
             Exit Sub
          End If
      Else
          studentall.Show
      End If
         
End Sub
Private Sub MDIForm_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
     If Button = 2 Then
        Me.PopupMenu ABC
      End If
      
End Sub

Private Sub 当月文明寝室_Click()

End Sub

Private Sub 当月最差寝室_Click()
   
End Sub

Private Sub 临时调整_Click()
   
End Sub

Private Sub 居住信息出入_Click()
     juzhuxinxi.Show
End Sub

Private Sub 浏览所有学生信息_Click()
      Dim MsgText As String
      Dim txtSQL As String
      '///////////////////////////////////
      txtSQL = "select * from student_if"
      Set mrc = ExecuteSQL(txtSQL, MsgText)
      '/////////////判断
      If mrc.EOF = True Then
          a = MsgBox("库里没任何东西,请先录入学生信息!", , "警告")
          If a = 1 Then
             Exit Sub
          End If
      Else
          studentall.Show
      End If
End Sub



Private Sub 寝室评分查询_Click()
     pingfenchaxun.Show
End Sub

Private Sub 寝室评分录入_Click()
       pingfen.Show
End Sub

Private Sub 寝室情况查询_Click()
    qinshichaxun.Show
End Sub

Private Sub 添加用户_Click()
     useradd.Show
End Sub

Private Sub 退出系统_Click()
     Unload Me
     End
End Sub

Private Sub 新生报到_Click()
      studentinfo.Show
End Sub

Private Sub 新学期注册_Click()
     xinxueqi.Show
End Sub

Private Sub 修改密码_Click()
      xiougai.Show
End Sub

Private Sub 学生基本情况录入_Click()

End Sub

Private Sub 学生基本信息录入_Click()
    studentinfo.Show
End Sub

Private Sub 学生离校注销_Click()
   Dim MsgText As String
      Dim txtSQL As String
      '///////////////////////////////////
      txtSQL = "select * from student_if"
      Set mrc = ExecuteSQL(txtSQL, MsgText)
      '/////////////判断
      If mrc.EOF = True Then
          a = MsgBox("库里没任何东西,没有必要注销!", 0, "警告")
          If a = 1 Then
             Exit Sub
          End If
      Else
          studentlixiao.Show
      End If
   
End Sub

Private Sub 学生情况查询_Click()
     Dim MsgText As String
      Dim txtSQL As String
      '///////////////////////////////////
      txtSQL = "select * from student_if"
      Set mrc = ExecuteSQL(txtSQL, MsgText)
      '/////////////判断
      If mrc.EOF = True Then
          a = MsgBox("库里没任何东西,不可以修改!", 0, "警告")
          If a = 1 Then
             Exit Sub
          End If
      Else
         studentxxcx.Show
      End If
  
End Sub

Private Sub 学生信息修改_Click()
      
      Dim MsgText As String
      Dim txtSQL As String
      '///////////////////////////////////
      txtSQL = "select * from student_if"
      Set mrc = ExecuteSQL(txtSQL, MsgText)
      '/////////////判断
      If mrc.EOF = True Then
          a = MsgBox("库里没任何东西,没有什么好要查询的!", 0, "警告")
          If a = 1 Then
             Exit Sub
          End If
      Else
          student_ifxiougai.Show
      End If
End Sub

⌨️ 快捷键说明

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