Dim e As RequestEventArgs = args(0)
Dim wb As New weui
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = "SE ECT * from 采购订单"
dt = cmd.ExecuteReader()
Select Case e.Path
Case "fdfd.htm"
wb.AddPage("","page1") '增加两个page
wb.AddPage("","page2",False) '第二个
Dim i As Integer = 0
For Each dr As DataRow In dt.DataRows
With wb.AddPreview("","pv" & i ,"含税金额:",dr("含税金额") & "元")
.AddItem("单据编号",dr("单据编号"))
.AddItem("物料名称",dr("物料名称"))
.AddItem("供应商",dr("供应商"))
.Addbutton("详细","" , 1,""")
End With
i = i + 1
Next
With wb.AddArticle("page2","ar2")
For Each dy As DataRow In dt.DataRows
With wb.AddPreview("ar2","pv1" ,"含税金额:",dy("含税金额") & "元")
.AddItem("单据编号",dy("单据编号"))
.AddItem("物料名称",dy("物料名称"))
.AddItem("供应商",dy("供应商"))
.AddItem("应采购数量",dy("应采购数量"))
.AddItem("数量",dy("数量"))
.AddItem("单价",dy("单价"))
.AddItem("交货日期",dy("交货日期"))
.AddItem("金额",dy("金额"))
.Addbutton("返回", "", 1,""")
End With
Next
End With
e.WriteString(wb.Build) '生成网页
End Select
大概的意思就是 跳转之后可以显示一个详细的 然后自己替换之后 就显示不出来了 是那些地方要修改一下吗 还会有 跳出page2 page1 还在下半部分的情况 多谢老师解答