📄 dutyset.frm
字号:
VERSION 5.00
Begin VB.Form frmDutySet
BorderStyle = 1 'Fixed Single
Caption = "考勤信息设置"
ClientHeight = 4155
ClientLeft = 2310
ClientTop = 4605
ClientWidth = 10890
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4155
ScaleWidth = 10890
Begin VB.CommandButton cmdClose
Caption = "退出设置"
Height = 375
Left = 9480
TabIndex = 33
Top = 3600
Width = 1335
End
Begin VB.CommandButton cmdCancel
Caption = "取消修改"
Height = 375
Left = 9480
TabIndex = 32
Top = 3000
Width = 1335
End
Begin VB.CommandButton cmdSave
Caption = "保存修改"
Height = 375
Left = 9480
TabIndex = 31
Top = 2400
Width = 1335
End
Begin VB.Frame Frame3
Caption = "加班计费方式"
Height = 1695
Left = 120
TabIndex = 20
Top = 2280
Width = 9135
Begin VB.TextBox txtMoneyBei
Height = 390
Left = 7920
TabIndex = 29
Top = 960
Width = 615
End
Begin VB.TextBox txtMoneyHours
Height = 390
Left = 5280
TabIndex = 27
Top = 960
Width = 615
End
Begin VB.TextBox txtMoneyDays
Height = 390
Left = 2640
TabIndex = 25
Top = 960
Width = 495
End
Begin VB.OptionButton optMoneyDays
Caption = "[核计方式]基本工资/"
Height = 495
Left = 480
TabIndex = 24
Top = 960
Width = 2295
End
Begin VB.TextBox txtOverWorkMoney
Height = 375
Left = 1920
TabIndex = 22
Top = 480
Width = 615
End
Begin VB.OptionButton optMoneyTimes
Caption = "[统一方式]"
Height = 495
Left = 480
TabIndex = 21
Top = 360
Value = -1 'True
Width = 1575
End
Begin VB.Label Label13
Caption = "倍"
Height = 375
Left = 8640
TabIndex = 30
Top = 1080
Width = 255
End
Begin VB.Label Label12
Caption = "小时(每天工作时间)*"
Height = 375
Left = 6000
TabIndex = 28
Top = 1080
Width = 2055
End
Begin VB.Label Label11
Caption = "天(月平均工作天数)/"
Height = 255
Left = 3240
TabIndex = 26
Top = 1080
Width = 2295
End
Begin VB.Label Label10
Caption = "元/次"
Height = 375
Left = 2760
TabIndex = 23
Top = 480
Width = 855
End
End
Begin VB.Frame Frame2
Caption = "旷工扣款方式"
Height = 2055
Left = 4920
TabIndex = 10
Top = 120
Width = 5895
Begin VB.TextBox txtNoBei
Height = 390
Left = 4920
TabIndex = 18
Top = 1320
Width = 375
End
Begin VB.TextBox txtNoDays
Height = 390
Left = 2280
TabIndex = 16
Top = 1320
Width = 495
End
Begin VB.OptionButton optNodays
Caption = "[核算方式]基本工资/"
Height = 375
Left = 240
TabIndex = 15
Top = 1320
Width = 2175
End
Begin VB.TextBox txtLessWorkMoney
Height = 375
Left = 1560
TabIndex = 13
Top = 840
Width = 615
End
Begin VB.OptionButton optNoyuan
Caption = "[统一方式]"
Height = 375
Left = 240
TabIndex = 12
Top = 840
Value = -1 'True
Width = 1455
End
Begin VB.OptionButton optNoMoney
Caption = "不扣款"
Height = 375
Left = 240
TabIndex = 11
Top = 360
Width = 1335
End
Begin VB.Label Label9
Caption = "倍"
Height = 375
Left = 5400
TabIndex = 19
Top = 1440
Width = 375
End
Begin VB.Label Label8
Caption = "天(月平均工作天数)*"
Height = 375
Left = 2880
TabIndex = 17
Top = 1440
Width = 2295
End
Begin VB.Label Label7
Caption = "元/天"
Height = 375
Left = 2400
TabIndex = 14
Top = 960
Width = 735
End
End
Begin VB.Frame Frame1
Caption = "全勤奖设置"
Height = 2055
Left = 120
TabIndex = 0
Top = 120
Width = 4695
Begin VB.TextBox txtLateTimes
Height = 375
Left = 1560
TabIndex = 8
Top = 1320
Width = 615
End
Begin VB.TextBox txtDutyDays
Height = 375
Left = 960
TabIndex = 5
Top = 840
Width = 615
End
Begin VB.TextBox txtDutyWage
Height = 390
Left = 1920
TabIndex = 2
Top = 225
Width = 1095
End
Begin VB.Label Label6
Caption = "次以上不可以领取全勤奖"
Height = 375
Left = 2280
TabIndex = 9
Top = 1440
Width = 2175
End
Begin VB.Label Label5
Caption = "迟到或早退"
Height = 375
Left = 480
TabIndex = 7
Top = 1440
Width = 1815
End
Begin VB.Label Label4
Caption = "天以上可以领取全勤奖"
Height = 375
Left = 1680
TabIndex = 6
Top = 960
Width = 2415
End
Begin VB.Label Label3
Caption = "出勤"
Height = 255
Left = 480
TabIndex = 4
Top = 960
Width = 735
End
Begin VB.Line Line1
DrawMode = 8 'Xor Pen
X1 = 480
X2 = 4440
Y1 = 720
Y2 = 720
End
Begin VB.Label Label2
Caption = "元"
Height = 375
Left = 3360
TabIndex = 3
Top = 360
Width = 735
End
Begin VB.Label Label1
Caption = "全勤奖金额:"
Height = 375
Left = 480
TabIndex = 1
Top = 360
Width = 1335
End
End
End
Attribute VB_Name = "frmDutySet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdSave_Click()
If txtDutyWage = "" Or txtDutyDays = "" Or LateTimes = "" Or OverWorkMoney = "" Or LessWorkMoney = "" Then
MsgBox "请输入完整信息!", vbCritical + vbOKOnly, "信息提示"
Else '否则将界面上输入的数据增加到数据库中去
Dim strSQL As String
strSQL = "Update Bast Set Zu= " + txtDutyWage + " Where ID=2"
ADOcn.Execute strSQL
strSQL = "Update Bast Set Zu= " + txtDutyDays + " Where ID=3"
ADOcn.Execute strSQL
strSQL = "Update Bast Set Zu= " + txtLateTimes + " Where ID=4"
ADOcn.Execute strSQL
strSQL = "Update Bast Set Zu= " + txtOverWorkMoney + " Where ID=6"
ADOcn.Execute strSQL
strSQL = "Update Bast Set Zu= " + txtLessWorkMoney + " Where ID=10"
ADOcn.Execute strSQL
MsgBox "操作成功!"
End If
DutyWage = txtDutyWage.Text
DutyDays = txtDutyDays.Text
LateTimes = txtLateTimes.Text
OverWorkMoney = txtOverWorkMoney.Text
LessWorkMoney = txtLessWorkMoney.Text
End Sub
Private Sub Form_Load()
txtDutyWage.Text = DutyWage
txtDutyDays.Text = DutyDays
txtLateTimes.Text = LateTimes
txtOverWorkMoney.Text = OverWorkMoney
txtLessWorkMoney.Text = LessWorkMoney
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -