If e.DataCol.Name = "选择" Then Dim dr As DataRow = e.DataRow Dim cs() As String = {"轻度","严重"} If dr("选择") = True Dim dt As DataTable = DataTables("事件汇总") Dim ndr As DataRow For Each c As String In cs Dim n As Integer = dr(c) If n > 0 Then ndr = dt.AddNew(n) For Each dr1 As DataRow In dt.DataRows If dr1.RowState = DataRowState.Added Then dr1("译码日期") = dr("译码日期") dr1("性质") = "轻度" dr1.Save End If Next End If Next End If End If
|