1550076451 2 lat temu
rodzic
commit
33af8b2670

+ 20 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WorkOrderReportController.cs

@@ -18,7 +18,7 @@ using static CallCenter.Utility.NPOIHelper;
18 18
 
19 19
 namespace CallCenterApi.Interface.Controllers.report
20 20
 {
21
-    [Authority]
21
+  //  [Authority]
22 22
     public class WorkOrderReportController : BaseController
23 23
     {
24 24
         private readonly BLL.T_Sys_Department departmentBLL = new BLL.T_Sys_Department();
@@ -1376,8 +1376,25 @@ namespace CallCenterApi.Interface.Controllers.report
1376 1376
             if (isdc>0)
1377 1377
             {
1378 1378
                 
1379
-                var dtdc = DbHelperSQL.Query(" select  *  from T_Sys_Evaluation a WITH(NOLOCK) where " + sql+ "order by F_Total desc").Tables[0];
1380
-                var msg = new NPOIHelper().ExportEvaluation ( dtdc, message, datemessage);
1379
+                var dtdc = DbHelperSQL.Query(" select  *  from T_Sys_Evaluation a WITH(NOLOCK) where " + sql+ " " +
1380
+                    " and F_Undertake>0 and F_Deptid in (select F_DeptId  from T_Sys_Department " +
1381
+                    "where F_DeptId in (SELECT F_DeptId  FROM dbo.[GetDaptiD](155) where F_IsDept = 1) " +
1382
+                    "and F_PartentId =155 and F_IsDealDept = 1 and F_DeptName not like '%测试%') order by F_Total desc").Tables[0];
1383
+
1384
+                var dtdc1 = DbHelperSQL.Query(" select  *  from T_Sys_Evaluation a WITH(NOLOCK) where " + sql + " " +
1385
+                    "and F_Undertake>0  and F_Deptid in (select F_DeptId  from T_Sys_Department " +
1386
+                    "where F_DeptId in (SELECT F_DeptId  FROM dbo.[GetDaptiD](155) where F_IsDept = 1) " +
1387
+                    "and F_PartentId in(167, 169,170) and F_IsDealDept = 1 and F_DeptName not like '%测试%') order by F_Total desc").Tables[0];
1388
+
1389
+                var dtdc2 = DbHelperSQL.Query(" select  *  from T_Sys_Evaluation a WITH(NOLOCK) where " + sql + " " +
1390
+                    "  and F_Undertake>0 and F_Deptid in (select F_DeptId  from T_Sys_Department " +
1391
+                    "where F_DeptId in (SELECT F_DeptId  FROM dbo.[GetDaptiD](155) where F_IsDept = 1) " +
1392
+                    "and F_PartentId in(171, 172) and F_IsDealDept = 1 and F_DeptName not like '%测试%')  order by F_Total desc").Tables[0];
1393
+
1394
+                var dtdc3 = DbHelperSQL.Query(" select  *  from T_Sys_Evaluation a WITH(NOLOCK) where " + sql + " " +
1395
+                    " and F_Undertake=0  order by F_Total desc").Tables[0];
1396
+
1397
+                var msg = new NPOIHelper().ExportEvaluation ( dtdc, dtdc1, dtdc2, dtdc3, message, datemessage);
1381 1398
                 if (msg == "")
1382 1399
                 {
1383 1400
                     return Success("导出成功");

+ 235 - 234
CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs

@@ -754,13 +754,243 @@ namespace CallCenter.Utility
754 754
                 return "导出失败!";
755 755
             }
756 756
         }
757
+        public  int  Evaluation(string  message,DataTable dt ,int index, ISheet sheet, ICellStyle cellStylebt, HSSFWorkbook workbook)
758
+        {
759
+            IRow irow01 = sheet.CreateRow(index);
760
+            ICell cell01 = irow01.CreateCell(0);
761
+            cell01.SetCellValue(message);
762
+            cell01.CellStyle = cellStylebt;
763
+            irow01.Height = 40 * 20;
764
+            sheet.AddMergedRegion(new CellRangeAddress(index, index, 0, 16));
765
+            index = index + 1;
766
+            IRow irow1 = sheet.CreateRow(index);
767
+            ICell cell1 = irow1.CreateCell(0);
768
+            cell1.SetCellValue("序号");
769
+            cell1.CellStyle = cellStylebt;
770
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 0, 0));
771
+            ICell cell2 = irow1.CreateCell(1);
772
+            cell2.SetCellValue("部门名称");
773
+            cell2.CellStyle = cellStylebt;
774
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 1, 1));
775
+
776
+            ICell cell14 = irow1.CreateCell(10);
777
+            cell14.SetCellValue("回访量");
778
+            cell14.CellStyle = cellStylebt;
779
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 10, 10));
780
+
781
+            ICell cell15 = irow1.CreateCell(11);
782
+            cell15.SetCellValue("满意量");
783
+            cell15.CellStyle = cellStylebt;
784
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 11, 11));
785
+
786
+            ICell cell4 = irow1.CreateCell(12);
787
+            cell4.SetCellValue("回访满意度");
788
+            cell4.CellStyle = cellStylebt;
789
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 12, 12));
790
+
791
+            ICell cell5 = irow1.CreateCell(13);
792
+            cell5.SetCellValue("知识库更新");
793
+            cell5.CellStyle = cellStylebt;
794
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 13, 13));
795
+
796
+            ICell cell8 = irow1.CreateCell(14);
797
+            cell8.SetCellValue("热线整合");
798
+            cell8.CellStyle = cellStylebt;
799
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 14, 14));
800
+
801
+            ICell cell6 = irow1.CreateCell(15);
802
+            cell6.SetCellValue("加扣分项");
803
+            cell6.CellStyle = cellStylebt;
804
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 15, 15));
805
+
806
+            ICell cell7 = irow1.CreateCell(16);
807
+            cell7.SetCellValue("总分");
808
+            cell7.CellStyle = cellStylebt;
809
+            sheet.AddMergedRegion(new CellRangeAddress(2, 3, 16, 16));
810
+
811
+
812
+
813
+
814
+            ICell cell9 = irow1.CreateCell(2);
815
+            cell9.SetCellValue("事项报备");
816
+            cell9.CellStyle = cellStylebt;
817
+            sheet.AddMergedRegion(new CellRangeAddress(2, 2, 2, 3));
818
+
819
+            ICell cell10 = irow1.CreateCell(4);
820
+            cell10.SetCellValue("事项办理");
821
+            cell10.CellStyle = cellStylebt;
822
+            sheet.AddMergedRegion(new CellRangeAddress(2, 2, 4, 5));
823
+
824
+
825
+            ICell cell12 = irow1.CreateCell(6);
826
+            cell12.SetCellValue("办理时限");
827
+            cell12.CellStyle = cellStylebt;
828
+            sheet.AddMergedRegion(new CellRangeAddress(2, 2, 6, 7));
829
+
830
+
831
+            ICell cell13 = irow1.CreateCell(8);
832
+            cell13.SetCellValue("重办事项");
833
+            cell13.CellStyle = cellStylebt;
834
+            sheet.AddMergedRegion(new CellRangeAddress(2, 2, 8, 9));
835
+
836
+
837
+            index = index + 1;
838
+
839
+            IRow irow3 = sheet.CreateRow(index);
840
+            ICell cell11 = irow3.CreateCell(2);
841
+            cell11.SetCellValue("数量");
842
+            cell11.CellStyle = cellStylebt;
843
+            ICell cell16 = irow3.CreateCell(3);
844
+            cell16.SetCellValue("得分");
845
+            cell16.CellStyle = cellStylebt;
846
+
847
+
848
+
849
+
850
+            ICell cell17 = irow3.CreateCell(4);
851
+            cell17.SetCellValue("承办量");
852
+            cell17.CellStyle = cellStylebt;
853
+            ICell cell18 = irow3.CreateCell(5);
854
+            cell18.SetCellValue("得分");
855
+            cell18.CellStyle = cellStylebt;
856
+
857
+
858
+            ICell cell19 = irow3.CreateCell(6);
859
+            cell19.SetCellValue("逾期量");
860
+            cell19.CellStyle = cellStylebt;
861
+            ICell cell20 = irow3.CreateCell(7);
862
+            cell20.SetCellValue("得分");
863
+            cell20.CellStyle = cellStylebt;
864
+
865
+
866
+            ICell cell21 = irow3.CreateCell(8);
867
+            cell21.SetCellValue("重办量");
868
+            cell21.CellStyle = cellStylebt;
869
+            ICell cell22 = irow3.CreateCell(9);
870
+            cell22.SetCellValue("得分");
871
+            cell22.CellStyle = cellStylebt;
872
+
873
+
874
+            ICellStyle cellStylebt1 = workbook.CreateCellStyle();
875
+            NPOI.SS.UserModel.IFont cellfontbt1 = workbook.CreateFont();
876
+            cellfontbt1.Boldweight = (short)FontBoldWeight.Normal;
877
+            cellStylebt1.SetFont(cellfontbt1);
878
+            cellStylebt1.VerticalAlignment = VerticalAlignment.Center;
879
+            cellStylebt1.Alignment = HorizontalAlignment.Center;
880
+            index = index + 1;
881
+            if (dt != null && dt.Rows.Count > 0)
882
+            {
883
+                int iCellIndex = 0;
884
+                foreach (DataRow dr in dt.Rows)
885
+                {
886
+                    IRow irow4 = sheet.CreateRow(index);
887
+                    index++;
888
+                    iCellIndex++;
889
+                    for (int i = 0; i < 17; i++)
890
+                    {
891
+                        switch (i)
892
+                        {
893
+                            case 0:
894
+                                ICell cell = irow4.CreateCell(i);
895
+                                cell.SetCellValue(iCellIndex);
896
+                                cell.CellStyle = cellStylebt1;
897
+                                break;
898
+                            case 1:
899
+                                ICell cel1 = irow4.CreateCell(i);
900
+                                cel1.SetCellValue(dr["F_DeptName"].ToString());
901
+                                cel1.CellStyle = cellStylebt1;
902
+                                break;
903
+                            case 2:
904
+                                ICell cel2 = irow4.CreateCell(i);
905
+                                cel2.SetCellValue(dr["F_Reporting"].ToString());
906
+                                cel2.CellStyle = cellStylebt1;
907
+                                break;
908
+                            case 3:
909
+                                ICell cel12 = irow4.CreateCell(i);
910
+                                cel12.SetCellValue(dr["F_Matter"].ToString());
911
+                                cel12.CellStyle = cellStylebt1;
912
+                                break;
913
+                            case 4:
914
+                                ICell cel3 = irow4.CreateCell(i);
915
+                                cel3.SetCellValue(dr["F_Undertake"].ToString());
916
+                                cel3.CellStyle = cellStylebt1;
917
+                                break;
918
+                            case 5:
919
+                                ICell cel13 = irow4.CreateCell(i);
920
+                                cel13.SetCellValue(dr["F_Handling"].ToString());
921
+                                cel13.CellStyle = cellStylebt1;
922
+                                break;
923
+                            case 6:
924
+                                ICell cel4 = irow4.CreateCell(i);
925
+                                cel4.SetCellValue(dr["F_Boverdue"].ToString());
926
+                                cel4.CellStyle = cellStylebt1;
927
+                                break;
928
+                            case 7:
929
+                                ICell cel14 = irow4.CreateCell(i);
930
+                                cel14.SetCellValue(dr["F_Timelimit"].ToString());
931
+                                cel14.CellStyle = cellStylebt1;
932
+                                break;
933
+                            case 8:
934
+                                ICell cel15 = irow4.CreateCell(i);
935
+                                cel15.SetCellValue(dr["F_Redovolume"].ToString());
936
+                                cel15.CellStyle = cellStylebt1;
937
+                                break;
938
+                            case 9:
939
+                                ICell cel5 = irow4.CreateCell(i);
940
+                                cel5.SetCellValue(dr["F_Redo"].ToString());
941
+                                cel5.CellStyle = cellStylebt1;
942
+                                break;
943
+                            case 10:
944
+                                ICell cel16 = irow4.CreateCell(i);
945
+                                cel16.SetCellValue(dr["F_Returnvisit"].ToString());
946
+                                cel16.CellStyle = cellStylebt1;
947
+                                break;
948
+                            case 11:
949
+                                ICell cel17 = irow4.CreateCell(i);
950
+                                cel17.SetCellValue(dr["F_Satisfaction"].ToString());
951
+                                cel17.CellStyle = cellStylebt1;
952
+                                break;
953
+                            case 12:
954
+                                ICell cel6 = irow4.CreateCell(i);
955
+                                cel6.SetCellValue(dr["F_Satisfied"].ToString());
956
+                                cel6.CellStyle = cellStylebt1;
957
+                                break;
958
+                            case 13:
959
+                                ICell cel7 = irow4.CreateCell(i);
960
+                                cel7.SetCellValue(dr["F_knowledge"].ToString());
961
+                                cel7.CellStyle = cellStylebt1;
962
+                                break;
963
+                            case 14:
964
+                                ICell cel10 = irow4.CreateCell(i);
965
+                                cel10.SetCellValue(dr["F_Integration"].ToString());
966
+                                cel10.CellStyle = cellStylebt1;
967
+                                break;
968
+
969
+                            case 15:
970
+                                ICell cel8 = irow4.CreateCell(i);
971
+                                cel8.SetCellValue(dr["F_Buckle"].ToString());
972
+                                cel8.CellStyle = cellStylebt1;
973
+                                break;
974
+                            case 16:
975
+                                ICell cel9 = irow4.CreateCell(i);
976
+                                cel9.SetCellValue(dr["F_Total"].ToString());
977
+                                cel9.CellStyle = cellStylebt1;
978
+                                break;
979
+                        }
980
+
757 981
 
982
+                    }
983
+
984
+                }
985
+            }
986
+            return index;
987
+        }
758 988
         /// <summary>
