Foxtable(狐表)用户栏目专家坐堂 → [求助] 没有反应


  共有2128人关注过本帖平板打印复制链接

主题:[求助] 没有反应

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106949 积分:543964 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/1/19 14:05:00 [只看该作者]

代码在什么事件?要实现什么功能?

If e.Col.Name ="BoxNo" OrElse If e.Col.name = "Customer_PartNo"
    If e.Table.compute("count(Customer_PartNo)","Customer_PartNo='" & e.Row("Customer_PartNo") & "' and BoxNo='" & e.Row("BoxNo") & "'")> 1 Then
        msgbox("该物料不是单独包装的!!!")
        e.Cancel =True
    Else
        Dim r As Row = Tables("PackingInfo").AddNew
        r("CustomerPN") = e.Row("Customer_PartNo")
        r("GSSPartNo") = e.Row("GSSPartNo")
        
        r("Packing_Length") = e.Row("Box_Length")
        r("Packing_Width") = e.Row("Box_Width")
        r("Packing_Height") = e.Row("Box_Height")
        
        r("Packing_GrossWeight") = e.Row("Gross_Weight")
        r("Packing_Qty") = e.Row("Qty_perBox")
        
        Forms("窗口2").open
    End If
End If

 回到顶部