以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  中断提醒问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=62776)

--  作者:xianzheng
--  发布时间:2015/1/7 20:20:00
--  中断提醒问题

求助:30天内提醒,但要求"停止提示1"列如果已钩选则不参与提提醒,红色代码部分要停止提醒,但不起作用,如何改代码呢,帮帮忙,谢谢!

 

Dim ids As String
Dim cnt As Integer
Dim nms As String
For Each dr As DataRow In DataTables("企业资料").DataRows
    Dim dt As Date = dr("证件期限_营业执照")
    dt =  New Date(Date.Today.Year,dt.Month,dt.Day)
    If Date.Today.AddDays(0) <= dt And dt <= Date.Today.AddDays(30) Then
        If Tables("企业资料").Filter = "证件期限_停止提示1 = false " Then
            cnt = cnt + 1
            ids = ids & ",  " & dr("_Identify")
            nms =  nms & "     " & cnt &"." & dr("中文简称") & vbcrlf
        End If
    End If
   
Next
If cnt > 0 Then
    messagebox.show("有" & cnt & "个客户营业执照即将到期,分别是:  "& vbcrlf  & nms.Trim(","),"提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If

图片点击可在新窗口打开查看

 

 


--  作者:有点甜
--  发布时间:2015/1/7 20:22:00
--  
If dr("证件期限_停止提示1") = False Then
    cnt = cnt + 1
    ids = ids & ",  " & dr("_Identify")
    nms =  nms & "     " & cnt &"." & dr("中文简称") & vbcrlf
End If

--  作者:xianzheng
--  发布时间:2015/1/7 20:25:00
--  

ok,谢谢!


--  作者:xianzheng
--  发布时间:2015/1/7 20:31:00
--  

我想在别在每个到期客户后再提示还有几天到期,这个真的不会写了,求助版主,谢谢!


--  作者:有点甜
--  发布时间:2015/1/7 20:36:00
--  

 加一列,到期天数 http://www.foxtable.com/help/topics/2471.htm

 

 

If dr("证件期限_停止提示1") = False Then
    cnt = cnt + 1
    ids = ids & ",  " & dr("_Identify")
    nms =  nms & "     " & cnt &"." & dr("中文简称") & vbcrlf
    Dim sp As TimeSpan = dt - Date.Today
    e.DataRow("到期天数") = sp.TotalDays
End If


--  作者:有点甜
--  发布时间:2015/1/7 22:36:00
--  
 看5楼
--  作者:xianzheng
--  发布时间:2015/1/7 22:37:00
--  

试过了,不行


--  作者:xianzheng
--  发布时间:2015/1/7 22:38:00
--  
按5楼的,试过了,不行
--  作者:有点甜
--  发布时间:2015/1/7 22:40:00
--  
Dim ids As String
Dim cnt As Integer
Dim nms As String
For Each dr As DataRow In DataTables("企业资料").DataRows
    Dim dt As Date = dr("证件期限_营业执照")
    dt =  New Date(Date.Today.Year,dt.Month,dt.Day)
    If Date.Today.AddDays(0) <= dt And dt <= Date.Today.AddDays(30) Then
        If dr("证件期限_停止提示1") = False Then
            cnt = cnt + 1
           
            Dim sp As TimeSpan = dt - Date.Today
           
            nms =  nms & "     " & cnt &"." & dr("中文简称") & "   " & sp.TotalDays & vbcrlf
        End If
    End If
   
Next
If cnt > 0 Then
    messagebox.show("有" & cnt & "个客户营业执照即将到期,分别是:  "& vbcrlf  & nms,"提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If

--  作者:xianzheng
--  发布时间:2015/1/7 22:45:00
--  
可以了,能及时帮助,我买这开发平台很值得!