遍历gridtable
For i As Integer = 0 To Me.UGrid_SEND.Rows.Count - 1
If Me.UGrid_SEND.Rows(i).Cells("CSFLAG").Value = True Then
sId = "," + sId + "," + Me.UGrid_SEND.Rows(i).Cells("ID").Value.ToString()
CsCount = CsCount + 1
If Not String.IsNullOrEmpty(header) AndAlso String.IsNullOrEmpty(checkRs) Then
If Not Me.UGrid_SEND.Rows(i).Cells("HEADER").Value.ToString().Equals(header) OrElse _
Not Me.UGrid_SEND.Rows(i).Cells("SHIP_ID").Value.ToString().Equals(shipid) Then
checkRs = "不可发行"
End If
End If
header = Me.UGrid_SEND.Rows(i).Cells("HEADER").Value.ToString()
shipid = Me.UGrid_SEND.Rows(i).Cells("SHIP_ID").Value.ToString()
End If
Next