Foxtable(狐表)用户栏目专家坐堂 → 求助 任务栏


  共有2287人关注过本帖树形打印复制链接

主题:求助 任务栏

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


加好友 发短信 一级勋章
等级:狐仙 帖子:9879 积分:57640 威望:0 精华:15 注册:2008/9/1 9:45:00
  发帖心情 Post By:2016/11/16 10:07:00 [显示全部帖子]

 Dim nms As String

        Dim n As Integer = 6

        For Each dr As DataRow In DataTables("员工").DataRows

            Dim dt As Date = dr("出生日期")

            Dim dt1 As New Date(Date.Today.Year, dt.Month, dt.Day)

            Dim dt2 As New Date(Date.Today.AddDays(n).Year, dt.Month, dt.Day)

            If (dt1 >= Date.Today AndAlso dt1 < Date.Today.AddDays(n)) OrElse (dt2 >= Date.Today AndAlso dt2 < Date.Today.AddDays(n)) Then

                nms = nms & ",'" & dr("姓名") & "'"

            End If

        Next

        If nms > "" Then

            nms = nms.Trim(",")

        End If
        Dim Pag As WinForm.TopicPage
        Pag = Forms("窗口5").Controls("TopicBar1").Pages("生日提醒")
        For Each pp As String In DataTables("员工").GetValues("姓名", "[姓名] In (" & nms & ")")
            Pag.Links.Add(pp, pp)
        Next

 回到顶部