Foxtable(狐表)用户栏目专家坐堂 → BeforeClose


  共有1651人关注过本帖平板打印复制链接

主题:BeforeClose

帅哥哟,离线,有人找我吗?
huhu
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1165 积分:8129 威望:0 精华:0 注册:2015/3/30 10:44:00
BeforeClose  发帖心情 Post By:2017/4/12 17:17:00 [只看该作者]

Dim tg As WinForm.RadioButton = e.Form.Controls("通过")
Dim wg As WinForm.RadioButton = e.Form.Controls("未过")
If tg.Checked = False And wg.Checked = False Then
    MessageBox.show("请出库品管校验","不能关窗口",MessageBoxButtons.OK,MessageBoxIcon.Error)
    e.Cancel = True-----设置为true,窗口仍然能关掉。这是咋回事?
End If
For Each dr As DataRow In DataTables("配货扫描").DataRows
    If dr.Isnull("SN") Then
        dr.Delete
        dr.save
    End If
Next

 回到顶部