datacolchanged代码If e.DataRow.Isnull("优惠价") Then
e.DataRow("应开piao") = e.DataRow("价税合计")
e.DataRow("毛利") = e.DataRow("价税合计") - e.DataRow("专家签字费") - e.DataRow("佣金") - e.DataRow("外包金额")
e.DataRow("未收款") = e.DataRow("价税合计") - e.DataRow("已收款")
Else
e.DataRow("应开piao") = e.DataRow("优惠价")
e.DataRow("毛利") = e.DataRow("优惠价") - e.DataRow("专家签字费") - e.DataRow("佣金") - e.DataRow("外包金额")
e.DataRow("未收款") = e.DataRow("优惠价") - e.DataRow("已收款")
End If
e.DataRow("未开piao") = e.DataRow("应开piao") - e.DataRow("已开piao")
e.DataRow("未收款") = e.DataRow("金额") - e.DataRow("已收款")
此主题相关图片如下:堆栈防护.png
