?? frmmodifyclassinfo.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 frmModifyclassinfo
Caption = "查看班級信息"
ClientHeight = 5850
ClientLeft = 45
ClientTop = 345
ClientWidth = 8865
LinkTopic = "Form1"
ScaleHeight = 5850
ScaleWidth = 8865
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Cmd_Back
BackColor = &H80000004&
Cancel = -1 'True
Caption = "返 回"
Height = 400
Left = 5760
MouseIcon = "frmModifyclassinfo.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 2
Top = 5040
Width = 1300
End
Begin VB.CommandButton Cmd_Del
BackColor = &H80000004&
Caption = "刪 除"
Height = 400
Left = 3360
MouseIcon = "frmModifyclassinfo.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 1
Top = 5040
Width = 1300
End
Begin VB.CommandButton Cmd_Modi
BackColor = &H80000004&
Caption = "修 改"
Height = 400
Left = 1080
MouseIcon = "frmModifyclassinfo.frx":0614
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 0
Top = 5040
Width = 1300
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 0
Top = 0
Visible = 0 'False
Width = 2415
_ExtentX = 4260
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=Student"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "Student"
OtherAttributes = ""
UserName = "sa"
Password = "sa"
RecordSource = "SELECT * FROM class_Info"
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 = "frmModifyclassinfo.frx":091E
Height = 4455
Left = 240
TabIndex = 3
Top = 360
Width = 8415
_ExtentX = 14843
_ExtentY = 7858
_Version = 393216
AllowUpdate = 0 'False
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 = 4
BeginProperty Column00
DataField = "class_No"
Caption = "班號"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "grade"
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 = "director"
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 = "classroom_No"
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 = 1500.095
EndProperty
BeginProperty Column01
ColumnWidth = 1769.953
EndProperty
BeginProperty Column02
ColumnWidth = 2654.929
EndProperty
BeginProperty Column03
ColumnWidth = 4245.166
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmModifyclassinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriEmpId As Integer
Private Sub Cmd_Back_Click()
Unload Me
End Sub
Private Sub Cmd_Del_Click()
Dim TmpId As Long
If Adodc1.Recordset.BOF = True Then
MsgBox "請選擇記錄"
Exit Sub
End If
TmpId = Adodc1.Recordset.Fields(0)
If MsgBox("是否刪除當前行?", vbYesNo, "確認") = vbYes Then
Call MyEmp.Delete(TmpId)
End If
Adodc1.Refresh
End Sub
Private Sub Cmd_Modi_Click()
'初始化FrmclassinfoEdit信息
FrmclassinfoEdit.txtClassno = Adodc1.Recordset.Fields(0)
FrmclassinfoEdit.comboGrade.Text = Adodc1.Recordset.Fields(1)
FrmclassinfoEdit.txtDirector = Adodc1.Recordset.Fields(2)
FrmclassinfoEdit.txtClassroom = Adodc1.Recordset.Fields(3)
'FrmclassinfoEdit.VarEmpId = OriEmpId
FrmclassinfoEdit.Modify = True
FrmclassinfoEdit.Show 1
Adodc1.Refresh
End Sub
'Private Sub Form_Load()
'Adodc1.RecordSource = "SELECT * FROM class_Info WHERE class_No=" + Trim(Str(OriEmpId))
' Adodc1.Refresh
'End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -