Foxtable(狐表)用户栏目专家坐堂 → [求助] BOM展开问题


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

主题:[求助] BOM展开问题

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/7/9 8:55:00 [显示全部帖子]

Dim pn As String = args(0)
Dim qty As String = args(1)
Dim idx As Integer = args(2)

For Each dr As DataRow In  DataTables("BOM").Select("FNumber='" & pn & "'")
    Dim ndr As DataRow = DataTables("物料需求").AddNew
    ndr("PartNo") = dr("PN")
  '  ndr("Date") = args(3)
   ' ndr("批号") = args(4)
    ndr("Demand") = dr("FQty") * qty 
    ndr("层次") = "第" & idx & "层"
    
    Functions.Execute("sumChild",dr("PN"),ndr("Demand"), idx+1)
Next

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/7/9 20:22:00 [显示全部帖子]

afterload
……
        dr("层次") = "单件出货"
        
    End If
    Functions.Execute("sumChild",ary(0),qty, 1)
Next

 回到顶部