以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 条件判断 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=133694) |
-- 作者:有点甜 -- 发布时间:2019/4/18 10:48:00 -- Select Case e.DataCol.Name Case "可用结存","目前需求","安全库存","已采未交" e.DataRow("待采数量") = e.DataRow("目前需求") + e.DataRow("安全库存") - e.DataRow("可用结存") - e.DataRow("已采未交") If e.DataRow("待采数量") < 0 Then e.DataRow("待采数量") = Nothing End If End Select |