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

📄 edde.frm

📁 考务管理是学校考务管理的重要部分
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form edde 
   Caption         =   "考生成绩录入"
   ClientHeight    =   5715
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10200
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5715
   ScaleWidth      =   10200
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton retCom 
      Caption         =   "返回"
      Height          =   375
      Left            =   8520
      TabIndex        =   14
      Top             =   4800
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "设置条件"
      Height          =   1455
      Left            =   960
      TabIndex        =   0
      Top             =   4080
      Width           =   6735
      Begin VB.TextBox Text1 
         Height          =   270
         Index           =   1
         Left            =   3840
         TabIndex        =   13
         Top             =   240
         Width           =   975
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Index           =   2
         Left            =   1080
         TabIndex        =   12
         Top             =   720
         Width           =   2295
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Index           =   0
         Left            =   1080
         TabIndex        =   8
         Top             =   240
         Width           =   975
      End
      Begin VB.Frame Frame2 
         Caption         =   "性别"
         Height          =   615
         Left            =   3720
         TabIndex        =   3
         Top             =   720
         Width           =   1815
         Begin VB.OptionButton Opt1 
            Height          =   180
            Left            =   120
            TabIndex        =   5
            Top             =   240
            Width           =   255
         End
         Begin VB.OptionButton Opt2 
            Height          =   255
            Left            =   960
            TabIndex        =   4
            Top             =   240
            Width           =   255
         End
         Begin VB.Label Label4 
            Caption         =   "男"
            Height          =   255
            Left            =   360
            TabIndex        =   7
            Top             =   240
            Width           =   255
         End
         Begin VB.Label Label5 
            Caption         =   "女"
            Height          =   255
            Left            =   1200
            TabIndex        =   6
            Top             =   240
            Width           =   255
         End
      End
      Begin VB.CommandButton selcmd1 
         Caption         =   "确定"
         Height          =   375
         Left            =   5880
         TabIndex        =   2
         Top             =   360
         Width           =   615
      End
      Begin VB.CommandButton selcmd2 
         Caption         =   "重置"
         Height          =   375
         Left            =   5880
         TabIndex        =   1
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "姓    名"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "通信地址"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   720
         Width           =   735
      End
      Begin VB.Label Label3 
         Caption         =   "出生日期"
         Height          =   255
         Left            =   3000
         TabIndex        =   9
         Top             =   240
         Width           =   735
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2040
      Top             =   0
      Visible         =   0   'False
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=KS"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "KS"
      OtherAttributes =   ""
      UserName        =   "yilin"
      Password        =   "b606"
      RecordSource    =   "ksb"
      Caption         =   "Adodc1"
      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 DataGrid1 
      Bindings        =   "edde.frx":0000
      Height          =   2535
      Left            =   240
      TabIndex        =   15
      Top             =   480
      Width           =   9735
      _ExtentX        =   17171
      _ExtentY        =   4471
      _Version        =   393216
      AllowUpdate     =   -1  'True
      DefColWidth     =   53
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      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     =   7
      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
      BeginProperty Column02 
         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 Column03 
         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 Column04 
         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 Column05 
         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 Column06 
         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 
            ColumnWidth     =   1005.165
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1005.165
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   599.811
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   1200.189
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   3000.189
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   1305.071
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   1305.071
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "edde"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DataGrid1_DblClick()
    edde1.Show vbModal          '用户双击鼠标时,以模式方式调用edde1窗体
End Sub
Private Sub Form_Load()
    recs = Adodc1.Recordset.RecordCount
End Sub
Private Sub Form_activate()
    DataGrid1.SetFocus
End Sub
Private Sub retCom_click()
    Unload Me
End Sub
Private Sub selcmd1_click()     '确定
    If Trim(Text1(1).Text) <> "" Then
        If Not IsDate(Trim(Text1(1).Text)) Then
            MsgBox "出生日期输入错误,应为yyyy-mm-dd类型", vbOKOnly, "信息提示"
            Text1(1).SetFocus
            Exit Sub
        End If
    End If
    condstr = ""                '以下根据用户输入的数据构造一个条件表达式
    If Trim(Text1(0).Text) <> "" Then
        If condstr = "" Then
            condstr = "姓名 like '" + Trim(Text1(0).Text) + "'"
        Else
            condstr = condstr + " and 姓名 like '" + Trim(Text1(0).Text) + "'"
        End If
        If Trim(Text1(1).Text) <> "" Then
            If condstr = "" Then
                condstr = "出生日期-'" + Format(Trim(Text1(1).Text), "yyyy.mm.dd") + "'"
            Else
                condstr = condstr + " and 出生日期='" + Format(Trim(Text1(1).Text), "yyyy.mm.dd") + "'"
            End If
        End If
        If Trim(Text1(2).Text) <> "" Then
            If condstr = "" Then
                condstr = "通信地址 like '" + Trim(Text1(2).Text) + "'"
            Else
                condstr = condstr + " and 通信地址 like '" + Trim(Text1(2).Text) + "'"
            End If
        End If
        If Opt1.Value = True Then
            If condstr = "" Then
                condstr = "性别='男'"
            Else
                condstr = condstr + " and 性别='男'"
            End If
        ElseIf Opt2.Value = True Then
            If condstr = "" Then
                condstr = "性别='女'"
            Else
                condstr = condstr + " and 性别='女'"
            End If
        End If
        If condstr <> "" Then       '有条件查询
            Adodc1.RecordSource = "select * from ksb where " + condstr
            Adodc1.Refresh
        Else                        '无条件查询
            Adodc1.RecordSource = "select * from ksb"
            Adodc1.Refresh
        End If
        recs = Adodc1.Recordset.RecordCount
        If recs = 0 Then
            MsgBox "没有任何满足条件的记录", vbOKOnly, "信息提示"
        End If
    End If
End Sub
Private Sub selcmd2_click()     '重置
    Text1(0).Text = ""
    Text1(1).Text = ""
    Text1(2).Text = ""
    Opt1.Value = False
    Opt1.Value = False
End Sub
Private Sub text1_KeyPress(Index As Integer, KeyAscii As Integer)
    Call endata(KeyAscii)
End Sub

⌨️ 快捷键说明

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