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

📄 frmchangeedit.frm

📁 学籍管理系统是一个非常通用的信息管理系统。很多中小学都需要自己的学籍管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ChangeEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "学籍变动信息"
   ClientHeight    =   4530
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6255
   Icon            =   "FrmChangeEdit.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4530
   ScaleWidth      =   6255
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Height          =   3615
      Left            =   240
      TabIndex        =   2
      Top             =   120
      Width           =   5775
      Begin VB.TextBox txtMemo 
         Height          =   615
         Left            =   1320
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   15
         Top             =   2880
         Width           =   4335
      End
      Begin VB.ComboBox ComboClass 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   300
         ItemData        =   "FrmChangeEdit.frx":27A2
         Left            =   1320
         List            =   "FrmChangeEdit.frx":27A4
         TabIndex        =   13
         Text            =   "ComboClass"
         Top             =   1545
         Width           =   4335
      End
      Begin VB.TextBox txtNewSchool 
         Height          =   270
         Left            =   1320
         MaxLength       =   20
         TabIndex        =   11
         Top             =   1125
         Width           =   4335
      End
      Begin VB.ComboBox ComboType 
         Height          =   300
         ItemData        =   "FrmChangeEdit.frx":27A6
         Left            =   4440
         List            =   "FrmChangeEdit.frx":27B6
         Style           =   2  'Dropdown List
         TabIndex        =   6
         Top             =   240
         Width           =   1215
      End
      Begin VB.TextBox txtReason 
         Height          =   615
         Left            =   1320
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   5
         Top             =   2040
         Width           =   4335
      End
      Begin VB.ComboBox ComboName 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   300
         ItemData        =   "FrmChangeEdit.frx":27D2
         Left            =   1320
         List            =   "FrmChangeEdit.frx":27D4
         TabIndex        =   4
         Text            =   "ComboName"
         Top             =   675
         Width           =   4335
      End
      Begin VB.ComboBox ComboDate 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   300
         ItemData        =   "FrmChangeEdit.frx":27D6
         Left            =   1320
         List            =   "FrmChangeEdit.frx":27D8
         TabIndex        =   3
         Text            =   "ComboDate"
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "备注信息"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   16
         Top             =   2880
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "转入院系"
         Height          =   180
         Left            =   240
         TabIndex        =   14
         Top             =   1605
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "转入学校"
         Height          =   180
         Left            =   240
         TabIndex        =   12
         Top             =   1170
         Width           =   720
      End
      Begin VB.Label Label14 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "变动类型"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   3240
         TabIndex        =   10
         Top             =   300
         Width           =   720
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "原因说明"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   9
         Top             =   2040
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "变动日期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   8
         Top             =   300
         Width           =   720
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "选择学生"
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   735
         Width           =   720
      End
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   400
      Left            =   1292
      MouseIcon       =   "FrmChangeEdit.frx":27DA
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   3960
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取 消"
      Height          =   400
      Left            =   3662
      MouseIcon       =   "FrmChangeEdit.frx":2AE4
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   3960
      Width           =   1300
   End
End
Attribute VB_Name = "ChangeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As String

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  If SelStu.Student_Id <= 0 Then
    MsgBox "请选择学生", 48, "警告"
    Exit Sub
  End If
  With MyChange
  .ChangeDate = ComboDate.Text
  .Student_Id = SelStu.Student_Id
  .ChangeType = ComboType.ListIndex
  .OriClass = SelStu.Class_Id
  .NewClass = CurClass.Class_Id
  .NewSchool = MakeStr(txtNewSchool)
  .Reason = MakeStr(txtReason)
  .Memo = MakeStr(txtMemo)
  If Modify = False Then
    .Insert
  Else
    Call .Update(OriId)
  End If
  End With
  If ComboType.ListIndex = 3 Then
    MyStu.Class_Id = CurClass.Class_Id
    MyStu.Update_Transfer (SelStu.Student_Id)
  End If
  Unload Me
End Sub

Private Sub ComboClass_GotFocus()
  txtMemo.SetFocus
  ClassSel.Left = Me.Left + ComboClass.Left + 350
  ClassSel.Top = Me.Top + ComboClass.Top + ComboClass.Height + 450
  ClassSel.Show 1
  ComboClass.Text = CurClass.Class_Name
End Sub

Private Sub ComboDate_GotFocus()
  ComboType.SetFocus
  If ComboDate.Text <> "" Then
    DateSel.OriDate = ComboDate.Text
  Else
    DateSel.OriDate = ""
  End If
  DateSel.Left = Me.Left + ComboDate.Left + 350
  DateSel.Top = Me.Top + ComboDate.Top + ComboDate.Height + 450
  DateSel.Show 1
  ComboDate.Text = DateSel.OriDate
End Sub

Private Sub ComboName_GotFocus()
  txtMemo.SetFocus
  StuSel.Left = Me.Left + ComboName.Left + 350
  StuSel.Top = Me.Top + ComboName.Top + ComboName.Height + 450
  StuSel.Show 1
  ComboName.Text = MyClass.GetName(SelStu.Class_Id) + " " + SelStu.Student_Name
End Sub

Private Sub ComboType_Click()
  Select Case ComboType.ListIndex
    Case 0, 1
      txtNewSchool = ""
      txtNewSchool.Enabled = False
      ComboClass.Text = ""
      ComboClass.Enabled = False
    Case 2
      txtNewSchool.Enabled = True
      ComboClass.Text = ""
      ComboClass.Enabled = False
    Case 3
      txtNewSchool = ""
      txtNewSchool.Enabled = False
      ComboClass.Enabled = True
  End Select
End Sub

⌨️ 快捷键说明

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