759 989
         /// 督办数据报表导出
760 990
         /// </summary>
761 991
         /// <param name="ds"></param>
762 992
         /// <returns></returns>
763
-        public string ExportEvaluation(DataTable dt,string message,string data)
993
+        public string ExportEvaluation(DataTable dt, DataTable dt1, DataTable dt2, DataTable dt3, string message,string data)
764 994
         {
765 995
             try
766 996
             {
@@ -793,239 +1023,10 @@ namespace CallCenter.Utility
793 1023
 
794 1024
 
795 1025
 
796
-
797
-
798
-                IRow irow1 = sheet.CreateRow(2);
799
-                ICell cell1 = irow1.CreateCell(0);
800
-                cell1.SetCellValue("序号");
801
-                cell1.CellStyle = cellStylebt;
802
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 0, 0));
803
-                ICell cell2 = irow1.CreateCell(1);
804
-                cell2.SetCellValue("部门名称");
805
-                cell2.CellStyle = cellStylebt;
806
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 1, 1));
807
-
808
-
809
-              
810
-
811
-
812
-
813
-                ICell cell14 = irow1.CreateCell(10);
814
-                cell14.SetCellValue("回访量");
815
-                cell14.CellStyle = cellStylebt;
816
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 10, 10));
817
-
818
-                ICell cell15 = irow1.CreateCell(11);
819
-                cell15.SetCellValue("满意量");
820
-                cell15.CellStyle = cellStylebt;
821
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 11, 11));
822
-
823
-                ICell cell4 = irow1.CreateCell(12);
824
-                cell4.SetCellValue("回访满意度");
825
-                cell4.CellStyle = cellStylebt;
826
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 12, 12));
827
-
828
-                ICell cell5 = irow1.CreateCell(13);
829
-                cell5.SetCellValue("知识库更新");
830
-                cell5.CellStyle = cellStylebt;
831
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 13, 13));
832
-
833
-                ICell cell8 = irow1.CreateCell(14);
834
-                cell8.SetCellValue("热线整合");
835
-                cell8.CellStyle = cellStylebt;
836
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 14, 14));
837
-
838
-                ICell cell6 = irow1.CreateCell(15);
839
-                cell6.SetCellValue("加扣分项");
840
-                cell6.CellStyle = cellStylebt;
841
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 15, 15));
842
-
843
-                ICell cell7 = irow1.CreateCell(16);
844
-                cell7.SetCellValue("总分");
845
-                cell7.CellStyle = cellStylebt;
846
-                sheet.AddMergedRegion(new CellRangeAddress(2, 3, 16, 16));
847
-
848
-             
849
-
850
-              
851
-                ICell cell9 = irow1.CreateCell(2);
852
-                cell9.SetCellValue("事项报备");
853
-                cell9.CellStyle = cellStylebt;
854
-                sheet.AddMergedRegion(new CellRangeAddress(2, 2, 2, 3));
855
-
856
-                ICell cell10 = irow1.CreateCell(4);
857
-                cell10.SetCellValue("事项办理");
858
-                cell10.CellStyle = cellStylebt;
859
-                sheet.AddMergedRegion(new CellRangeAddress(2, 2, 4, 5));
860
-
861
-
862
-                ICell cell12 = irow1.CreateCell(6);
863
-                cell12.SetCellValue("办理时限");
864
-                cell12.CellStyle = cellStylebt;
865
-                sheet.AddMergedRegion(new CellRangeAddress(2, 2, 6, 7));
866
-
867
-
868
-                ICell cell13 = irow1.CreateCell(8);
869
-                cell13.SetCellValue("重办事项");
870
-                cell13.CellStyle = cellStylebt;
871
-                sheet.AddMergedRegion(new CellRangeAddress(2, 2, 8, 9));
872
-
873
-
874
-
875
-
876
-                IRow irow3 = sheet.CreateRow(3);
877
-                ICell cell11 = irow3.CreateCell(2);
878
-                cell11.SetCellValue("数量");
879
-                cell11.CellStyle = cellStylebt;
880
-                ICell cell16 = irow3.CreateCell(3);
881
-                cell16.SetCellValue("得分");
882
-                cell16.CellStyle = cellStylebt;
883
-
884
-
885
-
886
-               
887
-                ICell cell17 = irow3.CreateCell(4);
888
-                cell17.SetCellValue("承办量");
889
-                cell17.CellStyle = cellStylebt;
890
-                ICell cell18 = irow3.CreateCell(5);
891
-                cell18.SetCellValue("得分");
892
-                cell18.CellStyle = cellStylebt;
893
-
894
-
895
-                ICell cell19 = irow3.CreateCell(6);
896
-                cell19.SetCellValue("逾期量");
897
-                cell19.CellStyle = cellStylebt;
898
-                ICell cell20 = irow3.CreateCell(7);
899
-                cell20.SetCellValue("得分");
900
-                cell20.CellStyle = cellStylebt;
901
-
902
-
903
-                ICell cell21 = irow3.CreateCell(8);
904
-                cell21.SetCellValue("重办量");
905
-                cell21.CellStyle = cellStylebt;
906
-                ICell cell22 = irow3.CreateCell(9);
907
-                cell22.SetCellValue("得分");
908
-                cell22.CellStyle = cellStylebt;
909
-
910
-
911
-
912
-
913
-                ICellStyle cellStylebt1 = workbook.CreateCellStyle();
914
-                NPOI.SS.UserModel.IFont cellfontbt1 = workbook.CreateFont();
915
-                cellfontbt1.Boldweight = (short)FontBoldWeight.Normal;
916
-                cellStylebt1.SetFont(cellfontbt1);
917
-                cellStylebt1.VerticalAlignment = VerticalAlignment.Center;
918
-                cellStylebt1.Alignment = HorizontalAlignment.Center;
919
-
920
-                int index = 4;
921
-                if (dt != null && dt.Rows.Count >0)
922
-                {
923
-                    int iCellIndex = 0;
924
-                    foreach (DataRow dr in dt.Rows)
925
-                    {
926
-                        IRow irow4 = sheet.CreateRow(index);
927
-                        index++;
928
-                        iCellIndex++;
929
-                        for (int i = 0; i < 17; i++)
930
-                        {
931
-                            switch (i )
932
-                            {
933
-                                case 0:
934
-                                    ICell cell = irow4.CreateCell(i);
935
-                                    cell.SetCellValue(iCellIndex);
936
-                                    cell.CellStyle = cellStylebt1;
937
-                                    break;
938
-                                case 1:
939
-                                    ICell cel1 = irow4.CreateCell(i);
940
-                                    cel1.SetCellValue(dr["F_DeptName"].ToString ());
941
-                                    cel1.CellStyle = cellStylebt1;
942
-                                    break;
943
-                                case 2:
944
-                                    ICell cel2 = irow4.CreateCell(i);
945
-                                    cel2.SetCellValue(dr["F_Reporting"].ToString());
946
-                                    cel2.CellStyle = cellStylebt1;
947
-                                    break;
948
-                                case 3:
949
-                                    ICell cel12 = irow4.CreateCell(i);
950
-                                    cel12.SetCellValue(dr["F_Matter"].ToString());
951
-                                    cel12.CellStyle = cellStylebt1;
952
-                                    break;
953
-                                case 4:
954
-                                    ICell cel3 = irow4.CreateCell(i);
955
-                                    cel3.SetCellValue(dr["F_Undertake"].ToString());
956
-                                    cel3.CellStyle = cellStylebt1;
957
-                                    break;
958
-                                case 5:
959
-                                    ICell cel13 = irow4.CreateCell(i);
960
-                                    cel13.SetCellValue(dr["F_Handling"].ToString());
961
-                                    cel13.CellStyle = cellStylebt1;
962
-                                    break;
963
-                                case 6:
964
-                                    ICell cel4 = irow4.CreateCell(i);
965
-                                    cel4.SetCellValue(dr["F_Boverdue"].ToString());
966
-                                    cel4.CellStyle = cellStylebt1;
967
-                                    break;
968
-                                case 7:
969
-                                    ICell cel14 = irow4.CreateCell(i);
970
-                                    cel14.SetCellValue(dr["F_Timelimit"].ToString());
971
-                                    cel14.CellStyle = cellStylebt1;
972
-                                    break;
973
-                                case 8:
974
-                                    ICell cel15 = irow4.CreateCell(i);
975
-                                    cel15.SetCellValue(dr["F_Redovolume"].ToString());
976
-                                    cel15.CellStyle = cellStylebt1;
977
-                                    break;
978
-                                case 9:
979
-                                    ICell cel5 = irow4.CreateCell(i);
980
-                                    cel5.SetCellValue(dr["F_Redo"].ToString());
981
-                                    cel5.CellStyle = cellStylebt1;
982
-                                    break;
983
-                                case 10:
984
-                                    ICell cel16 = irow4.CreateCell(i);
985
-                                    cel16.SetCellValue(dr["F_Returnvisit"].ToString());
986
-                                    cel16.CellStyle = cellStylebt1;
987
-                                    break;
988
-                                case 11:
989
-                                    ICell cel17 = irow4.CreateCell(i);
990
-                                    cel17.SetCellValue(dr["F_Satisfaction"].ToString());
991
-                                    cel17.CellStyle = cellStylebt1;
992
-                                    break;
993
-                                case 12:
994
-                                    ICell cel6 = irow4.CreateCell(i);
995
-                                    cel6.SetCellValue(dr["F_Satisfied"].ToString());
996
-                                    cel6.CellStyle = cellStylebt1;
997
-                                    break;
998
-                                case 13:
999
-                                    ICell cel7 = irow4.CreateCell(i);
1000
-                                    cel7.SetCellValue(dr["F_knowledge"].ToString());
1001
-                                    cel7.CellStyle = cellStylebt1;
1002
-                                    break;
1003
-                                case 14:
1004
-                                    ICell cel10 = irow4.CreateCell(i);
1005
-                                    cel10.SetCellValue(dr["F_Integration"].ToString());
1006
-                                    cel10.CellStyle = cellStylebt1;
1007
-                                    break;
1008
-                                    
1009
-                                case 15:
1010
-                                    ICell cel8= irow4.CreateCell(i);
1011
-                                    cel8.SetCellValue(dr["F_Buckle"].ToString());
1012
-                                    cel8.CellStyle = cellStylebt1;
1013
-                                    break;
1014
-                                case 16:
1015
-                                    ICell cel9 = irow4.CreateCell(i);
1016
-                                    cel9.SetCellValue(dr["F_Total"].ToString());
1017
-                                    cel9.CellStyle = cellStylebt1;
1018
-                                    break;
1019
-                            }
1020
-
1021
-
1022
-                        }
1023
-                       
1024
-                    }
1025
-                }
1026
-               
1027
-
1028
-             
1026
+                int index1 = Evaluation("一、县区", dt, 2, sheet, cellStylebt, workbook);
1027
+                int index2 = Evaluation("二、市直单位", dt1, index1+1, sheet, cellStylebt, workbook);
1028
+                int index3 = Evaluation("三、公共服务企业", dt2, index2+1, sheet, cellStylebt, workbook);
1029
+                int index4 = Evaluation("四、未办件单位", dt3, index3 + 1, sheet, cellStylebt, workbook);
1029 1030
                 //自适应列宽度
1030 1031
                 for (int i = 0; i < 10; i++)
1031 1032
                 {