Dim cmd As New SQLCommand
cmd.ConnectionName = "orders" '记得设置数据源名称
cmd.CommandText = "S elect 车牌号 From {订单}"
Dim dt As DataTable = cmd.ExecuteReader
'根据此页数据生成表格
Dim wb As New WeUI
With wb.AddTable("","Table1")
.PageNumber = page '设置页码
.ActiveSheet = "menu" '指定菜单
.Primarykey = "车牌号" '指定主键,只要是能唯一区分行的列即可,并非一定要表的实际主键.
.CreateFromDataTable(dt)
End With
'设计菜单
With wb.AddActionSheet("","menu")
.Add("mnudAdd", "确定选择此车牌号").Attribute="..." '调用js函数
End With
请问老师,提取表中某行车牌号必须调用js函数吗,有没有不调用js函数方法直接取到该车牌号<最好在本页中>,比如下面:
With.AddInput("车牌号","车牌号","text")
.Value = <提取的车牌号的值>
多谢!
[此贴子已经被作者于2017/3/24 20:14:05编辑过]