老师您好:下面二组代码 我做在事件里都不能用,但找不出问题所在,请老师帮我指导一下,谢谢!!!
Dim dk As DataRow = e.DataRow
Select Case e.DataCol.Name
Case "其它应发工资_职称奖_本月总数","其它应发工资_岗位奖_本月总数","其它应发工资_技能奖_本月总数","其它应发工资_工龄奖_本月总数","其它应发工资_全勤奖_本月总数","其它应发工资_安全奖_本月总数","其它应发工资_施工津贴_本月总数","其它应发工资_绩效考核_本月总数","其它应发工资_超时补贴_本月总数","其它应发工资_其它津贴_本月总数",
' If dk.IsNull("其它应发工资_职称奖_本月总数") OrElse dk.IsNull("其它应发工资_岗位奖_本月总数") OrElse dk.IsNull("其它应发工资_技能奖_本月总数") Then '如果月天数或其它应发工资_岗位奖_平均每天为空
'dk("其它应发工资_小计") = Nothing
' Else
dk("其它应发工资_小计") = dk(其它应发工资_职称奖_本月总数) + dk("其它应发工资_岗位奖_本月总数") + dk("其它应发工资_技能奖_本月总数") + dk("其它应发工资_工龄奖_本月总数") + dk("其它应发工资_全勤奖_本月总数") + dk("其它应发工资_安全奖_本月总数") + dk("其它应发工资_施工津贴_本月总数") + dk("其它应发工资_绩效考核_本月总数") + dk("其它应发工资_超时补贴_本月总数") + dk("其它应发工资_其它津贴_本月总数")
End If
End Select
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dim dk As DataRow = e.DataRow
Select Case e.DataCol.Name
Case "其它应发工资_职称奖_本月总数","其它应发工资_岗位奖_本月总数","其它应发工资_技能奖_本月总数","其它应发工资_工龄奖_本月总数","其它应发工资_全勤奖_本月总数","其它应发工资_安全奖_本月总数","其它应发工资_施工津贴_本月总数","其它应发工资_绩效考核_本月总数","其它应发工资_超时补贴_本月总数","其它应发工资_其它津贴_本月总数",
dk("其它应发工资_小计") = dk(其它应发工资_职称奖_本月总数) + dk("其它应发工资_岗位奖_本月总数") + dk("其它应发工资_技能奖_本月总数") + dk("其它应发工资_工龄奖_本月总数") + dk("其它应发工资_全勤奖_本月总数") + dk("其它应发工资_安全奖_本月总数") + dk("其它应发工资_施工津贴_本月总数") + dk("其它应发工资_绩效考核_本月总数") + dk("其它应发工资_超时补贴_本月总数") + dk("其它应发工资_其它津贴_本月总数")
End Select