Foxtable(狐表)用户栏目专家坐堂 → 表达式列提示 只读


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

主题:表达式列提示 只读

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


加好友 发短信
等级:二尾狐 帖子:579 积分:4940 威望:0 精华:0 注册:2014/4/29 14:32:00
表达式列提示 只读  发帖心情 Post By:2016/11/24 11:53:00 [显示全部帖子]

表达式列提示只读,,不知道问题在哪里

Dim zk As Decimal = fckzb.Current("zk")   
e.Form.Text=e.Form.Text+spdm+spmc    '设置窗口标题
Dim shang As Table=Tables(ckmc+"_shang")


'先生成商品明细,在把数量明细插入进去
'生成数据表,临时表并且绑定
Dim taba,tab As String
Dim a1 As String = "select a.spdm,a.spmc,a.spsj1 as lsj," & zk & " As zk,b.ggdm As gg1dm,c.ggmc As gg1mc,d.ggdm As gg2dm,e.ggmc As gg2mc fr  om shangpin As a"
Dim a2 As String = " left outer join spgg1mx b on a.spdm=b.spdm"
Dim a3 As String = " left outer join guige1 c on b.ggdm=c.ggdm"
Dim a4 As String = " left outer join spgg2mx d on a.spdm=d.spdm"
Dim a5 As String = " left outer join guige2 e on d.ggdm=e.ggdm"
Dim a6 As String = " where a.spdm='" & spdm & "'"
taba="("+a1+a2+a3+a4+a5+a6+")"
tab="select * fr  om " & taba & " as a order by gg1dm,gg2dm"
shang.Fill(tab,"zbh",True)
shang.DataTable.DataCols.add("sl",Gettype(Decimal)) '动态增加数量列
shang.DataTable.DataCols.add("dj",Gettype(Double),"isnull([lsj],0)*isnull([zk],0)") '动态增加单价
shang.DataTable.DataCols.add("je",Gettype(Double),"isnull([sl],0)*isnull([lsj],0)*isnull([zk],0)") '动态增加金额
shang.DataTable.DataCols.add("bz",Gettype(String)) '动态增加备注

图片点击可在新窗口打开查看此主题相关图片如下:只读列.jpg
图片点击可在新窗口打开查看




 回到顶部