miaofuhao %!s(int64=4) %!d(string=hace) años
padre
commit
2c66df2bf7

+ 35 - 9
web/YTSoft.BaseCallCenter.MVCWeb/Content/js/callSocket.js

2
 var ws, n = 0, seatComming,
2
 var ws, n = 0, seatComming,
3
   timer, hidTel, hidCallID, hidActionID,
3
   timer, hidTel, hidCallID, hidActionID,
4
   directType, sendType, mesCont,
4
   directType, sendType, mesCont,
5
-  eorrorConnect, errorState = false,
5
+  eorrorConnect, errorState = false,OperatorLogText,
6
   makeCallId = "", lockReconnect = false,
6
   makeCallId = "", lockReconnect = false,
7
   obj = {}, cls = 0, ivrState, clsCookie, LoginState,
7
   obj = {}, cls = 0, ivrState, clsCookie, LoginState,
8
   lasttime = new Date().getTime(),
8
   lasttime = new Date().getTime(),
38
 
38
 
39
 function Connect () {
39
 function Connect () {
40
   //+ huayi.config.socket_ip + ":" + huayi.config.socket_port  121.196.219.217:8081
40
   //+ huayi.config.socket_ip + ":" + huayi.config.socket_port  121.196.219.217:8081
41
-  ws = new WebSocket("ws://10.200.46.27:8081");
42
-  //ws = new WebSocket("ws://192.168.8.7:8081");
41
+  // ws = new WebSocket("ws://10.200.46.27:8081");
42
+  ws = new WebSocket("ws://192.168.8.7:8081");
43
   //ws = new WebSocket("ws://121.196.219.217:8081");
43
   //ws = new WebSocket("ws://121.196.219.217:8081");
44
   //ws = new WebSocket("ws://" + ytsoft.config.socket_ip + ":" + ytsoft.config.socket_port);
44
   //ws = new WebSocket("ws://" + ytsoft.config.socket_ip + ":" + ytsoft.config.socket_port);
45
   ws.onopen = function () {
45
   ws.onopen = function () {
322
   $('#imgServerState').attr('alt', '签入');
322
   $('#imgServerState').attr('alt', '签入');
323
   layer.msg('签入成功');
323
   layer.msg('签入成功');
324
   helper.cookies.set('callState', 2);
324
   helper.cookies.set('callState', 2);
325
+  OperatorLogText = "签入"
326
+  OperatorLog(OperatorLogText)
325
   try {
327
   try {
326
     var result = OCX_AgentLogOut();
328
     var result = OCX_AgentLogOut();
327
   }
329
   }
342
   $('#imgAgentState').attr('src', '/Content/images/zx2.png');
344
   $('#imgAgentState').attr('src', '/Content/images/zx2.png');
343
   $('#imgServerState').attr('alt', '未签入');
345
   $('#imgServerState').attr('alt', '未签入');
344
   layer.msg('签出成功');
346
   layer.msg('签出成功');
347
+  OperatorLogText = "签出"
348
+  OperatorLog(OperatorLogText)
345
   helper.cookies.set('callState', 1);
349
   helper.cookies.set('callState', 1);
346
   ws.close();
350
   ws.close();
347
 
351
 
400
 
404
 
401
   var opturl = "/OCXOpt/OCXOptCallAjax/?optaction=zhenlingEvent&timeno=" + timeno + "&callid=" + CBnumber + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber=" + extnumber + "&callerNum=" + callerNum;
405
   var opturl = "/OCXOpt/OCXOptCallAjax/?optaction=zhenlingEvent&timeno=" + timeno + "&callid=" + CBnumber + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber=" + extnumber + "&callerNum=" + callerNum;
402
   console.log("/OCXOpt/OCXOptCallAjax/?optaction=zhenlingEvent&timeno=" + timeno + "&callid=" + CBnumber + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber=" + extnumber + "&callerNum=" + callerNum)
406
   console.log("/OCXOpt/OCXOptCallAjax/?optaction=zhenlingEvent&timeno=" + timeno + "&callid=" + CBnumber + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber=" + extnumber + "&callerNum=" + callerNum)
403
-  
404
-
405
-
406
-
407
-
408
  
407
  
409
     $.ajax({
408
     $.ajax({
410
 
409
 
551
     $(".fa-play").removeClass("defaultClass");
550
     $(".fa-play").removeClass("defaultClass");
552
     $('#imgAgentState').attr('src', '/Content/images/zx3.png');
551
     $('#imgAgentState').attr('src', '/Content/images/zx3.png');
553
     //$.cookie("callState", obj.State, {expires: 7});
552
     //$.cookie("callState", obj.State, {expires: 7});
553
+    OperatorLogText = "置忙"
554
+    OperatorLog(OperatorLogText)
554
     helper.cookies.set('callState', obj.State);
555
     helper.cookies.set('callState', obj.State);
555
     //$('#imgAgentState').attr('src', '/Content/images/zx2.png');
556
     //$('#imgAgentState').attr('src', '/Content/images/zx2.png');
556
   }
557
   }
560
     $(".fa-play").addClass("defaultClass");
561
     $(".fa-play").addClass("defaultClass");
561
     $(".fa-play").removeClass("selectClass");
562
     $(".fa-play").removeClass("selectClass");
562
     $('#imgAgentState').attr('src', '/Content/images/zx1.png');
563
     $('#imgAgentState').attr('src', '/Content/images/zx1.png');
563
-
564
+    OperatorLogText = "置闲"
565
+    OperatorLog(OperatorLogText)
564
     //$.cookie("callState", obj.State, {expires: 7});
566
     //$.cookie("callState", obj.State, {expires: 7});
565
     helper.cookies.set('callState', obj.State);
567
     helper.cookies.set('callState', obj.State);
566
   }
568
   }
567
 }
569
 }
568
 
570
 
571
+function OperatorLog(OperatorLogText){
572
+  console.log(OperatorLogText)
573
+  var data = {
574
+    typeName:OperatorLogText
575
+  }
576
+  $.ajax({
577
+    url: "/main/addOPeratorLog",
578
+    type: "post",
579
+    async: false,//同步请求
580
+    contentType: "application/json",
581
+    dataType: "text",
582
+    cache: false,
583
+    data: JSON.stringify(data),
584
+    success: function (thisResult) {
585
+
586
+    },
587
+    error: function (error) {
588
+      return false;
589
+    }
590
+  });
591
+}
592
+
593
+
594
+
569
 function agentstateagent (data) {
595
 function agentstateagent (data) {
570
 
596
 
571
   if (data.AgentState == '5') {
597
   if (data.AgentState == '5') {

+ 0 - 9
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/HW/CallRecordController.cs

730
                 }
730
                 }
731
                 if (workOrderBaseModel.F_WORKORDERTYPEID == 3)
731
                 if (workOrderBaseModel.F_WORKORDERTYPEID == 3)
732
                 {
732
                 {
733
-                    #region 如果是客服处理 回访相关的字段给赋值为空
734
-
735
-                    workOrderBaseModel.F_RETURNVISITFLAG = 0;
736
-                    workOrderBaseModel.F_RETURNVISITTIME = null;
737
-                    workOrderBaseModel.F_REQUESTSERVICETIME = null;
738
-                    #endregion
739
-
740
-
741
-
742
                     Model.T_Wo_WorkOrderHistory historyModel = new Model.T_Wo_WorkOrderHistory();
733
                     Model.T_Wo_WorkOrderHistory historyModel = new Model.T_Wo_WorkOrderHistory();
743
 
734
 
744
                     historyModel.F_INSTANCEID =  0;//  workOrderBaseModel.F_WORKORDERID;客服处理的工单按说不应该创建T_Wo_WorkOrderHistory,不知道为什么他要创建这个。所以给关联工单id的字段改成了0
735
                     historyModel.F_INSTANCEID =  0;//  workOrderBaseModel.F_WORKORDERID;客服处理的工单按说不应该创建T_Wo_WorkOrderHistory,不知道为什么他要创建这个。所以给关联工单id的字段改成了0

+ 4 - 7
web/YTSoft.BaseCallCenter.MVCWeb/Controllers/Report/ReportController.cs

9867
             //string endDate = DateTime.Now.ToString("yyyyMMdd") + "23:59:59";
9867
             //string endDate = DateTime.Now.ToString("yyyyMMdd") + "23:59:59";
9868
 
9868
 
9869
 
9869
 
9870
-            string startDate = startTime.Substring(0,10) + " 00:00:00";
9871
-            string endDate = startTime.Substring(12) + " 23:59:59";
9870
+            string startDate = startTime + " 00:00:00";
9871
+            string endDate = startTime + " 23:59:59";
9872
             int WxRealTotal = WXWorkOrderCount(3, startDate, endDate);
9872
             int WxRealTotal = WXWorkOrderCount(3, startDate, endDate);
9873
             DataTable dt = workorderBLL.GetTodayFromTypeAmount(startTime);
9873
             DataTable dt = workorderBLL.GetTodayFromTypeAmount(startTime);
9874
             dt.Rows[1]["amount"] = WxRealTotal;
9874
             dt.Rows[1]["amount"] = WxRealTotal;
9981
 
9981
 
9982
             //string begintime = DateTime.Now.Date.ToString();
9982
             //string begintime = DateTime.Now.Date.ToString();
9983
             //string endtime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";
9983
             //string endtime = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59";
9984
-            string begintime = startTime.Substring(0, 10) + " 00:00:00";
9985
-            string endtime = startTime.Substring(12) + " 23:59:59";
9986
 
9984
 
9987
-
9988
-            //string begintime = startTime+" 00:00:00";
9989
-            // string endtime = startTime + " 23:59:59";
9985
+            string begintime = startTime+" 00:00:00";
9986
+             string endtime = startTime + " 23:59:59";
9990
 
9987
 
9991
 
9988
 
9992
 
9989
 

+ 0 - 17
web/YTSoft.BaseCallCenter.MVCWeb/Views/CallRecord/CallRecordList.cshtml

246
     {{#  if(d.F_Linenum === 2){ }}
246
     {{#  if(d.F_Linenum === 2){ }}
247
         二号线
247
         二号线
248
     {{#  } }}
248
     {{#  } }}
249
-
250
-   {{#  if(d.F_Linenum === 14){ }}
251
-       十四号线
252
-    {{#  } }}
253
- 
254
-
255
-     {{#  if(d.F_Linenum === 4){ }}
256
-       四号线
257
-    {{#  } }}
258
-    {{#  if(d.F_Linenum === 5){ }}
259
-         五号线
260
-    {{#  } }}
261
-
262
-      {{#  if(d.F_Linenum === 100){ }}
263
-        城郊线
264
-    {{#  } }}
265
-
266
 </script>
249
 </script>
267
 <script type="text/html" id="callStatus">
250
 <script type="text/html" id="callStatus">
268
 
251