老师,我想增加一个条件,生产型号包含:"正常生产"和 e.Form.Controls("生产型号1").text (标注颜色的部分:"生产型号 = '" & e.Form.Controls("生产型号1").text 和(正常生产) & "' ,请帮忙看看,谢谢!
Dim dt As DataTable = DataTables("设备维保记录")
Dim dt2 As DataTable = DataTables("生产排产表")
Dim t1 As Table = e.Form.Controls("生产排产分配表").Table
Dim filter As String = "成品编码 = '" & e.Form.Controls("成品编码1").text & "' and 生效状态='生效中'"
Tables("产品工艺路线").DataTable.LoadFilter = filter
Tables("产品工艺路线").DataTable.Load
Tables("产品工艺路线").Sort = "加工顺序"