Foxtable(狐表)用户栏目专家坐堂 → 库存量的判断


  共有8660人关注过本帖树形打印复制链接

主题:库存量的判断

帅哥哟,离线,有人找我吗?
czy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33945 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2012/9/18 9:57:00 [显示全部帖子]

楼上的代码应该有问题的,pdr既然没有再接下去进行比较要出错的。

 回到顶部
帅哥哟,离线,有人找我吗?
czy
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33945 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2012/9/18 10:02:00 [显示全部帖子]

这样看看

If e.DataCol.name = "quantity"
Dim po As String = e.DataRow("PO")
Dim ty As String = e.DataRow("material_type")
Dim name As String = e.DataRow("material_name")
Dim size As String = e.DataRow("material_size")
Dim color As String = e.DataRow("color")
Dim pdr As DataRow = DataTables("库存表").Find("PO = '" & po & "' And material_type = '" & ty & "' And material_name = '" & name & "' And material_size = '" & size & "' And material_color = '" & color & "'")
if pdr Isnot Nothing Then
If pdr("stocking_qty") < e.NewValue  Then
MessageBox.Show("库存不足")
End If
else
MessageBox.Show("没有符合条件的数据")
End If


 回到顶部