If e.DataCol.Name = "申报年度" OrElse e.DataCol.Name = "卷号" Then
e.DataRow("岗位个数_女性") = DataTables("开发登记").Compute("count(性别)","申报年度='" & e.DataRow("申报年度") & "' and 卷号='" & e.DataRow("卷号") & "' and [性别] = '女'")
e.DataRow("岗位个数_男性") = DataTables("开发登记").Compute("count(性别)","申报年度='" & e.DataRow("申报年度") & "' and 卷号='" & e.DataRow("卷号") & "' and [性别] = '男'")
End If
岗位个数:数量=女性+男性(2022 卷号001=3人、002=14人。2021,001卷3人,002卷2人才对。怎么设置??