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

📄 frmexpedit.frm

📁 这是一个国内通用的学生管理系统!包括院系,学生基本信息,照片,成绩,课程等多方面的管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmExpEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑学生教育经历"
   ClientHeight    =   2175
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6690
   Icon            =   "FrmExpEdit.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2175
   ScaleWidth      =   6690
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Default         =   -1  'True
      Height          =   400
      Left            =   1510
      MouseIcon       =   "FrmExpEdit.frx":0CCA
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   1560
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   3880
      MouseIcon       =   "FrmExpEdit.frx":0FD4
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   1560
      Width           =   1300
   End
   Begin VB.Frame Frame1 
      Height          =   1215
      Left            =   240
      TabIndex        =   6
      Top             =   120
      Width           =   6255
      Begin VB.TextBox txtSchool 
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1440
         MaxLength       =   50
         TabIndex        =   2
         Top             =   765
         Width           =   1335
      End
      Begin VB.TextBox txtTitle 
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   4680
         MaxLength       =   20
         TabIndex        =   3
         Top             =   720
         Width           =   1335
      End
      Begin VB.TextBox txtStart_Date 
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1440
         MaxLength       =   100
         TabIndex        =   0
         Top             =   285
         Width           =   1335
      End
      Begin VB.TextBox txtEnd_Date 
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   4680
         MaxLength       =   100
         TabIndex        =   1
         Top             =   240
         Width           =   1335
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "截止日期"
         Height          =   180
         Left            =   3720
         TabIndex        =   10
         Top             =   360
         Width           =   720
      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        =   9
         Top             =   840
         Width           =   720
      End
      Begin VB.Label Label6 
         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            =   3720
         TabIndex        =   8
         Top             =   840
         Width           =   360
      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        =   7
         Top             =   360
         Width           =   720
      End
   End
End
Attribute VB_Name = "FrmExpEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean '插入=false,修改=true
Public OriStuId As Long
Public OriId As Integer

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  '检查用户录入数据的有效性
  If Len(Trim(txtStart_Date)) = 0 Then
    MsgBox "请输入起始年月"
    txtStart_Date.SetFocus
    txtStart_Date.SelStart = 0
    txtStart_Date.SelLength = Len(txtStart_Date)
    Exit Sub
  End If
  If Len(Trim(txtEnd_Date)) = 0 Then
    MsgBox "请输入截止年月"
    txtEnd_Date.SetFocus
    txtEnd_Date.SelStart = 0
    txtEnd_Date.SelLength = Len(txtEnd_Date)
    Exit Sub
  End If
  If Len(Trim(txtSchool)) = 0 Then
    MsgBox "请输入学校/单位"
    txtSchool.SetFocus
    txtSchool.SelStart = 0
    txtSchool.SelLength = Len(txtSchool)
    Exit Sub
  End If
  '把用户录入的数据赋值到数据库对象变量中
  With MyExp
  .Start_Date = MakeStr(txtStart_Date)
  .End_Date = MakeStr(txtEnd_Date)
  .School = MakeStr(txtSchool)
  .Title = MakeStr(txtTitle)
  .Student_Id = OriStuId
  '根据变量Modify的值,决定是插入新数据,还是修改已有的数据
  If Modify = False Then
    .Insert
  Else
    Call .Update(OriId)
  End If
  End With
  '关闭窗口
  Unload Me
End Sub

⌨️ 快捷键说明

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