Foxtable(狐表)用户栏目专家坐堂 → 加载当天的数据


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

主题:加载当天的数据

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


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

Dim bjf() As String = {" ="," = "," like "," = "," = "," = ",">=","<=",">=","<="}
Dim fds() As String = {"仓库名称","入库原因","配件名称","配件代码","供应商名称","送货单号","入库日期","入库日期","数量","数量"}
Dim tpf() As String = {"","","%","","","","","","",""}
Dim filter As String
For i As Integer = 0 To nms.Length - 1
    If e.Form.Controls(nms(i)).text <> Nothing Then
        If filter > "" Then
            filter = filter & " And "
        End If
        If fds(i) = "入库日期" AndAlso bjf(i) = "<=" Then
            filter = filter & fds(i) & bjf(i) & sps(i) & tpf(i) & e.Form.Controls(nms(i)).value.adddays(1) &tpf(i) & sps(i)
        Else
            filter = filter & fds(i) & bjf(i) & sps(i) & tpf(i) & e.Form.Controls(nms(i)).value &tpf(i) & sps(i)
        End If

        MessageBox.show(filter)
    End If
Next
DataTables("配件入库明细").LoadFilter = filter
DataTables("配件入库明细").Load()

 


 回到顶部