Foxtable(狐表)用户栏目专家坐堂 → 请假


  共有3272人关注过本帖平板打印复制链接

主题:请假

帅哥哟,离线,有人找我吗?
Liangcai
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:300 积分:2541 威望:0 精华:0 注册:2011/9/24 13:30:00
  发帖心情 Post By:2014/3/10 20:29:00 [只看该作者]

If e.DataRow.IsNull("开始日期") And  e.DataRow.IsNull("结束日期") Then
    e.DataRow("请假天数")=Nothing
Else
    Dim d1 As Date = e.DataRow("开始日期")
    Dim d2 As Date = e.DataRow("结束日期")
    If d1>d2
        e.DataRow("请假天数") = 0
    Else
        Dim cnt As Integer = (d2-d1).TotalDays
        For i As Integer = 1 To cnt
            Dim d3 As Date = d1.adddays(i)
            If d3.DayOfWeek = 0 OrElse d3.DayOfWeek = 6 Then '

                cnt = cnt - 1
            End If
         End If
        Next
       e.DataRow("请假天数") = cnt
    End If
End If

法定节假日,节假日调休 不知怎样写进去


 回到顶部
总数 13 1 2 下一页