--
Dim dc As DataRow = e.DataRow
Dim pc As DataRow
Dim filter1 As String
filter1 = "品种_杆径 = \'" & dc("品种_杆径") & "\' And 品种_长度 = \'" & dc("品种_长度") & "\'"
pc = DataTables("工序能力表").Find(filter1)
If pc IsNot Nothing Then
msgbox("ab" & dc("品种_特殊要求") & "cd")
If dc("品种_特殊要求") = "加重杆"
msgbox(pc("日生产能力_机加_车加重杆"))
dc("本工序_日生产能力_根") = pc("日生产能力_机加_车加重杆")
Else
dc("本工序_日生产能力_根") = pc("日生产能力_机加_车一般杆")
End If
End If