法律有以下:发布日期,实施日期,废止日期,
如果废止日期为空,如果当前日期大于实施日期,法律的时效性为实施中;如果当前日期小于实施日期,法律的时效性为尚未生效,
如果废止日期不为空,如果当前日期大于废止日期,法律的时效性为废止,如果当前日期大于实施日期小于废止日期,法律的时效性为实施中。
这种情况,当前日期如何表示?表达式该如何写?
商业版可以使用使用代码吗?如果可以的话,在哪里编辑
所有版本都可以写代码,如果还没有写过,先看看基础:
http://www.foxtable.com/webhelp/topics/1592.htm
比如
Select Case e.DataCol.Name
Case "实施日期","废止日期"
Dim dr As DataRow = e.DataRow
If dr.IsNull("废止日期") Then
if data.now > dr("实施日期") then
dr("时效性") = "实施中"
else
dr("时效性") = "尚未生效"
end if
Else
if data.now > dr("废止日期") then
dr("时效性") = "废止"
else
dr("时效性") = "实施中"
end if
End If
End Select