Bladeren bron

回访记录修改,话务工单报表条件修改

zhengbingbing 8 jaren geleden
bovenliggende
commit
a8b165b297

+ 2 - 2
CallCenterApi/CallCenterApi.BLL/T_Bus_VisitResultRecords.cs

@@ -102,7 +102,7 @@ namespace CallCenterApi.BLL
102 102
 
103 103
         #endregion  BasicMethod
104 104
         #region  ExtensionMethod
105
-        public int AddInfo(Model.T_Bus_VisitResult model,string user)
105
+        public int AddInfo(Model.T_Bus_VisitResult model,string user,string guid)
106 106
         {
107 107
             Model.T_Bus_VisitResultRecords resmodel = new Model.T_Bus_VisitResultRecords();
108 108
             resmodel.F_AssignedId = model.F_AssignedId;
@@ -122,7 +122,7 @@ namespace CallCenterApi.BLL
122 122
             resmodel.F_VisitUser = model.F_VisitUser;
123 123
             resmodel.F_VRId = model.F_Id;
124 124
             resmodel.F_WorkOrderId = model.F_WorkOrderId;
125
-
125
+            resmodel.F_Guid = guid;
126 126
             resmodel.F_ReUser = user;
127 127
             resmodel.F_ReTime = DateTime.Now;
128 128
             return dal.Add(resmodel);

+ 4 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/TelWOReportController.cs

@@ -19,7 +19,7 @@ namespace CallCenterApi.Interface.Controllers.report
19 19
             ActionResult res = NoToken("未知错误,请重新登录");
20 20
             try
21 21
             {
22
-                String[] str = { "日期", "接听来电", "受理(有效来电)", "在线办结(直办)", "转派工单", "办结" };
22
+                String[] str = { "日期", "接听来电", "受理(有效来电)", "在线办结(直办)", "转办工单", "转办工单办结" };
23 23
                 res = Success("获取话务报表表头成功", str);
24 24
             }
25 25
             catch (Exception ex)
@@ -126,7 +126,8 @@ namespace CallCenterApi.Interface.Controllers.report
126 126
             TimeSpan ts = endtime - stime;
127 127
             //DataTable dt = DbHelperSQL.Query("select * from v_call_wo where CallType=0 and CallState=1 "+ sql).Tables[0];
128 128
             DataTable dt = DbHelperSQL.Query("select * from T_Call_CallRecords where CallType=0 and CallState=1 " + sql).Tables[0];
129
-            DataTable dtwo = DbHelperSQL.Query("select * from T_Bus_WorkOrder where F_CallRecordId is not null " + sqlwo).Tables[0];
129
+            //DataTable dtwo = DbHelperSQL.Query("select * from T_Bus_WorkOrder where F_CallRecordId is not null and F_IsDelete=0 " + sqlwo).Tables[0];
130
+            DataTable dtwo = DbHelperSQL.Query("select * from T_Bus_WorkOrder where F_InfoSource=1 and F_IsDelete=0 " + sqlwo).Tables[0];
130 131
 
131 132
             //日期 接听来电 受理(有效来电) 在线办结(直办) 转派工单 办结
132 133
             int ldcount = 0, slcount = 0, zbcount = 0, zpcount = 0, bjcount = 0;
@@ -143,7 +144,7 @@ namespace CallCenterApi.Interface.Controllers.report
143 144
                 slcount = dtwo.Select(sqlwo1 + " ").Length;
144 145
                 zbcount = dtwo.Select(sqlwo1 + " and F_IsResult=1 ").Length;
145 146
                 zpcount = dtwo.Select(sqlwo1 + " and F_IsResult=0 ").Length;
146
-                bjcount = dtwo.Select(sqlwo1 + " and F_WorkState=9 ").Length;
147
+                bjcount = dtwo.Select(sqlwo1 + " and F_IsResult=0 and F_WorkState=9 ").Length;
147 148
 
148 149
                 drNew["日期"] = key;
149 150
                 drNew["接听来电"] = ldcount;

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

@@ -3467,6 +3467,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3467 3467
                 //string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
3468 3468
 
3469 3469
                 string callid = RequestString.GetFormString("callid");
3470
+                string guid= RequestString.GetFormString("guid");
3470 3471
 
3471 3472
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
3472 3473
                 Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
@@ -3510,7 +3511,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3510 3511
                                 int id = new BLL.T_Bus_VisitResult().Add(modelT_Bus_VisitResult);
3511 3512
                                 modelT_Bus_VisitResult.F_Id = id;
3512 3513
                                 //保存回访记录
3513
-                                new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode);
3514
+                                new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode, guid);
3514 3515
                                 #endregion
3515 3516
                             }
3516 3517
                             else
@@ -3548,7 +3549,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3548 3549
                                     int id=new BLL.T_Bus_VisitResult().Add(modelT_Bus_VisitResult);
3549 3550
                                     modelT_Bus_VisitResult.F_Id = id;
3550 3551
                                     //保存回访记录
3551
-                                    new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode);
3552
+                                    new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode, guid);
3552 3553
                                 }
3553 3554
                                 #endregion
3554 3555
                             }
@@ -3576,7 +3577,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3576 3577
 
3577 3578
                                     new BLL.T_Bus_VisitResult().Update(cg);
3578 3579
                                     //保存回访记录
3579
-                                    new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode);
3580
+                                    new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode, guid);
3580 3581
                                 }
3581 3582
                                 #endregion
3582 3583
 
@@ -4631,6 +4632,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4631 4632
                 int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
4632 4633
                 int visitid = RequestString.GetInt("id", 0);
4633 4634
                 string result = RequestString.GetFormString("result");//回访情况
4635
+                string guid = RequestString.GetFormString("guid");
4634 4636
 
4635 4637
                 Model.T_Bus_VisitResult modelT_Bus_VisitResult = new BLL.T_Bus_VisitResult().GetModel(visitid);
4636 4638
                 if (modelT_Bus_VisitResult != null)
@@ -4646,7 +4648,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4646 4648
 
4647 4649
                         new BLL.T_Bus_VisitResult().Update(modelT_Bus_VisitResult);
4648 4650
                         //保存回访记录
4649
-                        new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode);
4651
+                        new BLL.T_Bus_VisitResultRecords().AddInfo(modelT_Bus_VisitResult, userModel.F_UserCode, guid);
4650 4652
                         #endregion
4651 4653
 
4652 4654
                         #region 插入操作记录