Case "领料情况_不分机组"
If e.newvalue = False Then
DataTables("领料清单").DeleteFor("编号='" & e.DataRow("编号") & "'")
Else
If e.DataRow("物资说明") = "紧固件" Then
Dim ndr1 As DataRow = DataTables("领料清单").Find("预算编号 = '" & e.DataRow("预算编号") & "'")
If ndr1 Is Nothing Then
Dim ndr2 As DataRow = DataTables("领料清单").AddNew
End If
ndr2("编号") = e.DataRow("编号")
ndr2("预算编号") = e.DataRow("预算编号")
ndr2("生产令号") = e.DataRow("生产令号")
ndr2("项目名称") = e.DataRow("项目名称")
ndr2("物资说明") = e.DataRow("物资说明")
ndr2("单位") = "批"
ndr2("领料数量") = "1"
ndr2("领料日期") = Date.today
End If