If e.DataCol.name = "项目_项目_甲" Then
Select Case e.DataRow("项目_项目_甲")
Case "总 计"
e.DataRow("合计_合计_a") = DataTables("员工花名册").compute("count(_Identify)","身份 = '干部' and 企业管理人员职务 <> ''")
e.DataRow("配置方式_委任和直接聘任_b") = DataTables("员工花名册").compute("count(_Identify)", "身份 = '干部' and 任职方式 in ('委任','聘任','聘用')")
e.DataRow("配置方式_选任_c") = DataTables("员工花名册").Compute("count(_identify)","任职方式 = '选任' and 身份 = '干部'")
e.DataRow("配置方式_市场化选聘_d") = DataTables("员工花名册").Compute("count(_identify)","任职方式 = '市场化选聘'")
我的这一段代码,在统计的时候“身份=干部”这一项不能统计,但是改成“身份证<>干部”就可以统计,不知道问题出在哪里……