Foxtable(狐表)用户栏目专家坐堂 → 显示错位


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

主题:显示错位

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/12/5 12:46:00 [显示全部帖子]

Dim e As RequestEventArgs = Args(0)
Select Case e.Path
    Case "list.htm"
        Dim wb As New WeUI
        wb.AppendHTML("<style>.mark{background-color:red; color:white;}</style>", True) '添加样式
        With wb.AddTable("","Table1")
            .head.Addrow("物料","已领数量","领料明细")
            For j As Integer = 0 To DataTables("表A").DataRows.count-1
                Dim dr = DataTables("表A").DataRows(j)
                If dr("条数") =1 Then
                    With .body.AddRow( dr("物料代码") &  "<br>" &  dr("物料名称")  )
                        .Addcell(dr("领料总数")  )
                        .Addcell( dr("领料明细") )
                    End With
                Else If dr("条数") >1 Then
                    With .body.AddRow
                        .AddCell(dr("物料代码") &  "<br>" &  dr("物料名称")  ,"rowspan=" & dr("条数")   )
                        .AddCell( dr("领料总数") ,"rowspan=" & dr("条数")  )
                        .AddCell( dr("领料明细") )
                    End With
                    For i As Integer=2 To dr("条数")
                       
                        j += 1
                        dr = DataTables("表A").DataRows(j)
                        .body.AddRow( dr("领料明细")  )
                       
                    Next
                   
                   
                   
                End If
            Next
        End With
       
        e.WriteString(wb.Build)
       
End Select

 回到顶部