Foxtable(狐表)用户栏目专家坐堂 → 查询与赋值并存


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

主题:查询与赋值并存

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


加好友 发短信
等级:超级版主 帖子:106097 积分:539590 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/10/17 20:59:00 [显示全部帖子]

Dim l2 As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox2")  '计划类型列表
Dim l3 As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox3")  '配送公司列表
Dim l5 As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox5")  '清单列入月份列表
Dim txt As String = e.Form.Controls("TextBox1").text 
If txt > "" Then
    Dim drs As List(Of  DataRow) = DataTables("高值耗材病人使用登记表").Select("配送公司='"& l3.value &"' and 清单列入月份='"& l5.value &"' and 计划类型='"& l2.value &"'" )
    For Each dr As DataRow In drs
        dr("结入月份") = txt
    Next
Else
    MessageBox.show("结入月份无数据")
End If

 回到顶部