Dim nma() As String = {"日期","借方_科目编码","借方_一级科目","借方_二级科目","本币金额","摘要"} 'A表数据来源列
Dim nmb() As String = {"日期","会计科目_编码","会计科目_一级科目","会计科目_二级科目","借方金额","摘要"} 'B表数据接收列
Dim dr As DataRow = DataTables("记账").AddNew
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = e.DataRow(nma(i))
Next
End If
If e.DataCol.Name = "已结转凭证" AndAlso e.DataRow("已结转凭证") = True Then
Dim nma() As String = {"日期","贷方_科目编码","贷方_一级科目","贷方_二级科目","本币金额","摘要"} 'A表数据来源列
Dim nmb() As String = {"日期","会计科目_编码","会计科目_一级科目","会计科目_二级科目","贷方金额","摘要"} 'B表数据接收列
Dim dr As DataRow = DataTables("记账").AddNew
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = e.DataRow(nma(i))
Next
End If
但我想勾选几张销售单后,合并一张凭证出来,不知道怎么做好。