Foxtable(狐表)用户栏目专家坐堂 → 命令顺序执行,禁止同时执行


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

主题:命令顺序执行,禁止同时执行

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


加好友 发短信
等级:超级版主 帖子:110744 积分:563646 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2024/4/18 16:17:00 [显示全部帖子]

Dim Cols1() As String = {"订单编号", "接单日期", "产品名称", "面积".......}
Dim Cols2() As String = {"订单编号", "接单日期", "产品名称", "面积".......}
For Each dr1 As DataRow In DataTables("订单主表").Select("[核销] ='√'")
    Dim dr2 As DataRow = DataTables("主表归档").AddNew()
    For i As Integer = 0 To Cols1.Length - 1
        dr2(Cols2(i)) = dr1(Cols1(i)) 
    Next 
Next

Dim Cols3() As String = {"订单编号", "接单日期", "产品名称", "产品颜色".......}
Dim Cols4() As String = {"订单编号", "接单日期", "产品名称", "产品颜色".......}
For Each dr3 As DataRow In DataTables("订单明细表").Select("[核销] ='√'")
    Dim dr4 As DataRow = DataTables("明细表归档").AddNew()
    For k As Integer = 0 To Cols3.Length - 1
        dr4(Cols4(k)) = dr3(Cols3(k)) 
    Next 
Next
DataTables("订单明细表").deletefor("[核销] ='√'")
DataTables("订单主表").deletefor("[核销] ='√'")


 回到顶部