Foxtable(狐表)用户栏目专家坐堂 → 出入库


  共有3027人关注过本帖树形打印复制链接

主题:出入库

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/2/23 17:55:00 [显示全部帖子]

出生证_入库表datacolchanged事件

Select Case e.DataCol.Name
    Case "起始编号","终止编号"
        If e.DataRow.IsNull("起始编号") = False AndAlso e.DataRow.IsNull("终止编号") = False
            
            Dim p As String = e.DataRow("起始编号")(0)
            Dim s1 As Long = e.DataRow("起始编号").substring(1)
            Dim s2 As Long = e.DataRow("终止编号").substring(1)
            Dim vas As List(Of String) = DataTables("出库明细").GetValues("首发出生证编号","首发出生证编号 >= '" & e.DataRow("起始编号") & "' and 首发出生证编号 <= '" & e.DataRow("终止编号") & "'")
            Dim dr As DataRow
            For i As Long = s1 To s2
                If vas.Contains(p & i) = False Then
                    dr = DataTables("出库明细").AddNew
                    dr("首发出生证编号") = p & i
                End If
            Next
        End If
End Select

 回到顶部