Foxtable(狐表)用户栏目专家坐堂 → 订货编码及产品编码均不显示


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

主题:订货编码及产品编码均不显示

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


加好友 发短信
等级:幼狐 帖子:100 积分:1120 威望:0 精华:0 注册:2017/5/3 18:40:00
订货编码及产品编码均不显示  发帖心情 Post By:2017/5/10 14:48:00 [显示全部帖子]

If e.DataCol.Name = "产品名称" Then
    If e.DataRow.IsNull("产品名称") Then
        e.DataRow("产品编码") = Nothing
    Else
        e.DataRow("产品编码") = GetPy(e.DataRow("产品名称"), 1)
    End If
End If
If e.DataCol.Name = "订货日期" Then
    If e.DataRow.IsNull("订货日期") Then
    End If
    e.DataRow("产品编码") = Nothing
    
    Dim bh As String = e.DataRow("产品编码") & Format(cdate(e.DataRow("订货日期")),"yyyyMMdd")
    
    
    If e.DataRow("订货编码").StartsWith(bh) = False
        Dim max As String
        Dim idx As Integer
        If e.DataRow.IsNull("产品编码") Then
            max = e.DataTable.Compute("Max(订货编码)","产品编码 is null And 订货日期= #" & e.DataRow("订货日期") & "# And [_Identify] <> " & e.DataRow("_Identify"))
        Else
        End If
    End If
End If

 回到顶部