以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  動計算日期設置  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=86184)

--  作者:winli
--  发布时间:2016/6/12 15:46:00
--  動計算日期設置
我的出產日期是2016年6月1號,我設置一個到期日期是2017年6月1日,這個是否可以設置到,我輸入2016年6月1日後到期日期自動計算出來?自動顯示?請指教
--  作者:狐狸爸爸
--  发布时间:2016/6/12 15:51:00
--  

http://www.foxtable.com/help/topics/1424.htm

http://www.foxtable.com/help/topics/1337.htm

http://www.foxtable.com/help/topics/1452.htm

 

 

If e.DataCol.Name = "起始日期"  Then
    If
e.DataRow.IsNull("起始日期") Then
        e.
DataRow("到期日期") = Nothing
    Else

        e.
DataRow("到期日期") = e.DataRow("起始日期").AddYears(1)
   
End If
End
If