1、证书工资怎么不正常了?输入姓名、重置姓名列,都可以引用得到值。
2、工龄,年龄计算
If e.DataCol.Name = "身份证号码" Then
Dim dr As DataRow = e.DataRow
If dr.IsNull("身份证号码") Then
dr("出生日期") = Nothing
dr("年龄") = Nothing
Else
dr("出生日期") = ReadBirthday(dr("身份证号码"))
Dim d As Date = dr("出生日期")
Dim y As Integer = d.year
If format(d, "MMdd") <= Format(Date.Today, "MMdd") Then
e.DataRow("年龄") = Date.Today.Year - y
Else
e.DataRow("年龄") = Date.Today.Year - y -1
End If
End If
End If
If e.DataCol.Name = "入职日期" Then
Dim dr As DataRow = e.DataRow
If dr.IsNull("入职日期") Then
dr("工龄") = Nothing
Else
Dim d As Date = dr("入职日期")
Dim y As Integer = d.year
If format(d, "MMdd") <= Format(Date.Today, "MMdd") Then
e.DataRow("工龄") = Date.Today.Year - y
Else
e.DataRow("工龄") = Date.Today.Year - y -1
End If
End If
End If
3、汇总逻辑是什么?每个员工根据什么逻辑统计到哪个列?
请看懂这个帮助文档 http://www.foxtable.com/webhelp/scr/0681.htm