这样应该对了吧
DataTables.save()
If e.Sender.Checked Then
Dim r As Row = Tables("需求明细表").Current
If r IsNot Nothing Then
If MessageBox.show("确认此版本现场测试通过?","博达软件管理系统",MessageBoxButtons.OKCancel,MessageBoxIcon.Question)=DialogResult.OK Then
SystemReady = False
DataTables("临时版本跟踪表").ReplaceFor("状态", "Confirmed", "需求编号 = '" & r("需求编号") & "'")
DataTables("临时版本跟踪表").SQLReplaceFor("状态", "Confirmed", "需求编号 = '" & r("需求编号") & "'")
DataTables("临时版本跟踪表").ReplaceFor("已确认可以发布", "True", "需求编号 = '" & r("需求编号") & "'")
DataTables("临时版本跟踪表").SQLReplaceFor("已确认可以发布", "True", "需求编号 = '" & r("需求编号") & "'")
Dim dr As DataRow
dr = DataTables("临时版本跟踪表").Find("需求编号 = '" & r("需求编号") & "'")
If dr("状态") = "Confirmed" Then
If dr.IsNull("Log") = False Then
dr("log") = User.Name & " " & Date.Now & " " & dr("状态") & vbcrlf & dr("log")
Else
dr("log") = User.Name & " " & Date.Now & " " & dr("状态")
End If
End If
SystemReady = True
Forms("发送mail").open
Dim m As New MailSender
m.Host = "mail.bdcom.com.cn"
m.Account = "version@bdcom.com.cn"
m.Password = "version"
m.From = "version@bdcom.com.cn"
If r.IsNull("邮件通知") = False Then
m.AddReceiver(r("邮件通知").Replace(vbcrlf, ",").Replace(chr(13), ",").Replace(chr(10), ","))
End If
If r.IsNull("研发邮箱") = False Then
m.AddReceiver(r("研发邮箱").Replace(vbcrlf, ",").Replace(chr(13), ",").Replace(chr(10), ","))
End If
If r.IsNull("技术支持邮箱") = False Then
m.AddReceiver(r("技术支持邮箱").Replace(vbcrlf, ",").Replace(chr(13), ",").Replace(chr(10), ","))
End If
If r.IsNull("退回通知") = False Then