📄 form7.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form Form6
BackColor = &H00E0E0E0&
Caption = "工资"
ClientHeight = 3555
ClientLeft = 60
ClientTop = 345
ClientWidth = 8055
LinkTopic = "Form6"
ScaleHeight = 3555
ScaleWidth = 8055
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "保存"
Height = 375
Left = 6960
TabIndex = 16
Top = 2760
Width = 975
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "Form7.frx":0000
DataField = "编号"
DataSource = "Adodc1"
Height = 330
Left = 1200
TabIndex = 13
Top = 720
Width = 1215
_ExtentX = 2143
_ExtentY = 582
_Version = 393216
OLEDropMode = 1
ListField = "编号"
Text = ""
End
Begin VB.TextBox Text11
BackColor = &H00C0FFFF&
DataField = "其他"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 11
Top = 2040
Width = 1215
End
Begin VB.TextBox Text10
BackColor = &H00C0FFFF&
DataField = "保险"
DataSource = "Adodc1"
Height = 375
Left = 4080
TabIndex = 9
Top = 2040
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 375
Left = 5880
TabIndex = 8
Top = 2760
Width = 975
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 375
Left = 4800
TabIndex = 7
Top = 2760
Width = 975
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 375
Left = 3720
TabIndex = 6
Top = 2760
Width = 975
End
Begin VB.TextBox Text3
BackColor = &H00C0FFFF&
DataField = "奖金"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 2
Top = 1320
Width = 1215
End
Begin VB.TextBox Text2
BackColor = &H00C0FFFF&
DataField = "基本工资"
DataSource = "Adodc1"
Height = 375
Left = 4080
TabIndex = 1
Top = 1320
Width = 1215
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 360
Top = 2760
Width = 2775
_ExtentX = 4895
_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= 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 = "gs"
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 Adodc2
Height = 330
Left = 5040
Top = 120
Visible = 0 'False
Width = 2775
_ExtentX = 4895
_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 = 5760
Top = 600
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_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 Label6
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 375
Left = 3240
TabIndex = 15
Top = 600
Width = 855
End
Begin VB.Label Label5
DataField = "姓名"
DataSource = "Adodc3"
Height = 375
Left = 4080
TabIndex = 14
Top = 600
Width = 1215
End
Begin VB.Line Line2
X1 = 240
X2 = 5520
Y1 = 2520
Y2 = 2520
End
Begin VB.Label Label12
BackStyle = 0 'Transparent
Caption = "其他"
Height = 375
Left = 360
TabIndex = 12
Top = 2040
Width = 855
End
Begin VB.Label Label11
BackStyle = 0 'Transparent
Caption = "保险"
Height = 375
Left = 3240
TabIndex = 10
Top = 2040
Width = 855
End
Begin VB.Line Line3
X1 = 240
X2 = 5520
Y1 = 1800
Y2 = 1800
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "奖金"
Height = 255
Left = 360
TabIndex = 5
Top = 1320
Width = 975
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "基本工资"
Height = 375
Left = 3240
TabIndex = 4
Top = 1320
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "编号"
Height = 375
Left = 360
TabIndex = 3
Top = 720
Width = 1095
End
Begin VB.Line Line1
X1 = 240
X2 = 5520
Y1 = 1200
Y2 = 1200
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "基本工资信息"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000040&
Height = 375
Left = 360
TabIndex = 0
Top = 120
Width = 2055
End
End
Attribute VB_Name = "Form6"
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 Command4_Click()
On Error Resume Next
Adodc1.Recordset.Save
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 + -