If e.DataRow("类别") = "计划" Then
If e.DataRow("*序_工程名*") = "CA3" Then
Dim d As Date = "2017-08-03"
For i As Integer = 0 To 6
d = e.DataRow("*序_配膳日*").AddDays(i)
If d.DayOfWeek = 2 OrElse d.DayOfWeek = 5 Then
e.DataRow("*序_结束日*") = d
Exit For
End If
Next
end if
end if