Foxtable(狐表)用户栏目专家坐堂 → [求助] 批量锁行


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

主题:[求助] 批量锁行

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


加好友 发短信
等级:超级版主 帖子:106835 积分:543382 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/12/29 20:09:00 [显示全部帖子]

……

vars("总箱数") = cn1
vars("总立方") = cn2
vars("总毛重") = cn3

Dim Sheet As XLS.Sheet = Book.Sheets(0)

dim filter as string = ""

If Tables("packinglist_t").current("boxno") = Nothing
    filter  = "<BoxNo is null and (customer <> 'CWA' or customer is null)>"   '客户不是CWA才打印
Else
    filter  = "<BoxNo='" & Tables("packinglist_t").current("boxno") & "' and (customer <> 'CWA' or customer is null)>"   '客户不是CWA才打印
End If

sheet(5,14).value = filter 

……

Book.Save(fl) '保存工作簿
Proc.File = fl
Proc.Start()

End If

DataTables("packinglist_t").ReplaceFor("_locked",true,filter)


 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106835 积分:543382 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/12/29 20:34:00 [显示全部帖子]

dim filter as string = ""

If Tables("packinglist_t").current("boxno") = Nothing
    filter  = "BoxNo is null and (customer <> 'CWA' or customer is null)"   '客户不是CWA才打印
Else
    filter  = "BoxNo='" & Tables("packinglist_t").current("boxno") & "' and (customer <> 'CWA' or customer is null)"   '客户不是CWA才打印
End If

sheet(5,14).value = "<" & filter & ">"


 回到顶部