If e.DataCol.Name = "MTType" Then
If e.NewValue = GrossMT Then
e.DataRow("Quantity") = DataTables("表A").Compute("Sum(GrossMT)", "[Job_id] = \'" & e.NewValue & "\'")
Else e.NewValue = NetMT Then
e.DataRow("Quantity") = DataTables("表A").Compute("Sum(NetMT)", "[Job_id] = \'" & e.NewValue & "\'")
End If
End If