Foxtable(狐表)用户栏目专家坐堂 → [求助]求助!如何实现每行列表项目不一样


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

主题:[求助]求助!如何实现每行列表项目不一样

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:113522 积分:578111 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/3/6 20:11:00 [显示全部帖子]

产品表PrepareEdit事件

If e.IsFocusCell Then
    If e.Col.Name Like "*_部件名称" Then
        If e.Row.IsNull("产品类型") Then
            e.Col.Combolist = Nothing
        Else
            e.Col.Combolist = DataTables("字典").GetComboListString(e.Row("产品类型") & "_部件名称", e.Row("产品类型") & "_部件名称 is not null")
        End If
    ElseIf e.Col.Name Like "*_辅件名称" Then
        If e.Row.IsNull("产品类型") Then
            e.Col.Combolist = Nothing
        Else
            e.Col.Combolist = DataTables("字典").GetComboListString(e.Row("产品类型") & "_辅件名称", e.Row("产品类型") & "_辅件名称 is not null")
        End If
    End If
End If

 回到顶部