Foxtable(狐表)用户栏目专家坐堂 → 在datacolchaned中加载表不成功


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

主题:在datacolchaned中加载表不成功

美女呀,离线,留言给我吧!
lfz123
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:530 积分:4607 威望:0 精华:0 注册:2018/3/24 18:04:00
在datacolchaned中加载表不成功  发帖心情 Post By:2019/7/10 7:27:00 [只看该作者]

为啥个人缴费信息表加载不成功呢?
If e.DataCol.Name = "证照号码" OrElse e.DataCol.name = "月份" Then
    If DataTables.Contains("个人缴费信息") = False Then
        DataTables("个人缴费信息").load()
    End If
    If e.DataRow.IsNull("证照号码") OrElse e.DataRow.IsNull("月份") Then
        e.DataRow("基本养老保险费") = Nothing
        e.DataRow("基本医疗保险费") = Nothing
        e.DataRow("失业保险费") = Nothing
    Else        
        Dim dr As DataRow = DataTables("个人缴费信息").find("证照号码 = '"& e.datarow("证照号码") & "'and 年份 = '"& e.datarow("年份") & "'and 月份 = '"& e.datarow("月份") & "'")
        If dr IsNot Nothing Then
            e.DataRow("基本养老保险费") = dr("个人月缴纳养老保险费")
            e.DataRow("基本医疗保险费") = dr("个人月缴纳医疗保险费")
            e.DataRow("失业保险费") = dr("个人月缴纳失业保险费")
        End If        
    End If
End If

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


加好友 发短信
等级:超级版主 帖子:107014 积分:544295 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/10 9:24:00 [只看该作者]

加载表:DataTables.Load("表C")
加载表数据:DataTables("表C").Load()

两者不是一回事

    If DataTables.Contains("个人缴费信息") = False Then
        DataTables.load("个人缴费信息")
    End If

 回到顶部