For Each c As WinForm.Control In e.Form.Controls
If Typeof c Is winform.textbox Then
Dim t As WinForm.TextBox = c
If t.Value Is Nothing Then
MessageBox.Show("请将" & t.Name & "内容填写完整!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Question)
Return
End If
End If
Next
Dim bj As Row = Tables("物料档案").AddNew
For Each c As WinForm.Control In e.Form.Controls
If Typeof c Is winform.textbox Then
Dim t As WinForm.TextBox = c
bj(t.name) = t.Text
End If
Next