什么乱七八糟的!到
"任务表"建一个日期列,名称"代码执行时间"
For Each dr As DataRow In DataTables("任务表").Select("事项 is not null")
if dr("代码执行时间") = date.today Then Continue For
If dr.IsNull("年") = False Then
If dr("年") <> d3.Year Then Continue For
End If
If dr.IsNull("月") = False Then
If dr("月") <> d3.Month Then Continue For
End If
If dr.IsNull("周") = False Then
If dr("周") <> d3.DayOfWeek Then Continue For
End If
If dr.IsNull("日") = False Then
If dr("日") <> d3.Day Then Continue For
End If
Dim r As Row = Tables("项目").AddNew
r("承接日期") = d3
r("类别") = dr("类别")
r("事项") = dr("事项")
dr("代码执行时间") = date.today
Next