Foxtable(狐表)用户栏目专家坐堂 → 窗口统计


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

主题:窗口统计

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


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33963 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2012/8/26 11:23:00 [显示全部帖子]

Dim dt As DataTable = DataTables("在籍学生信息")
Dim Filter As String = "[班级] = '" & e.Node.name & "'"
Dim drs As List(of DataRow) = dt.Select(Filter,"")
For i As Integer = 0 To drs.Count - 1
    e.Form.Controls("Lable" & i+1).text = drs(i)("姓名")
    e.Form.Controls("PictureBox" & i + 1).Image =  GetImage(drs(i)("照片"))
Next
For i As Integer = drs.Count To 9
    e.Form.Controls("Lable" & i + 1).text = ""
    e.Form.Controls("PictureBox" & i + 1).Image = Nothing
Next

e.Form.Controls("Label1").text = drs.count
e.Form.Controls("Label2").text = dt.Compute("count(性别)",Filter & " And 性别 = '男'")
e.Form.Controls("Label3").text = dt.Compute("count(性别)",Filter & " And 性别 = '女'")


 回到顶部