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


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

主题:[求助] 没有反应

美女呀,离线,留言给我吧!
susanhe
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:312 积分:2477 威望:0 精华:0 注册:2018/11/22 20:30:00
[求助] 没有反应  发帖心情 Post By:2020/1/19 13:12:00 [只看该作者]

老师,可以帮忙修改一下以下代码吗 ? 感谢了。

 

 

If e.Col.Name ="GSSPartNo"
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("该物料不是单独包装的!!!")
   Else


    e.Cancel =True
    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
   e.cancel = True
End If


 回到顶部