Foxtable(狐表)用户栏目专家坐堂 → [求助]数据读入问题


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

主题:[求助]数据读入问题

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


加好友 发短信
等级:狐神 帖子:4841 积分:35105 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2018/11/19 21:19:00 [显示全部帖子]

Select Case e.DataCol.Name
    Case "是否完成"
        If e.NewValue = True
            e.DataRow("完成时间") = Date.Now
        Else
            e.DataRow("完成时间") = Nothing
        End If
    Case "订单编号"
        If e.DataRow.IsNull("订单编号")
            e.DataRow("客户编码") = Nothing
        Else
            Dim dr As DataRow = DataTables("订单").Find("订单编号='" & e.DataRow("订单编号") & "'")
            If dr IsNot Nothing
                e.DataRow("客户编码") = dr("客户编码")
            Else
                e.DataRow("客户编码") = Nothing
            End If
        End If
End Select

 回到顶部