以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=127235)

--  作者:sanny
--  发布时间:2018/11/8 21:47:00
--  [求助]

请问一下老师,我要把左边窗体表中的ShippingNo同时复制到右边表中的Shippinno中,如何加到下面代码中。谢谢。

 

 

If e.DataCol.Name = "Import" AndAlso e.DataRow("Import") = True Then
    Dim nma() As String = {"GSSAG_PO","Customer","Customer_POno","PO_Pos","GSSPartNo","Customer_PartNo","Qty_PerBox","delivery_address"} \'  数据列 Pakcinglist
    Dim nmb() As String = {"GSSAG_PO","Endcustomer","CustomerPO","Pos","GSSPart","PartNo","OpenQty","DeliveryAddress"}           \'数据列 orderlist
    Dim dr As DataRow = DataTables("Packinglist").AddNew
    For i As Integer = 0 To nma.Length - 1
       dr(nma(i)) = e.DataRow(nmb(i))
    Next
End If

 


图片点击可在新窗口打开查看此主题相关图片如下:捕获3.png
图片点击可在新窗口打开查看

--  作者:有点甜
--  发布时间:2018/11/8 21:56:00
--  

Dim dr As DataRow = DataTables("Packinglist").AddNew

 

改成

 

Dim dr As Row = Tables("Shipment.Packinglist").AddNew


--  作者:sanny
--  发布时间:2018/11/8 22:00:00
--  

非常实用,谢谢版主 有点甜