以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 日期增加天数计算出错 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=140990) |
-- 作者:lg_yaolong -- 发布时间:2019/9/18 23:09:00 -- 日期增加天数计算出错 Select Case e.DataCol.Name Case "计划时间","完工日期" If e.DataRow.IsNull("计划时间") Then e.DataRow("完工日期") = Nothing Else e.DataRow("完工日期") = e.DataRow("计划时间").AddDays(e.DataRow("工期")) End If End Select 老师,红色部分,不能实现增加天数的功能,直接改为数字能实现。
|
-- 作者:有点蓝 -- 发布时间:2019/9/19 9:59:00 -- Select Case e.DataCol.Name Case "计划时间","工期" If e.DataRow.IsNull("计划时间") orelse e.DataRow.IsNull("工期") Then |
-- 作者:lg_yaolong -- 发布时间:2019/9/19 14:57:00 -- 感谢 |