Foxtable(狐表)用户栏目专家坐堂 → 手工编码填充数据


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

主题:手工编码填充数据

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


加好友 发短信
等级:幼狐 帖子:164 积分:1377 威望:0 精华:0 注册:2018/7/18 18:48:00
手工编码填充数据  发帖心情 Post By:2021/6/21 18:09:00 [显示全部帖子]

Dim Cols1() As String = {"订单号","客户名称","产品代码","子件代码","子件名称","子件规格","下单日期","订单交期","订单数量","生产数量","单位","单位用量","材质"}
Dim Cols2() As String = {"订单号","客户名称","产品代码","子件代码","子件名称","子件规格","下单日期","订单交期","订单数量","生产数量","单位","单位用量","材质"}
For Each dr1 As DataRow In DataTables("MRP查询").Select("[下单日期]=Date() And [生产数量] > 0")
    Dim dr2 As DataRow = DataTables("MRP物料需求").AddNew()
    For i As Integer = 0 To Cols1.Length -1
        dr2(Cols2(i)) = dr1(Cols1(i))
    Next
Next
这个是个按钮代码,我想点击一下这个按钮,会自动填充“系统当日日期”的相关资料,即:[下单日期]=系统日期,请问这个代码要怎么改?填充颜色的有问题
请指教,谢谢!

 回到顶部