duhongyu 4 anni fa
parent
commit
4fa1a82ca6

+ 14 - 1
CallCenterApi/CallCenterApi.BLL/T_Call_CallRecords.cs

@@ -191,7 +191,20 @@ namespace CallCenterApi.BLL
191 191
         {
192 192
             return dal.UpdateCallInPathTelRecord(model);
193 193
         }
194
-
194
+        /// <summary>
195
+        /// 更新来电录音记录信息
196
+        /// </summary>
197
+        public bool UpdateCallbackid(string callId,string p_callid)
198
+        {
199
+            return dal.UpdateCallbackid( callId, p_callid);
200
+        }
201
+        /// <summary>
202
+        /// 更新回拨
203
+        /// </summary>
204
+        public bool UpdateCallback(string callId)
205
+        {
206
+            return dal.UpdateCallback(callId);
207
+        }
195 208
         #endregion
196 209
 
197 210
         #region 根据来电号码获取电话记录

+ 55 - 1
CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords.cs

@@ -938,6 +938,33 @@ namespace CallCenterApi.DAL
938 938
             }
939 939
         }
940 940
 
941
+
942
+        /// <summary>
943
+        /// 更新是否回拨
944
+        /// </summary>
945
+        public bool UpdateCallback(string p_CallId)
946
+        {
947
+            lock (DAL.T_Call_CallRecords.Global_Lock)
948
+            {
949
+                StringBuilder strSql = new StringBuilder();
950
+                strSql.Append("update T_Call_CallRecords SET Callback=1");
951
+                strSql.Append(" where CallId=@CallId");
952
+                SqlParameter[] parameters = {
953
+                    new SqlParameter("@CallId", SqlDbType.VarChar,50)};
954
+                parameters[0].Value = p_CallId;
955
+
956
+                int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
957
+                if (rows > 0)
958
+                {
959
+                    return true;
960
+                }
961
+                else
962
+                {
963
+                    return false;
964
+                }
965
+            }
966
+        }
967
+
941 968
         #endregion
942 969
 
943 970
         #region 更新来电录音开始信息
@@ -1001,7 +1028,33 @@ namespace CallCenterApi.DAL
1001 1028
             }
1002 1029
         }
1003 1030
         #endregion
1031
+        public bool  UpdateCallbackid(string CallId,string p_CallId)
1032
+        {
1033
+            lock (DAL.T_Call_CallRecords.Global_Lock)
1034
+            {
1035
+                StringBuilder strSql = new StringBuilder();
1036
+                strSql.Append("update T_Call_CallRecords set ");
1037
+                strSql.Append("CallbackCallid=@CallbackCallid,");
1038
+
1039
+                strSql.Append(" where CallId=@CallId");
1040
+                SqlParameter[] parameters = {
1041
+                    new SqlParameter("@CallId", SqlDbType.VarChar,50),
1042
+                    new SqlParameter("@CallbackCallid",SqlDbType.VarChar,50)
1043
+                };
1044
+                parameters[0].Value = CallId;
1045
+                parameters[1].Value = p_CallId;
1004 1046
 
1047
+                int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
1048
+                if (rows > 0)
1049
+                {
1050
+                    return true;
1051
+                }
1052
+                else
1053
+                {
1054
+                    return false;
1055
+                }
1056
+            }
1057
+        }
1005 1058
         #region 根据CallId获取电话记录
1006 1059
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
1007 1060
         {
@@ -1025,7 +1078,8 @@ namespace CallCenterApi.DAL
1025 1078
                 return null;
1026 1079
             }
1027 1080
         }
1028
-        public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
1081
+       
1082
+    public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
1029 1083
         {
1030 1084
             StringBuilder strSql = new StringBuilder();
1031 1085
             strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");

File diff suppressed because it is too large
+ 70 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WorkOrderReportController.cs


+ 1 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallOutScreenController.cs

@@ -69,7 +69,7 @@ namespace CallCenterApi.Interface.Controllers.tel
69 69
                 dt = BLL.PagerBLL.GetListPager(
70 70
                     "T_Call_CallRecords",
71 71
                     "CallRecordsId",
72
-                    "*",
72
+                    "*,dbo.GetUserName(UserCode) as UserName",
73 73
                     sql,
74 74
                     "ORDER BY CallRecordsId desc",
75 75
                     pagesize,

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

@@ -31,7 +31,7 @@ namespace CallCenterApi.Interface.Controllers.tel
31 31
             string PhoneType = HttpUtility.UrlDecode(RequestString.GetQueryString("phoneType"));
32 32
             int type = RequestString.GetInt("type", 0);
33 33
             int islike = RequestString.GetInt("islike", 1);
34
-
34
+            string CallbackCallid = HttpUtility.UrlDecode(RequestString.GetQueryString("callbackCallid"));
35 35
             string strpageindex = RequestString.GetQueryString("page");
36 36
             int pageindex = 1;
37 37
             string strpagesize = RequestString.GetQueryString("pagesize");
@@ -71,6 +71,10 @@ namespace CallCenterApi.Interface.Controllers.tel
71 71
                     sql += " and CallNumber = '" + phone + "'";
72 72
                 }
73 73
             }
