Foxtable(狐表)用户栏目专家坐堂 → [求助]DateTimePicker类型转化无效


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

主题:[求助]DateTimePicker类型转化无效

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


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

Dim str As String = e.form.controls("combobox2").Value
MessageBox.show(str)
Dim Cols1() As String = {"清单项目","工程名称","工程分部","单位","合同工程量","清单单价"}
Dim Cols2() As String = {"清单项目","工程名称","工程分部","单位","合同工程量","清单单价"}
Dim dtp As WinForm.DateTimePicker = e.Form.Controls("DateTimePicker1")
For Each dr1 As DataRow In DataTables("清单目录").Select("[工程名称] = '" & str & "'")
    Dim dr2 As DataRow = DataTables("合同执行").AddNew()
    dr2("进度终止日期") = dtp.Value
    For Each dc As DataCol In DataTables("清单目录").DataCols
        dr2(dc.Name)= dr1(dc.Name)
    Next
Next

 回到顶部