--
If e.DataCol.Name = "凭证流水号" Then
Dim s As String = e.DataRow("凭证流水号")
If s.length > 9 Then
e.DataRow("凭证期间") = s.SubString(3,6)
Else
e.DataRow("凭证期间") = Nothing
End If
End If
If e.DataCol.Name = "凭证流水号" Then
Dim s As String = e.DataRow("凭证流水号")
If s.length > 13 Then
e.DataRow("凭证号") = s.SubString(9,4)
Else
e.DataRow("凭证号") = Nothing
End If
End If
[此贴子已经被作者于2015/3/21 17:18:21编辑过]