此主题相关图片如下:qq图片20221021100819.png
已设置如下代码,想统计列明的行业之外的行业类型(如居民服务业、农业等),“IF”的内容应如何设置?
Select Case e.DataCol.name
Case "行业类型","从业人数","注册资本"
Dim cy As Integer = e.DataRow("从业人数")
Dim yy As Integer = e.DataRow("注册资本")
Select Case e.DataRow("行业类型")
Case "51 批发业"
If cy >= 200 AndAlso yy >= 40000 Then
e.DataRow("统计规模") = "大型"
ElseIf cy >= 200 OrElse yy >= 40000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 20 AndAlso cy < 200 AndAlso yy>=5000 AndAlso yy < 40000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 20 AndAlso cy < 200 OrElse yy>=5000 AndAlso yy < 40000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 5 AndAlso cy < 20 AndAlso yy>=1000 AndAlso yy < 5000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 5 AndAlso cy < 20 OrElse yy>=1000 AndAlso yy < 5000 Then
e.DataRow("统计规模") = "微型"
ElseIf cy < 5 OrElse yy < 1000 Then
e.DataRow("统计规模") = "微型"
End If
Case "52 零售业"
If cy >= 300 AndAlso yy >= 20000 Then
e.DataRow("统计规模") = "大型"
ElseIf cy >= 300 OrElse yy >= 20000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 50 AndAlso cy < 300 AndAlso yy>= 500 AndAlso yy < 20000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 50 AndAlso cy < 300 OrElse yy>= 500 AndAlso yy < 20000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 50 AndAlso yy>= 100 AndAlso yy < 500 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 50 OrElse yy>= 100 AndAlso yy < 500 Then
e.DataRow("统计规模") = "微型"
ElseIf cy < 10 OrElse yy < 100 Then
e.DataRow("统计规模") = "微型"
End If
Case "59 装卸搬运和仓储业"
If cy >= 200 AndAlso yy >= 30000 Then
e.DataRow("统计规模") = "大型"
ElseIf cy >= 200 OrElse yy >= 30000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 200 AndAlso yy>= 1000 AndAlso yy < 30000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 200 OrElse yy>= 1000 AndAlso yy < 30000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 20 AndAlso cy < 100 AndAlso yy>= 100 AndAlso yy < 1000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 20 AndAlso cy < 100 OrElse yy>= 100 AndAlso yy < 1000 Then
e.DataRow("统计规模") = "微型"
ElseIf cy < 20 OrElse yy < 100 Then
e.DataRow("统计规模") = "微型"
End If
Case "61 住宿业"
If cy >= 300 AndAlso yy >= 10000 Then
e.DataRow("统计规模") = "大型"
ElseIf cy >= 300 OrElse yy >= 10000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 300 AndAlso yy>= 2000 AndAlso yy < 10000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 300 OrElse yy>= 2000 AndAlso yy < 10000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 100 AndAlso yy>= 100 AndAlso yy < 2000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 100 OrElse yy>= 100 AndAlso yy < 2000 Then
e.DataRow("统计规模") = "微型"
ElseIf cy < 10 OrElse yy < 100 Then
e.DataRow("统计规模") = "微型"
End If
Case "62 餐饮业"
If cy >= 300 AndAlso yy >= 10000 Then
e.DataRow("统计规模") = "大型"
ElseIf cy >= 300 OrElse yy >= 10000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 300 AndAlso yy>= 2000 AndAlso yy < 10000 Then
e.DataRow("统计规模") = "中型"
ElseIf cy >= 100 AndAlso cy < 300 OrElse yy>= 2000 AndAlso yy < 10000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 100 AndAlso yy>= 100 AndAlso yy < 2000 Then
e.DataRow("统计规模") = "小型"
ElseIf cy >= 10 AndAlso cy < 100 OrElse yy>= 100 AndAlso yy < 2000 Then
e.DataRow("统计规模") = "微型"
ElseIf cy < 10 OrElse yy < 100 Then
e.DataRow("统计规模") = "微型"
End If
End Select
End Select