74
+            if (!string .IsNullOrEmpty (CallbackCallid))
75
+            {
76
+                sql += "and CallbackCallid='" + CallbackCallid + "'";
77
+            }
74 78
             if (callstate.Trim() != "")
75 79
             {
76 80
                 if (callstate.Trim() == "0")
@@ -354,7 +358,42 @@ namespace CallCenterApi.Interface.Controllers.tel
354 358
            
355 359
 
356 360
         }
361
+        /// <summary>
362
+        /// 更新回拨
363
+        /// </summary>
364
+        /// <returns></returns>
365
+        [Authority]
366
+        public ActionResult UpdateCallback(string callid)
367
+        {
368
+
369
+           var b = new BLL.T_Call_CallRecords().UpdateCallback(callid);
370
+            if (b )
371
+            {
372
+                return Success("更新成功");
373
+            }
374
+            else
375
+            {
376
+                return Success("更新失败");
377
+            }
378
+        }
379
+        /// <summary>
380
+        /// 更新回拨
381
+        /// </summary>
382
+        /// <returns></returns>
383
+        [Authority]
384
+        public ActionResult UpdateCallbackid(string callid,string p_callid)
385
+        {
357 386
 
387
+            var b = new BLL.T_Call_CallRecords().UpdateCallbackid(callid, p_callid);
388
+            if (b)
389
+            {
390
+                return Success("更新成功");
391
+            }
392
+            else
393
+            {
394
+                return Success("更新失败");
395
+            }
396
+        }
358 397
         //删除通话记录
359 398
         public ActionResult DelCallRecord(string[] ids)
360 399
         {

+ 1 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/SeatMonitoringController.cs

@@ -22,7 +22,7 @@ namespace CallCenterApi.Interface.Controllers.tel
22 22
         public ActionResult GetList()
23 23
         {
24 24
             DataTable dt = new DataTable();
25
-            dt = Userbll.GetList(" f_seatflag=1", "F_GroupCode desc").Tables[0];
25
+            dt = Userbll.GetList(" f_seatflag=1", "RIGHT(F_UserName ,1) asc").Tables[0];
26 26
 
27 27
             if (dt.Rows.Count > 0)
28 28
             {

+ 7 - 6
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -13866,7 +13866,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
13866 13866
 
13867 13867
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
13868 13868
                 Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
13869
-                var Delay = new BLL.T_Bus_DelayTime().GetModelList("F_WorkOrderId='" + modelT_Bus_WorkOrder.F_WorkOrderId + "' and F_IsAudit in (0,1)");
13869
+                var Delay = new BLL.T_Bus_DelayTime().GetModelList("F_WorkOrderId='" + modelT_Bus_WorkOrder.F_WorkOrderId + "' and F_IsAudit in (0,1) and F_CreateUser='"+User .F_UserCode +"'");
13870 13870
                 if (Delay != null && Delay.Count > 0)
13871 13871
                     return Error("只能申请一次延时");
13872 13872
                 if (modelT_Bus_WorkOrder != null && modelT_Bus_AssignedInfo != null && modelT_Bus_AssignedInfo.F_MainDeptId == User.F_DeptId)
@@ -16244,7 +16244,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
16244 16244
                             }
16245 16245
                             
16246 16246
                            
16247
-                            //多次不满意转督办
16247
+                          
16248 16248
                            
16249 16249
                             if (modelT_Bus_VisitResult != null && modelT_Bus_VisitResult.F_State == 1)
16250 16250
                             {
@@ -16452,10 +16452,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
16452 16452
                                 }
16453 16453
                             }
16454 16454
                             trans.Complete();
16455
-                            if (issatisfie == 0 && nexttype > 0)
16456
-                            {
16457
-                                Remind(modelT_Bus_WorkOrder, modelT_Bus_AssignedInfo);
16458
-                            }
16455
+                            //////多次不满意转督办
16456
+                            ////if (issatisfie == 0 && nexttype > 0)
16457
+                            ////{
16458
+                            ////    Remind(modelT_Bus_WorkOrder, modelT_Bus_AssignedInfo);
16459
+                            ////}
16459 16460
                         }
16460 16461
                         return Success("操作成功", modelT_Bus_VisitResult.F_Id);
16461 16462
                     }