盘点报表_保存_Click
If Tables("盘点报表主").CanUndo Then
Dim r As DataRow =DataTables("盘点报表主").Find("盘点单号 Is null")
Dim max As String = DataTables("盘点报表").Compute("max(盘点单号)")
Dim pddh As WinForm.TextBox = e.Form.Controls("盘点单号")
If r Is Nothing Then
Return
Else
pddh.text=max+1
End If
DataTables("盘点报表主").Save()
If Tables("盘点报表").CanUndo Then
DataTables("盘点报表").Save()
MessageBox.Show("数据保存成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
MessageBox.Show("数据保存成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
Else
If Tables("盘点报表").CanUndo Then
DataTables("盘点报表").Save()
MessageBox.Show("数据保存成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
End If
盘点报表_返回_Click