Foxtable(狐表)用户栏目专家坐堂 → [求助] 表属性中的代码转成窗口中的按钮代码


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

主题:[求助] 表属性中的代码转成窗口中的按钮代码

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/11/30 9:19:00 [显示全部帖子]

Dim r As Row = Tables("表A").current
If r("Import") = True Then
    Dim Result As DialogResult
    If Tables("shipment").current("shippingNo") = Nothing Then
        Result = Messagebox.Show("新增 !!!","提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
        If Result = DialogResult.Yes Then
            Tables("shipment").addnew
        End If
    Else
        If r("Import") = True Then
            Dim nma() As String = {"PO","Customer","Customer_POno","PO_Pos","GSSPartNo","Customer_PartNo","Qty_PerBox","delivery_address","ETD"} '
            Dim nmb() As String ={"PO","Endcustomer","CustomerPO","Pos","GSSPart","PartNo","OpenQty","DeliveryAddress","ETD"}
           
            Dim dr As Row = Tables("Shipment.Packinglist").AddNew
           
            For i As Integer = 0 To nma.Length - 1
                dr(nma(i)) = r(nmb(i))
            Next
        End If
       
    End If
End If

 回到顶部