If _UserName = e.form.controls("订单明细").Table.Current("业务员") Then For i As Integer = 0 To e.form.controls("订单明细").Table.rows.count-1 Dim r As Row = e.form.controls("订单明细").Table.rows(i) If r.checked = True Then r("安排备货人员") = _UserName r("安排备货日期") = Date.Today() End If Next Else MessageBox.show("你无备货权限!")