If Forms("监造周报窗口").Opened Then
If e.Table.Current IsNot Nothing Then
Dim fm1 As WinForm.FileManager
= Forms("监造周报窗口").Controls("FileManager1")
Dim fm2 As WinForm.FileManager
= Forms("监造周报窗口").Controls("FileManager2")
Dim fm3 As WinForm.FileManager
= Forms("监造周报窗口").Controls("FileManager3")
Dim fm As WinForm.PictureViewer
= Forms("监造周报窗口").Controls("PictureViewer1")
If Tables("监造周报").Current("审核")
IsNot Nothing Then '如果周报已经审批
fm1.AddCommand.Visible
= False
fm2.AddCommand.Visible = False
fm3.AddCommand.Visible = False
fm.AddCommand.Visible = False
fm1.DeleteCommand.Visible = False
fm2.DeleteCommand.Visible = False
fm3.DeleteCommand.Visible = False
fm.DeleteCommand.Visible = False
fm1.ClearCommand.Visible = False
fm2.ClearCommand.Visible = False
fm3.ClearCommand.Visible = False
fm.ClearCommand.Visible = False
Else
fm1.AddCommand.Visible = True
fm2.AddCommand.Visible = True
fm3.AddCommand.Visible = True
fm.AddCommand.Visible = True
fm1.DeleteCommand.Visible = True
fm2.DeleteCommand.Visible = True
fm3.DeleteCommand.Visible = True
fm.DeleteCommand.Visible = True
End If
End If
End If