Foxtable(狐表)用户栏目专家坐堂 → 代码调试


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

主题:代码调试

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110810 积分:563988 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2023/12/22 14:17:00 [显示全部帖子]

For Each xs As String In xss
    Dim riqi1 As New Date(Date.Today.Year, 1, 1)
    Dim riqi2 As New Date(Date.Today.Year, 12 , 31)
    
    Dim No As Integer = DataTables("销售合同明细").SQLCompute("sum(销售金额)/10000", "销售人员 = '" & xs & "' and [签约时间] >= '" & riqi1 & "' And [签约时间] <= '" & riqi2 & "'")
   ‘在首页中显示业绩
    Dim pg As WinForm.TopicPage
    pg = Forms("首页主窗口").Controls("TopicBar1").pages("本年业绩归属")
    
    pg.Links.Add("xs", xs & "(" & format(No, "#,###") & ")万元", "1.jpg")
Next

 回到顶部