📄 form18.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"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Form15
Caption = "职工奖惩"
ClientHeight = 5550
ClientLeft = 60
ClientTop = 450
ClientWidth = 9465
LinkTopic = "Form15"
ScaleHeight = 5550
ScaleWidth = 9465
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 375
Left = 6000
TabIndex = 10
Top = 4920
Width = 975
End
Begin VB.TextBox Text4
Appearance = 0 'Flat
BackColor = &H00C0FFFF&
DataField = "原因"
DataSource = "Adodc1"
Height = 375
Left = 4560
TabIndex = 8
Top = 240
Width = 1815
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Form18.frx":0000
Height = 3015
Left = 360
TabIndex = 7
Top = 1560
Width = 8535
_ExtentX = 15055
_ExtentY = 5318
_Version = 393216
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 = 5
BeginProperty Column00
DataField = "ID"
Caption = "ID"
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 375
Left = 4800
TabIndex = 3
Top = 4920
Width = 975
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 375
Left = 3600
TabIndex = 2
Top = 4920
Width = 975
End
Begin VB.TextBox Text5
Appearance = 0 'Flat
BackColor = &H00C0FFFF&
DataField = "金额"
DataSource = "Adodc1"
Height = 375
Left = 7440
TabIndex = 1
Top = 240
Width = 1215
End
Begin VB.TextBox Text3
Appearance = 0 'Flat
BackColor = &H00C0FFFF&
DataField = "备注"
DataSource = "Adodc1"
Height = 495
Left = 840
TabIndex = 0
Top = 840
Width = 7575
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 4920
Width = 2295
_ExtentX = 4048
_ExtentY = 661
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "jc"
Caption = "浏览用户"
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 MSDataListLib.DataCombo DataCombo1
Bindings = "Form18.frx":0015
DataField = "ID"
DataSource = "Adodc1"
Height = 330
Left = 840
TabIndex = 11
Top = 240
Width = 1095
_ExtentX = 1931
_ExtentY = 582
_Version = 393216
OLEDropMode = 1
ListField = "编号"
Text = ""
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 6840
Top = 4920
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from rs"
Caption = "浏览"
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 MSAdodcLib.Adodc Adodc3
Height = 330
Left = 8160
Top = 4920
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from rs"
Caption = "浏览"
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 VB.Label Label2
BackStyle = 0 'Transparent
Caption = "编号"
Height = 375
Left = 240
TabIndex = 13
Top = 240
Width = 1095
End
Begin VB.Label Label5
DataField = "姓名"
DataSource = "Adodc3"
Height = 375
Left = 2880
TabIndex = 12
Top = 240
Width = 975
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "原因"
Height = 375
Left = 4080
TabIndex = 9
Top = 240
Width = 615
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "金额"
Height = 375
Left = 6840
TabIndex = 6
Top = 240
Width = 855
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "备注"
Height = 255
Left = 240
TabIndex = 5
Top = 840
Width = 975
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 375
Left = 2280
TabIndex = 4
Top = 240
Width = 855
End
End
Attribute VB_Name = "Form15"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click()
On Error Resume Next
Adodc1.Recordset.Delete
End Sub
Private Sub Command3_Click()
On Error Resume Next
Adodc1.Refresh
End Sub
Private Sub DataCombo1_Change()
bh = DataCombo1.Text
Adodc3.RecordSource = "select * from rs where 编号 ='" + bh + "'"
Adodc3.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -