If e.DataRow("ischeck")=5 Or e.DataRow("ischeck")=31 Then
e.DataRow("小计")=e.DataRow("productNum") * e.DataRow("价格")
Else
e.DataRow("小计")=0
End If
If e.DataRow("Ischeck") =5 Then
e.DataRow("oktime")= Date.now()
e.DataRow("ok数量")=e.DataRow("productNum")- e.DataRow("wenti数量") - e.DataRow("未付款数量") - e.DataRow("已付款数量")
End If
If e.DataRow("Ischeck") =7 Then
e.DataRow("celtime")= Date.now()
e.DataRow("取消数量")=e.DataRow("productNum")
End If
If e.DataRow("Ischeck") =31 Then
e.DataRow("yifutime")= Date.now()
e.DataRow("已付款数量")=e.DataRow("productNum") - e.DataRow("wenti数量") - e.DataRow("未付款数量")
End If
If e.DataRow("Ischeck") =3 Then
e.DataRow("wenti")= Date.now()
e.DataRow("wenti数量")=e.DataRow("productNum")
End If