If e.DataCol.Name = "到货情况" Then
e.DataRow("设备材料总数") = DataTables("备件明细").SQLCompute("count(ERP计划号)", "[ERP计划号] = '" & e.DataRow("ERP计划号") & "'")
e.DataRow("设备材料到货数") = DataTables("备件明细").SQLCompute("count(ERP计划号)", "[ERP计划号] = '" & e.DataRow("ERP计划号") & "'and [是否到货] = '是'")
e.DataRow("到货情况") = e.DataRow("设备材料到货数") / e.DataRow("设备材料总数")
End If
我只编辑了几行代码每当重置“到货情况”列的时候会出现明显的5秒的卡顿,请问这个是什么原因怎么改?