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

📄 pywhform.frm

📁 成绩管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form13 
   BackColor       =   &H0080C0FF&
   Caption         =   "评语维护窗口"
   ClientHeight    =   4635
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8190
   LinkTopic       =   "Form13"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   4635
   ScaleWidth      =   8190
   Begin VB.Frame Frame1 
      BackColor       =   &H0080C0FF&
      Height          =   1095
      Left            =   360
      TabIndex        =   8
      ToolTipText     =   "每一类别词条经添加和删除后,请立即按“词条入库”,否则不能改变库中原有内容。 "
      Top             =   0
      Width           =   7455
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "奖惩情况"
         Height          =   255
         Index           =   7
         Left            =   6000
         TabIndex        =   16
         Top             =   720
         Width           =   1095
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "寄予希望"
         Height          =   255
         Index           =   6
         Left            =   4200
         TabIndex        =   15
         Top             =   720
         Width           =   1455
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "人际关系"
         Height          =   255
         Index           =   5
         Left            =   2280
         TabIndex        =   14
         Top             =   720
         Width           =   1335
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "文艺活动"
         Height          =   180
         Index           =   4
         Left            =   360
         TabIndex        =   13
         Top             =   720
         Width           =   1215
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "体育活动"
         Height          =   255
         Index           =   3
         Left            =   6000
         TabIndex        =   12
         Top             =   240
         Width           =   1215
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "学习方面"
         Height          =   255
         Index           =   2
         Left            =   4200
         TabIndex        =   11
         Top             =   240
         Width           =   1215
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "班级工作"
         Height          =   255
         Index           =   1
         Left            =   2280
         TabIndex        =   10
         Top             =   240
         Width           =   1095
      End
      Begin VB.OptionButton Option 
         BackColor       =   &H0080C0FF&
         Caption         =   "政治思想"
         Height          =   180
         Index           =   0
         Left            =   360
         TabIndex        =   9
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.CommandButton Command4 
      Caption         =   "关闭"
      Height          =   420
      Left            =   6960
      TabIndex        =   6
      Top             =   3960
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "词条入库"
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   5
      Top             =   3360
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "词条删除"
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   4
      Top             =   2640
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "词条添加"
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   3
      Top             =   2040
      Width           =   1095
   End
   Begin VB.ListBox List1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2220
      Left            =   120
      TabIndex        =   2
      Top             =   2040
      Width           =   6495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   375
      Left            =   1680
      TabIndex        =   1
      Top             =   1320
      Width           =   6135
   End
   Begin VB.Label Label2 
      BackColor       =   &H0080C0FF&
      Caption         =   "评语词条列表"
      Height          =   255
      Left            =   120
      TabIndex        =   7
      Top             =   1800
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackColor       =   &H0080C0FF&
      Caption         =   "输入新的评语词条"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   1320
      Width           =   1455
   End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim wfile As String
Private Sub Command1_Click()
On Error Resume Next
If Text1.Text <> "" Then
   List1.AddItem Text1.Text
   Text1.Text = ""
End If
Command3.Enabled = True
Command1.Enabled = False
End Sub

Private Sub Command2_Click()
On Error Resume Next
Dim i, h As Integer
Dim stc As String
 For i = 0 To List1.ListCount - 1
        If List1.Selected(i) Then
           stc = List1.List(List1.ListIndex)
           Text1.Text = stc
           h = i
        End If
 Next i
  List1.RemoveItem h
  Command3.Enabled = True
  Command2.Enabled = False
End Sub

Private Sub Command3_Click()
On Error GoTo errwq
Kill wfile
Dim i As Integer
Open wfile For Output As #1
     For i = 0 To List1.ListCount - 1
         Write #1, List1.List(i)
     Next i
Close #1
MsgBox "词条入库完成", , "成绩管理系统V2.1"
Command3.Enabled = False
Exit Sub
errwq:
     MsgBox "有文件被删除或被破坏", , "成绩管理系统V2.1"
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Form_Load()
Me.Height = 5040
Me.Width = 8310
'Open ss For Input As #4
     'For i = 2 To 11
     '  Input #4, km
     '  kkmm(i) = km
     '  Form1.Label(i).Caption = km
    ' Next i
'Close #4

End Sub


Private Sub Form_Resize()
Me.Height = 5040
Me.Width = 8310
Me.Top = 100
Me.Left = 200
End Sub

Private Sub List1_Click()
Dim j As Integer
    For j = 0 To List1.ListCount - 1
        If List1.Selected(j) Then
          Command2.Enabled = True
          'Command3.Enabled = True
        End If
    Next j
End Sub

Private Sub Option_Click(Index As Integer)
On Error GoTo errwq
List1.Clear
'Command1.Enabled = True
'Command2.Enabled = True
'Command3.Enabled = True
Dim ct As String

Select Case Index
     Case 0
         wfile = App.Path + "\zzsx.dat"
        
     Case 1
         wfile = App.Path + "\gzqk.dat"
      
     Case 2
         wfile = App.Path + "\xxqk.dat"
        
     Case 3
         wfile = App.Path + "\tyhd.dat"
         
     Case 4
         wfile = App.Path + "\wyhd.dat"
        
     Case 5
         wfile = App.Path + "\rjgx.dat"
      
     Case 6
         wfile = App.Path + "\jyxw.dat"
       
      Case 7
         wfile = App.Path + "\jzqk.dat"
        
End Select
    Open wfile For Input As #4
        Do While Not EOF(4)
            Input #4, ct
            List1.AddItem ct
        Loop
    Close #4
  Exit Sub
errwq:
     MsgBox "有文件被删除或被破坏", , "成绩管理系统V2.1"
End Sub

Private Sub Text1_Change()
Command1.Enabled = True
End Sub

⌨️ 快捷键说明

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