Select Case e.DataCol.Name Case "执行日期","单据状态","项目" If e.DataRow("执行日期") = Date.Today AndAlso e.DataRow("单据状态") = "已审核" AndAlso e.DataRow("项目") = "基本工资" Then e.DataRow("执行状态")= "已执行" Dim Filter As String = "[工号] = '" & e.DataRow("工号") & "' " DataTables("HR_人事档案").ReplaceFor("基本工资", e.DataRow("新值"), Filter) End If End If End Select