Browse Source

督办导出,增加回访方式

duhongyu 4 years ago
parent
commit
6b6712bdf7

File diff suppressed because it is too large
+ 10 - 3
CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs


+ 1 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -140,8 +140,7 @@ namespace CallCenterApi.Interface.Controllers.tel
140 140
                 var dtdc = DbHelperSQL.Query(" select   ROW_NUMBER()  OVER(ORDER BY CallRecordsId desc) 编号, CallNumber 电话号码,(case CallType when 0 then '呼入' else '呼出' end ) 呼叫方向,(case CallState when 0 then ( case CallType when 0 then (case  when isnull(UserCode,'')!='' then  '主动放弃' else '未接通' end) else '未接通' end    ) else '已接通' end ) 呼叫状态,UserCode 坐席工号,dbo.GetUserName(UserCode) as 坐席姓名, "
141 141
                     + "BeginTime 开始时间,TalkStartTime 通话开始时间 ,TalkEndTime " +
142 142
                     " 通话结束时间 ,EndTime 结束时间 ,LongTime 通话时长 ,PhoneType " +
143
-                    "电话类别, (select top 1  F_WorkOrderId from T_Bus_WorkOrder WITH(NOLOCK) where F_CallRecordId=a.CallRecordsId and F_IsDelete=0) " +
144
-                    "工单号"
143
+                    "电话类别"
145 144
                    + " from T_Call_CallRecords  a WITH(NOLOCK)  where 1=1 " + sql+ "ORDER BY CallRecordsId desc").Tables[0];
146 145
                 var msg = new NPOIHelper().ExportToExcel("通话记录", dtdc);
147 146
                 if (msg == "")

+ 9 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -8712,6 +8712,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
8712 8712
                 string latitude = RequestString.GetFormString("latitude");//纬度
8713 8713
                 int business = RequestString.GetInt("business", 0); ;//
8714 8714
                 int ispd = RequestString.GetInt("ispd", 0); ;//是否自动派单
8715
+                int visittype = RequestString.GetInt("visittype", 0); ;//回访方式
8716
+                
8715 8717
                 string phonetype = RequestString.GetFormString("phonetype");//电话类型
8716 8718
                 lock (_MyLock)
8717 8719
                 {
@@ -8745,6 +8747,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
8745 8747
                         modelT_Bus_WorkOrder.F_Key = keys;
8746 8748
                         modelT_Bus_WorkOrder.F_SplitUser = splituser;
8747 8749
                         modelT_Bus_WorkOrder.F_Level = level;
8750
+                        modelT_Bus_WorkOrder.F_VisitType = visittype;
8751
+                        
8748 8752
                         modelT_Bus_WorkOrder.F_Latitude = latitude != "" ? decimal.Parse(latitude) : 0;//纬度
8749 8753
                         modelT_Bus_WorkOrder.F_Longitude = longitude != "" ? decimal.Parse(longitude) : 0;//经度
8750 8754
                                                                                                           // modelT_Bus_WorkOrder.F_IsOpen = isopen;
@@ -14271,11 +14275,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
14271 14275
             if (!string.IsNullOrEmpty(phone))
14272 14276
             {
14273 14277
                 if (phone.Trim().Length > 11)
14274
-                    phone = phone.Substring(1, 12);
14275
-                else
14276
-                {
14277
-                    return Error("请输入号码");
14278
-                }
14278
+                    phone = phone.Substring(1, 11);
14279
+            }
14280
+            else
14281
+            {
14282
+                return Error("请输入号码");
14279 14283
             }
14280 14284
             string count = "您反映的诉求已办理完成,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn),登录后查看办结结果并对办理情况进行评价,谢谢";
14281 14285
             string mag = "";

+ 4 - 1
CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

@@ -693,7 +693,10 @@ namespace CallCenterApi.Model
693 693
         /// 重办标识
694 694
         /// </summary>
695 695
         public int F_Identification { set; get; }
696
-
696
+        /// <summary>
697
+        /// 回访方式1无需回访
698
+        /// </summary>
699
+        public int F_VisitType { set; get; }
697 700
         #endregion Model
698 701
 
699 702
     }

+ 12 - 9
CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs

@@ -566,18 +566,21 @@ namespace CallCenter.Utility
566 566
                     str = dr["Comment"].ToString();
567 567
                     break;
568 568
                 case 15:
569
-                    str = dr["dissatisfied"].ToString();
569
+                    str = dr["Oncedissatisfied"].ToString();
570 570
                     break;
571 571
                 case 16:
572
-                    str = dr["satisfiedrate"].ToString();
572
+                    str = dr["dissatisfied"].ToString();
573 573
                     break;
574 574
                 case 17:
575
-                    str = dr["satisfiedscore"].ToString();
575
+                    str = dr["satisfiedrate"].ToString();
576 576
                     break;
577 577
                 case 18:
578
-                    str = dr["total"].ToString();
578
+                    str = dr["satisfiedscore"].ToString();
579 579
                     break;
580 580
                 case 19:
581
+                    str = dr["total"].ToString();
582
+                    break;
583
+                case 20:
581 584
                     str = index.ToString();
582 585
                     break;
583 586
 
@@ -641,7 +644,7 @@ namespace CallCenter.Utility
641 644
                     index++;
642 645
                     int iCellIndex = 0;
643 646
                     IRow irow = sheet.CreateRow(iRowIndex );
644
-                    for (int i = 0; i < 20; i++)
647
+                    for (int i = 0; i < 21; i++)
645 648
                     {
646 649
                         ICell cell = irow.CreateCell(iCellIndex);
647 650
                         cell.SetCellValue(GetCellValue(dr, index,i ));
@@ -674,7 +677,7 @@ namespace CallCenter.Utility
674 677
                     index++;
675 678
                     int iCellIndex = 0;
676 679
                     IRow irow = sheet.CreateRow(iRowIndex);
677
-                    for (int i = 0; i < 20; i++)
680
+                    for (int i = 0; i < 21; i++)
678 681
                     {
679 682
                         ICell cell = irow.CreateCell(iCellIndex);
680 683
                         cell.SetCellValue(GetCellValue(dr, index,i ));
@@ -706,7 +709,7 @@ namespace CallCenter.Utility
706 709
                     index++;
707 710
                     int iCellIndex = 0;
708 711
                     IRow irow = sheet.CreateRow(iRowIndex);
709
-                    for (int i = 0; i < 20; i++)
712
+                    for (int i = 0; i < 21; i++)
710 713
                     {
711 714
                         ICell cell = irow.CreateCell(iCellIndex);
712 715
                         cell.SetCellValue(GetCellValue(dr, index,i ));
@@ -738,7 +741,7 @@ namespace CallCenter.Utility
738 741
                     index++;
739 742
                     int iCellIndex = 0;
740 743
                     IRow irow = sheet.CreateRow(iRowIndex);
741
-                    for (int i = 0; i < 20; i++)
744
+                    for (int i = 0; i < 21; i++)
742 745
                     {
743 746
                         ICell cell = irow.CreateCell(iCellIndex);
744 747
                         cell.SetCellValue(GetCellValue(dr, index,i ));
@@ -841,7 +844,7 @@ namespace CallCenter.Utility
841 844
                     index++;
842 845
                     int iCellIndex = 0;
843 846
                     IRow irow = sheet.CreateRow(iRowIndex);
844
-                    for (int i = 0; i < 20; i++)
847
+                    for (int i = 0; i < 21; i++)
845 848
                     {
846 849
                         ICell cell = irow.CreateCell(iCellIndex);
847 850
                         cell.SetCellValue(GetCellValue(dr, index, i));