Foxtable(狐表)用户栏目专家坐堂 → 提示这个信息,应该怎么改?谢谢


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

主题:提示这个信息,应该怎么改?谢谢

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


加好友 发短信
等级:五尾狐 帖子:1062 积分:9781 威望:0 精华:0 注册:2012/3/13 5:23:00
提示这个信息,应该怎么改?谢谢  发帖心情 Post By:2016/2/19 0:40:00 [显示全部帖子]

 

 

 

 

Dim rks As Double = DataTables("rukudan").sqlCompute("sum(shuliang)", "name = '" & e.DataRow("name") & "'")

        Dim rks1 As Double = DataTables("weixin").sqlCompute("sum(shuliang)", "name = '" & e.DataRow("name") & "'")

        Dim cks As Double = e.DataTable.sqlCompute("sum(shuliang)", "name = '" & e.DataRow("name") & "'")

        If cks + rks1 > rks Then

   'msgbox("无法出库,库存不足")

      Else

            Dim count As Integer = 0

            Dim drs As List(Of DataRow) = DataTables("rukudan").Select("name = '" & e.DataRow("name") & "'", "_Identify")

            For i As Integer = 0 To drs.count - 1

                Dim dr As DataRow = drs(i)

                count += dr("shuliang")

                Dim sy As Integer = count - (cks + rks1 - e.DataRow("shuliang"))

                If sy >= 0 Then

                    Dim cb, cbs As Double

                    count = 0

                    For j As Integer = i To drs.count - 1

                        dr = drs(j)

                        If j = i Then

                            count += sy

                            cb = sy * dr("price")

                        Else

                            count += dr("shuliang")

                            cb = dr("shuliang") * dr("price")

                            sy = dr("shuliang")

                        End If

                        If count >= e.DataRow("shuliang") Then

                            cbs += (e.DataRow("shuliang") - (count - sy)) * dr("price")

                             e.DataRow("cb")=cb

                                e.DataRow("cbs")=cbs

                                    e.DataRow("bb") = count

                           ' msgbox(cbs & count)

                            e.DataRow("lirun") = e.DataRow("shuliang") * e.DataRow("price") - cbs

                            Exit For

                        Else

                            cbs += cb

                        End If

                    Next

                    Exit For

                End If

            Next

    '    End If

End If



图片点击可在新窗口打开查看此主题相关图片如下:捕获.png
图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhengbe
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1062 积分:9781 威望:0 精华:0 注册:2012/3/13 5:23:00
  发帖心情 Post By:2016/2/19 23:22:00 [显示全部帖子]

图片点击可在新窗口打开查看图片点击可在新窗口打开查看图片点击可在新窗口打开查看图片点击可在新窗口打开查看图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhengbe
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1062 积分:9781 威望:0 精华:0 注册:2012/3/13 5:23:00
  发帖心情 Post By:2016/2/19 23:31:00 [显示全部帖子]

要放到 窗口的afterload事件里, 麻烦指点一下,换成tables(“”)。current也不行

[此贴子已经被作者于2016/2/19 23:45:16编辑过]

 回到顶部