Foxtable(狐表)用户栏目专家坐堂 → 当前表过帐


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

主题:当前表过帐

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


加好友 发短信
等级:八尾狐 帖子:1995 积分:6338 威望:0 精华:0 注册:2017/11/8 17:37:00
当前表过帐  发帖心情 Post By:2020/8/6 15:44:00 [只看该作者]


Dim Cols1() As String = {"日期","单号","供应商","物料编码","货物名称","规格","单位","数量","结算单价","结算金额","会计年度","单据类型"}
Dim Cols2() As String = {"入库日期","单号","供应商","物料编码","货物名称","规格","单位","数量","含税单价","含税金额","会计年度","单据类型"}
For Each dr1 As DataRow In DataTables("已审采购").Select("[选择] = True and [fa piao凭证] is null")
     Dim dr2 As DataRow = DataTables("采购明细").AddNew()
         dr1("fa piao凭证") = "进项fa piao数据采购"
     For i As Integer = 0 To Cols1.Length -1
         dr2(Cols2(i)) = dr1(Cols1(i))
     Next
Next
DataTables("已审销售").Save()
DataTables("采购明细").Save()
DataTables("采购明细").deletefor("[含税金额] Is null OR [含税金额] = 0")
MessageBox.Show("把已选择及fa piao未核销的数据复制到采购明细了", "提示", MessageBoxButtons.Ok, MessageBoxIcon.Information)


For Each dr1 As DataRow In DataTables("已审采购").Select("[选择] = True and [fa piao凭证] is null") 把这个改为当前表怎样改,现在一点把没有加载的都过过去了

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


加好友 发短信
等级:超级版主 帖子:110795 积分:563913 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/8/6 15:50:00 [只看该作者]

当前表?currenttable?这个意思?

For Each dr1 As DataRow In currenttable.DataTable.Select("[选择] = True and [fa piao凭证] is null") 

 回到顶部
帅哥哟,离线,有人找我吗?
zhuxinhui
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:八尾狐 帖子:1995 积分:6338 威望:0 精华:0 注册:2017/11/8 17:37:00
  发帖心情 Post By:2020/8/6 16:40:00 [只看该作者]

已处理好了
现在是把没有加载都过到采购明细表,我只是想把过滤后的过到采购明细表

 回到顶部