Foxtable(狐表)用户栏目专家坐堂 → 列出科目详细名称


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

主题:列出科目详细名称

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


加好友 发短信
等级:超级版主 帖子:106563 积分:541980 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/12/1 11:41:00 [只看该作者]

Dim dr1 As DataRow = e.DataRow
Dim str1 As String
Dim st As String
Select Case e.DataCol.Name
case "科目编码","科目名称"
    if  e.DataRow("科目编码").length >= 4
        Dim strr As String = e.DataRow("科目编码").substring(0,4)
        Dim fdr As DataRow = DataTables("科目表").find("科目编码='" & strr & "'")
if fdr isnot nothing then
        st = fdr("科目名称")
end if
        ' MessageBox.Show("4")
elseif e.DataRow("科目编码").length >= 8
        Dim  strr As String = e.DataRow("科目编码").substring(0,8)
        Dim fdr As DataRow = DataTables("科目表").find("科目编码='" & strr & "'")
if fdr isnot nothing then
        st = fdr("科目名称")
        str1 &=  "-"& st
end if
else.............

 回到顶部