Foxtable(狐表)用户栏目专家坐堂 → [求助]请给检查下哪里的错误,脑袋有点木了!


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

主题:[求助]请给检查下哪里的错误,脑袋有点木了!

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/1/22 23:25:00 [显示全部帖子]

Select Case e.DataCol.Name
    Case "收入","支出"
        Dim ddbh As String = e.DataRow("订单编号")
        Dim sr As Double
        Dim zc As Double
        Dim ye As Double
        sr = e.DataTable.SQLCompute("sum(收入)","[订单编号] = '" & ddbh & "'")
        zc = e.DataTable.SQLCompute("sum(支出)","[订单编号] = '" & ddbh & "'")
        ye = sr - zc

        Dim ddlr As DataRow = DataTables("订单").Find("[订单编号] = '" & ddbh & "'")

        If ddlr IsNot Nothing Then ddlr = DataTables("订单").SqlFind("[订单编号] = '" & ddbh & "'")

        ddlr("利润") = ye
        ddlr.Save
End Select

 回到顶部