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

📄 frmchangeedit.frm

📁 这是我自己做的系统 很不完善 不足之处请多多指教!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmChangeEdit 
   BorderStyle     =   0  'None
   Caption         =   "编辑学籍变动信息"
   ClientHeight    =   7275
   ClientLeft      =   15
   ClientTop       =   15
   ClientWidth     =   8010
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "FrmChangeEdit.frx":0000
   ScaleHeight     =   7275
   ScaleWidth      =   8010
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin VB.CommandButton Cmd_cancel 
      Caption         =   "取消"
      Height          =   495
      Left            =   5640
      TabIndex        =   16
      Top             =   7200
      Width           =   1215
   End
   Begin VB.CommandButton Cmd_ok 
      Caption         =   "确定"
      Height          =   495
      Left            =   2040
      TabIndex        =   15
      Top             =   7200
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFFF80&
      Enabled         =   0   'False
      ForeColor       =   &H80000008&
      Height          =   5535
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   7455
      Begin VB.TextBox Text3 
         Height          =   1095
         Left            =   1800
         TabIndex        =   14
         Top             =   4320
         Width           =   5415
      End
      Begin VB.TextBox Text2 
         Height          =   1215
         Left            =   1800
         TabIndex        =   12
         Top             =   3000
         Width           =   5415
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         Left            =   1800
         TabIndex        =   10
         Text            =   "Comboclass"
         Top             =   2520
         Width           =   5415
      End
      Begin VB.TextBox Text1 
         Height          =   735
         Left            =   1800
         TabIndex        =   8
         Top             =   1560
         Width           =   5295
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         Left            =   1800
         TabIndex        =   6
         Text            =   "Comboname"
         Top             =   960
         Width           =   5295
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         Left            =   5520
         TabIndex        =   4
         Text            =   "Combotype"
         Top             =   360
         Width           =   1575
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1800
         TabIndex        =   2
         Text            =   "Combodate"
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label7 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "备注信息:"
         ForeColor       =   &H80000008&
         Height          =   615
         Left            =   120
         TabIndex        =   13
         Top             =   4560
         Width           =   1335
      End
      Begin VB.Label Label6 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "原因说明:"
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   120
         TabIndex        =   11
         Top             =   3720
         Width           =   1335
      End
      Begin VB.Label Label5 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "转入院系:"
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   120
         TabIndex        =   9
         Top             =   2520
         Width           =   1215
      End
      Begin VB.Label Label4 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "转入学校:"
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   120
         TabIndex        =   7
         Top             =   1800
         Width           =   1335
      End
      Begin VB.Label Label3 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "选择学生:"
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   240
         TabIndex        =   5
         Top             =   960
         Width           =   1335
      End
      Begin VB.Label Label2 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "变动类型:"
         ForeColor       =   &H80000008&
         Height          =   615
         Left            =   3480
         TabIndex        =   3
         Top             =   360
         Width           =   1695
      End
      Begin VB.Label Label1 
         Appearance      =   0  'Flat
         BackColor       =   &H00FFFF80&
         Caption         =   "变动日期:"
         ForeColor       =   &H80000008&
         Height          =   495
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   1935
      End
   End
End
Attribute VB_Name = "FrmChangeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_ok_Click()
 If SelStu.Student_Id <= 0 Then
    MsgBox "请选择学生"
    Exit Sub
  End If
  '将用户输入的数据赋值到MyChange对象的成员变量中
  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)
  '根据Modify变量决定是插入新数据,还是修改已有数据
  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

⌨️ 快捷键说明

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