Dim st As Date = Date.Now '开始计时 If Forms("通知").Opened Then Dim t As Table = Forms("通知").Controls("Table1").Table Forms("通知").TimerEnabled = False t.StopRedraw For Each r As Row In Tables("批量增加_table1").GetCheckedRows For Each s As String In r("被告").split(",") Dim r2 As Row = t.AddNew r2("案号") = r("案号") r2("被通知人") = s r2("审判程序") = r("审判程序") r2("诉讼地位") ="被告" Tables("通知_Table1").Current("制作日期") = Date.Now Next Next Tables("通知_table1").Sort = "制作日期,案号" t.ResumeRedraw Forms("通知").TimerEnabled = True End If MessageBox.Show("耗时: " & (Date.Now - st).TotalSeconds & "秒")
|