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


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

主题:当前表过帐

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


加好友 发短信
等级:八尾狐 帖子:2043 积分:6670 威望: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") 把这个改为当前表怎样改,现在一点把没有加载的都过过去了

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


加好友 发短信
等级:八尾狐 帖子:2043 积分:6670 威望:0 精华:0 注册:2017/11/8 17:37:00
  发帖心情 Post By:2020/8/6 16:40:00 [显示全部帖子]

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

 回到顶部