我有平板系统。期限为一年。
1- 0 to 14 .................. 0 percent ded
2- 15 to 29 .................. 25 percent ded
3- 30 to 44 .................. 50 percent ded
4- 45 to 59 .................. 75 percent ded
5- 60 to 74 .................. 75 percent ded
如果员工缺勤超过14天,则开始扣除。 例如,如果员工缺勤30天
然后应用平板。第1天,第14天没有扣除,接下来的14天有25%扣除,接下来的2天有50%扣除。
下面是示例。
1- 0 to 14 (0%) .................. no deduction
2- 15 to 29 (25%) .................. 14 days
3- 30 to 44 (50%) .................. 14 days
4- 45 to 59 (75%) .................. 2 days
5- 60 to 74 (100%) .................. 0
我当时在想有一张桌子,然后在桌子上加些扣除。
Absent_No - numeric
Absent_EmployeeFromDate --date
Absent_EmployeeToDate --date
Absent_DeductionDays - numeric
Absent_SlabNo - numeric
Absent_EmployeeNo -numeric
,但是在下一次,如果员工再次缺席15天。 如果我搜索出勤的日期,那么缺席前我将总共获得30天,现在为15天。 (总共45天)
然后平板将在下面应用。
1- 0 to 14 (0%) .................. 0 percent ded
2- 15 to 29 (25%) .................. 14 days
3- 30 to 44 (50%) .................. 14 days
4- 45 to 59 (75%) .................. 2 already deduc + now 12 days deduction as 75%
5- 60 to 74 (100%) .................. 3 deduction as 100% Days
如何执行此操作,请对此提供帮助。
还请注意,没有。缺席将来自“出勤表”。
我也尝试使用vb.net代码。
从出勤中我将获得LdbM_TotalDays,从上表中我将获得已扣除的天数(LdbM_AlreadyDedDays)并通过。
但是如何扣除每个案件14天并跳转到另一个案件并扣除14天。
还请注意,每个平板有14天的差异。
Private Sub Frm_Slab(ByVal LdbM_TotalDays As Double, ByVal LdbM_AlreadyDedDays As Double)
Dim LdbM_14to29 As Double
Dim LdbM_30to44 As Double
Dim LdbM_45to59 As Double
Dim LdbM_60to74 As Double
Select Case LdbM_TotalDays 'example days = 44
'Note that each slab have 14 days different
Case 0 To 14 ' no deduction
Case 15 To 29 '25% 14 days dedcuct here
'This value will save in database
Case 30 To 44 '50% 14 day ded here
'This value will save in database
Case 45 To 59 '75% 2 days ded here
'This value will save in database
Case 60 To 74 '100%
'This value will save in database
End Select
End Sub