Explorar el Código

禅道bug修改

lihai %!s(int64=5) %!d(string=hace) años
padre
commit
5a7b5ffa7b

+ 7 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/ConversationController.cs

@@ -223,7 +223,7 @@ namespace CallCenterApi.Interface.Controllers
223 223
                 return Error("请选择电话类别");
224 224
             #endregion
225 225
             var model = bll.GetModel(input.ID);
226
-            if (getunphone(0, input.F_Telephone) && input.F_Telephone != model.F_Telephone)
226
+            if (getunphone(input.ID, input.F_Telephone))    // && input.F_Telephone != model.F_Telephone
227 227
                 return Error("电话重复请勿重复添加");
228 228
             model.F_Type = input.F_Type;    //1内线2外线
229 229
             model.F_Department = model_Dep != null ? model_Dep.F_ParentId : input.F_Department;    //部门id
@@ -340,7 +340,7 @@ namespace CallCenterApi.Interface.Controllers
340 340
                         dModel.F_Type  = type ;
341 341
 
342 342
                         //获取之前所有客户档案信息
343
-                        var list_Dep = bll_Dep.DataTableToList(bll_Dep.GetList(" 1=1 and F_DeleteFlag = 0 ").Tables[0]).ToList();
343
+                        var list_Dep = bll_Dep.DataTableToList(bll_Dep.GetList(" 1=1 and F_State = 1 ").Tables[0]).ToList();
344 344
                         foreach (DataRow dr in dt.Rows)
345 345
                         {
346 346
                           
@@ -360,11 +360,11 @@ namespace CallCenterApi.Interface.Controllers
360 360
                                     {
361 361
                                         dModel.F_Physician = dr["医师"].ToString();
362 362
                                         dModel.F_Title = dr["职称"].ToString();
363
-                                        var res = bll.Add(dModel);
364
-                                        if (res <= 0)
365
-                                        {
366
-                                            msg = msg + "第" + headrow + "行,导入失败<br>";
367
-                                        }
363
+                                    }
364
+                                    var res = bll.Add(dModel);
365
+                                    if (res <= 0)
366
+                                    {
367
+                                        msg = msg + "第" + headrow + "行,导入失败<br>";
368 368
                                     }
369 369
                                 }
370 370
                                 else

+ 44 - 44
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RoleFController.cs

@@ -25,53 +25,53 @@ namespace CallCenterApi.Interface.Controllers
25 25
             DataTable dt = new DataTable();
26 26
             if (Request.IsAuthenticated)
27 27
             {
28
-              
29
-                    if (functionIds == null)
30
-                        return Error("参数错误");
31
-                    Model.T_Sys_RoleFunction RoleModel = new Model.T_Sys_RoleFunction();
32
-                    //查询选中页面中的权限
33
-                    var idStr = string.Join(",", functionIds);
34
-                    if (roleId == 0)
28
+
29
+                if (functionIds == null)
30
+                    return Error("请选择权限");   //参数错误
31
+                Model.T_Sys_RoleFunction RoleModel = new Model.T_Sys_RoleFunction();
32
+                //查询选中页面中的权限
33
+                var idStr = string.Join(",", functionIds);
34
+                if (roleId == 0)
35
+                {
36
+                    //管理员
37
+                    var model = roleInfoBll.GetModel(17);
38
+                    if (model == null)
39
+                        return Error("管理员用户不存在");
40
+                    roleId = model.F_RoleId;
41
+                    new BLL.T_Sys_RoleFunction().Delete1(roleId);
42
+                    var childFuncIdList = moduleFunctionsBLL.DataTableToList(moduleFunctionsBLL.GetList(" F_ParentId in (" + idStr + ") ").Tables[0]).Select(x => x.F_FunctionId).ToList();
43
+                    childFuncIdList.AddRange(functionIds.ToList().Select(x => Convert.ToInt32(x)).ToList());
44
+                    var query = childFuncIdList.Distinct();
45
+                    foreach (var funcId in query)
35 46
                     {
36
-                        //管理员
37
-                        var model = roleInfoBll.GetModel(17);
38
-                        if (model == null)
39
-                            return Error("管理员用户不存在");
40
-                        roleId = model.F_RoleId;
41
-                        new BLL.T_Sys_RoleFunction().Delete1(roleId);
42
-                        var childFuncIdList = moduleFunctionsBLL.DataTableToList(moduleFunctionsBLL.GetList(" F_ParentId in (" + idStr + ") ").Tables[0]).Select(x => x.F_FunctionId).ToList();
43
-                        childFuncIdList.AddRange(functionIds.ToList().Select(x => Convert.ToInt32(x)).ToList());
44
-                        var query = childFuncIdList.Distinct();
45
-                        foreach (var funcId in query)
46
-                        {
47
-                            RoleModel.F_RoleId = roleId;
48
-                            RoleModel.F_FunctionId = funcId;
49
-                            if (!roleFunctionBll.Add(RoleModel))
50
-                                res = Error("权限设置失败");
51
-                            else
52
-                                res = Success("权限设置成功");
53
-                        }
47
+                        RoleModel.F_RoleId = roleId;
48
+                        RoleModel.F_FunctionId = funcId;
49
+                        if (!roleFunctionBll.Add(RoleModel))
50
+                            res = Error("权限设置失败");
51
+                        else
52
+                            res = Success("权限设置成功");
54 53
                     }
55
-                    else
54
+                }
55
+                else
56
+                {
57
+                    new BLL.T_Sys_RoleFunction().Delete1(roleId);
58
+                    var childFuncIdList = moduleFunctionsBLL.DataTableToList(moduleFunctionsBLL.GetList(" F_ParentId in (" + idStr + ") ").Tables[0]).Select(x => x.F_FunctionId).ToList();
59
+                    childFuncIdList.AddRange(functionIds.ToList().Select(x => Convert.ToInt32(x)).ToList());
60
+                    var query = childFuncIdList.Distinct();
61
+                    foreach (var funcId in query)
56 62
                     {
57
-                        new BLL.T_Sys_RoleFunction().Delete1(roleId);
58
-                        var childFuncIdList = moduleFunctionsBLL.DataTableToList(moduleFunctionsBLL.GetList(" F_ParentId in (" + idStr + ") ").Tables[0]).Select(x => x.F_FunctionId).ToList();
59
-                        childFuncIdList.AddRange(functionIds.ToList().Select(x => Convert.ToInt32(x)).ToList());
60
-                        var query = childFuncIdList.Distinct();
61
-                        foreach (var funcId in query)
62
-                        {
63
-                            RoleModel.F_RoleId = roleId;
64
-                            RoleModel.F_FunctionId = funcId;
65
-                            if (!roleFunctionBll.Add(RoleModel))
66
-                                res = Error("权限设置失败");
67
-                            else
68
-                                res = Success("权限设置成功");
69
-                        }
63
+                        RoleModel.F_RoleId = roleId;
64
+                        RoleModel.F_FunctionId = funcId;
65
+                        if (!roleFunctionBll.Add(RoleModel))
66
+                            res = Error("权限设置失败");
67
+                        else
68
+                            res = Success("权限设置成功");
70 69
                     }
71
-           
72
-                    dt.Clear();
73
-                    dt.Dispose();
74
-                
70
+                }
71
+
72
+                dt.Clear();
73
+                dt.Dispose();
74
+
75 75
             }
76 76
             return res;
77 77
         }
@@ -86,7 +86,7 @@ namespace CallCenterApi.Interface.Controllers
86 86
             ActionResult res = NoToken("未知错误,请重新登录");
87 87
             if (Request.IsAuthenticated)
88 88
             {
89
-                
89
+
90 90
                 var moduleInfoList = moduleInfoBLL.DataTableToList(moduleInfoBLL.GetList(" F_StateFlag=1 order by F_Sort").Tables[0]);
91 91
                 if (roleId == 0) { roleId = 17; }
92 92
                 var list = roleFunctionBLL.GetModelList(" F_RoleId=" + roleId).Select(x => x.F_FunctionId).ToList();

+ 50 - 28
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -22,6 +22,8 @@ namespace CallCenterApi.Interface.Controllers
22 22
 {
23 23
     public class SMSController : BaseController
24 24
     {
25
+        BLL.T_Sys_DictionaryValue bllDic = new BLL.T_Sys_DictionaryValue();
26
+
25 27
         #region 接收短信
26 28
         string url = "http://47.92.26.244/sms.aspx?";
27 29
         string account = "yhyy"; string password = "yhyy190903";
@@ -40,7 +42,7 @@ namespace CallCenterApi.Interface.Controllers
40 42
         /// <param name="type"></param>
41 43
         /// <returns></returns>
42 44
 
43
-        public ActionResult SendSMS(string mobile, string time, string timeslot, string department, string doctor, string floor, string sendTime, string name, string content, int MBID, int sendWay = 0)
45
+        public ActionResult SendSMS(string mobile, string time, string timeslot, string department, string doctor, string floor, string sendTime, string name, string content, int MBID = 0, int sendWay = 0)
44 46
         {
45 47
             WebClient web = new WebClient();
46 48
             web.Encoding = Encoding.UTF8;
@@ -325,26 +327,27 @@ namespace CallCenterApi.Interface.Controllers
325 327
                 if (!string.IsNullOrWhiteSpace(keywords))//关键字搜索
326 328
                     sql += $"  and ( Detail like '%" + keywords.Trim() + "%'or Name like '%" + keywords.Trim() + "%' or MName like '%" + keywords.Trim() + "%' ) ";
327 329
                 if (!string.IsNullOrWhiteSpace(name))//
328
-                    sql += $" and Name like '%" + name.Trim() + "%'";
330
+                    sql += $" and Name = '" + name.Trim() + "'";
331
+                //sql += $" and Name like '%" + name.Trim() + "%'";
329 332
                 // var modellist = new BLL.T_SMS_Template().GetModelList(sql);
330
-               
333
+
331 334
                 int recordCount = 0;
332 335
                 dt = BLL.PagerBLL.GetListPager(
333 336
                         "T_SMS_Template",
334 337
                         "T_SMS_Template.ID",
335
-                        "*",
338
+                        "(SELECT F_Name FROM dbo.T_Sys_DictionaryValue WHERE  F_State=1 and F_DictionaryFlag='DXLX' AND CONVERT(VARCHAR,F_DictionaryValueId) = Name) AS NameType,*",
336 339
                         sql,
337 340
                        "ORDER BY T_SMS_Template.ID desc",
338 341
                         pagesize,
339 342
                         page,
340 343
                         true,
341 344
                         out recordCount);
342
-                List<Model.T_SMS_Template> modlelist = new BLL.T_SMS_Template().DataTableToList(dt);
345
+                //List<Model.T_SMS_Template> modlelist = new BLL.T_SMS_Template().DataTableToList(dt);
343 346
                 var obj = new
344 347
                 {
345 348
                     state = "success",
346 349
                     message = "成功",
347
-                    rows = modlelist,
350
+                    rows = dt,
348 351
                     total = recordCount
349 352
 
350 353
                 };
@@ -367,7 +370,7 @@ namespace CallCenterApi.Interface.Controllers
367 370
                 Model.T_SMS_Template dModel = new Model.T_SMS_Template();
368 371
                 if (string.IsNullOrEmpty(name.Trim()))
369 372
                     return Error("短信类型不能为空!");
370
-                var model = new BLL.T_SMS_Template().GetModelList($"Name like '%" + name.Trim() + "%'").FirstOrDefault();
373
+                var model = new BLL.T_SMS_Template().GetModelList($"Name = '" + name.Trim() + "'").FirstOrDefault();
371 374
                 if (model == null)
372 375
                     return Error("查询不到此模板!");
373 376
                 return Success("获取成功", model);
@@ -460,6 +463,7 @@ namespace CallCenterApi.Interface.Controllers
460 463
                             dModel.MName = MName.Trim();
461 464
                             dModel.CreateDate = DateTime.Now;
462 465
                             dModel.IsEnable = 0;
466
+                            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
463 467
                             foreach (DataRow dr in dt.Rows)
464 468
                             {
465 469
                                 #region 数据入库
@@ -469,7 +473,8 @@ namespace CallCenterApi.Interface.Controllers
469 473
                                 {
470 474
                                     if (!getunique( dr["短信类型"].ToString()))
471 475
                                     {
472
-                                        dModel.Name = dr["短信类型"].ToString();
476
+                                        var modelDic = listDIc.SingleOrDefault(x => x.F_Name.Equals(dr["短信类型"].ToString()));
477
+                                        dModel.Name = modelDic != null ? modelDic.F_DictionaryValueId.ToString() : "";    // 短信类型
473 478
                                         dModel.Detail = dr["短信内容"].ToString();
474 479
                                         var res = new BLL.T_SMS_Template().Add(dModel);
475 480
                                         if (res < 0)
@@ -523,6 +528,7 @@ namespace CallCenterApi.Interface.Controllers
523 528
                 MName = ua.F_UserName;
524 529
             }
525 530
             Model.T_SMS_List dModel = new Model.T_SMS_List();
531
+            //dModel.Type = TypeId;
526 532
             dModel.SendWay = SendWay;
527 533
             dModel.DSSendTime = DSSendTime;
528 534
             dModel.SendTime = SendTime;
@@ -556,7 +562,7 @@ namespace CallCenterApi.Interface.Controllers
556 562
             string sql = $"   F_IsDelete=0";
557 563
             if (!string.IsNullOrEmpty(name))
558 564
             {
559
-                var model = new BLL.T_SMS_Template().GetModelList($"Name like '%" + name.Trim() + "%'").FirstOrDefault();
565
+                var model = new BLL.T_SMS_Template().GetModelList($"Name = '" + name.Trim() + "'").FirstOrDefault();
560 566
                 if (model!=null )
561 567
                 {
562 568
                     sql += " and MBID=" + model.ID ;
@@ -578,6 +584,7 @@ namespace CallCenterApi.Interface.Controllers
578 584
             dt.Columns.Add("发送时间");
579 585
             dt.Columns.Add("短信类型");
580 586
             dt.Columns.Add("发送人");
587
+            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
581 588
             var itemlist = new BLL.T_SMS_List().GetModelList(sql);
582 589
             foreach (var it in itemlist)
583 590
             {
@@ -599,7 +606,8 @@ namespace CallCenterApi.Interface.Controllers
599 606
                     var model = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
600 607
                     if (model != null)
601 608
                     {
602
-                        drNew["短信类型"]=  model.Name  ;
609
+                        var modelDic = listDIc.SingleOrDefault(x => x.F_DictionaryValueId.ToString() == model.Name);
610
+                        drNew["短信类型"] = modelDic != null ? modelDic.F_Name : "";    // 短信类型 model.Name;
603 611
                     }
604 612
                 }
605 613
                 drNew["发送人"] =it .MID +"("+it.MName +")";
@@ -666,6 +674,13 @@ namespace CallCenterApi.Interface.Controllers
666 674
         /// <summary>
667 675
         /// 获取短信记录列表
668 676
         /// </summary>
677
+        /// <param name="name">模板类型</param>
678
+        /// <param name="phone">接收号码</param>
679
+        /// <param name="creatname">创建人工号</param>
680
+        /// <param name="SendWay">发送方式(-1默认所有;0立即发送; 1定时发送)</param>
681
+        /// <param name="IsSend">发送状态(-1默认所有;0已发送; 1发送失败)</param>
682
+        /// <param name="page"></param>
683
+        /// <param name="pagesize"></param>
669 684
         /// <returns></returns>
670 685
         public ActionResult GetSMSList(string name, string phone, string creatname ,int SendWay=-1, int IsSend=-1, int page = 1, int pagesize = 10)
671 686
         {
@@ -673,15 +688,15 @@ namespace CallCenterApi.Interface.Controllers
673 688
             int userId = CurrentUser.UserData.F_UserId;
674 689
             if (userId != 0)
675 690
             {
676
-                
691
+                bool isNameType = true;
677 692
                 string sql = $"and  F_IsDelete=0";
678 693
                 if (!string.IsNullOrEmpty(name))
679 694
                 {
680
-                    var model = new BLL.T_SMS_Template().GetModelList($"Name like '%" + name.Trim() + "%'").FirstOrDefault();
695
+                    var model = new BLL.T_SMS_Template().GetModelList($" Name = '" + name.Trim() + "'").FirstOrDefault();
681 696
                     if (model != null)
682
-                    {
683 697
                         sql += " and MBID=" + model.ID;
684
-                    }
698
+                    else
699
+                        isNameType = false;
685 700
                 }
686 701
                 if (!string.IsNullOrEmpty(phone))
687 702
                     sql += " and Telephone like'%" + phone+"%'";
@@ -694,17 +709,19 @@ namespace CallCenterApi.Interface.Controllers
694 709
                 int recordCount = 0;
695 710
                 if (!string.IsNullOrWhiteSpace(sql))
696 711
                 {
697
-
698
-                    dt = BLL.PagerBLL.GetListPager(
699
-                        "T_SMS_List",
700
-                        "T_SMS_List.ID",
701
-                        "*",
702
-                        sql,
703
-                        "ORDER BY T_SMS_List.ID desc",
704
-                        pagesize,
705
-                        page,
706
-                        true,
707
-                        out recordCount);
712
+                    if (isNameType)
713
+                    {
714
+                        dt = BLL.PagerBLL.GetListPager(
715
+                            "T_SMS_List",
716
+                            "T_SMS_List.ID",
717
+                            "*",
718
+                            sql,
719
+                            "ORDER BY T_SMS_List.ID desc",
720
+                            pagesize,
721
+                            page,
722
+                            true,
723
+                            out recordCount);
724
+                    }
708 725
                 }
709 726
                 var  modlelist = new BLL.T_SMS_List().DataTableToList(dt);
710 727
                 //var modellist = new BLL.T_SMS_List().GetModelList(sql);
@@ -725,6 +742,7 @@ namespace CallCenterApi.Interface.Controllers
725 742
        public List<SMSList> ModeltoSMSList(List <Model .T_SMS_List> list)
726 743
         {
727 744
             List<SMSList> modellist = new List<SMSList>();
745
+            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
728 746
             foreach (var it in list)
729 747
             {
730 748
                 SMSList model = new SMSList();
@@ -742,10 +760,14 @@ namespace CallCenterApi.Interface.Controllers
742 760
                 model.Telephone = it.Telephone;
743 761
                 model.Detail = it.Detail;
744 762
                 if (it.MBID>0)
745
-                {
763
+                {                  
746 764
                     var MID = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
747 765
                     if (MID != null)
748
-                        model.MBDetail = MID.Name;
766
+                    {
767
+                        var modelDic = listDIc.SingleOrDefault(x => x.F_DictionaryValueId.ToString() == MID.Name);
768
+                        model.NameType = modelDic != null ? modelDic.F_Name : "";    // 短信类型 model.Name;
769
+                        //model.NameType = MID.Name;
770
+                    }
749 771
                 }
750 772
                 model.MID = it.MID;
751 773
                 model.MName = it.MName;
@@ -848,7 +870,7 @@ namespace CallCenterApi.Interface.Controllers
848 870
             public string IsSend;
849 871
             public string Telephone;
850 872
             public string Detail;
851
-            public string MBDetail;
873
+            public string NameType;
852 874
             public string MID;
853 875
             public string MName;
854 876
             public string CreateDate;

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SeatGroupController.cs

@@ -32,7 +32,7 @@ namespace CallCenterApi.Interface.Controllers
32 32
             string sql = "";
33 33
             if (strcontent!=null&&strcontent != "")
34 34
             {
35
-                sql = " and( F_ZXZCode like '" + strcontent + "' or F_ZXZName  like '" + strcontent + "'  or F_WHBDKey like '" + strcontent + "%'  or F_WHWDKey  like '" + strcontent + "%'  or F_ZXAtt like '" + strcontent + "'  or F_Des like '" + strcontent + "')";
35
+                sql = " and( F_ZXZCode like '%" + strcontent + "%' or F_ZXZName  like '%" + strcontent + "%'  or F_WHBDKey like '%" + strcontent + "%'  or F_WHWDKey  like '%" + strcontent + "%'  or F_ZXAtt like '%" + strcontent + "%'  or F_Des like '%" + strcontent + "%')";
36 36
             }
37 37
                 if (strpageindex.Trim() != "")
38 38
                 {
@@ -114,14 +114,14 @@ namespace CallCenterApi.Interface.Controllers
114 114
                     sModel.F_ZXZCode = input.ZXZCode.Trim();
115 115
                 else
116 116
                 {
117
-                    res = Error("编号不能为空");
117
+                    res = Error("坐席组编号不能为空");
118 118
                     return res;
119 119
                 }
120 120
                 if (input.ZXZName != null)
121 121
                     sModel.F_ZXZName = input.ZXZName.Trim();
122 122
                 else
123 123
                 {
124
-                    res = Error("名称不能为空");
124
+                    res = Error("坐席组名称不能为空");
125 125
                     return res;
126 126
                 }
127 127
                 if (input.ZXAtt != null)

+ 1 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -851,6 +851,7 @@ namespace CallCenterApi.Interface.Controllers.customer
851 851
                                             }
852 852
                                     }
853 853
                                     dModel.F_CompanyName = dr["客户姓名"].ToString();
854
+                                dModel.F_LegalName = dr["客户姓名"].ToString();
854 855
                                         if (dr["性别"].ToString()=="女")
855 856
                                         dModel.F_Gender  =2;
856 857
                                        else

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs

@@ -402,7 +402,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
402 402
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
403 403
                         + keywords.Trim() + "%' or F_KeyWords like '%" + keywords.Trim() + "%')";
404 404
                 }
405
-                string str = "SELECT  F_Expand1 AS '所属分类',F_Title AS '标题',F_Description AS '关键字',F_Content AS '内容' FROM dbo.T_RepositoryInformation where 1=1 " + sql + " ORDER BY F_RepositoryId desc";
405
+                string str = "SELECT  F_Expand1 AS '所属分类',F_Title AS '标题',F_KeyWords AS '关键字',F_Content AS '内容' FROM dbo.T_RepositoryInformation where 1=1 " + sql + " ORDER BY F_RepositoryId desc";
406 406
                 dt = DbHelperSQL.Query(str).Tables[0];
407 407
                 foreach (DataRow dr in dt.Rows)
408 408
                 {

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/HourCallTotalController.cs

@@ -129,7 +129,7 @@ namespace CallCenterApi.Interface.Controllers.report
129 129
             {
130 130
                 NPOIHelper npoi = new NPOIHelper();
131 131
                 DataTable dt = GetData(stime);
132
-                if (npoi.ExportToExcel("通话时长数据", dt) == "")
132
+                if (npoi.ExportToExcel("每日呼叫数据统计", dt) == "")
133 133
                 {
134 134
                     return Success("导出成功");
135 135
                 }

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiWorkTotalController.cs

@@ -17,9 +17,9 @@ namespace CallCenterApi.Interface.Controllers.report
17 17
         public ActionResult GetColumnList()
18 18
         {
19 19
             ActionResult res = NoToken("未知错误,请重新登录");
20
-            
21
-                String[] str = { "部门", "坐席", "坐席工号", "呼入电话数", "坐席接通量", "呼损量"
22
-                        ,"接通率","呼损率","平均排队时间","接听通话次数","通话分钟数","通话秒数"
20
+            //"接听通话次数",
21
+            String[] str = { "部门", "坐席", "坐席工号", "呼入电话数", "坐席接通量", "呼损量"
22
+                        ,"接通率","呼损率","平均排队时间","通话分钟数","通话秒数"
23 23
                         ,"平均接听通话秒数","平均振铃秒数","呼入占有率","用户评价","坐席登录次数"
24 24
                         ,"登录时长分钟数","工作时长分钟数","平均每天工作时长(小时)","平均操作分钟数"
25 25
                         ,"置忙次数","休息时长分钟数","平均每天休息时长(小时)"
@@ -419,7 +419,7 @@ namespace CallCenterApi.Interface.Controllers.report
419 419
             DataColumn dc7 = new DataColumn("接通率");
420 420
             DataColumn dc8 = new DataColumn("呼损率");
421 421
             DataColumn dc9 = new DataColumn("平均排队时间");
422
-            DataColumn dc10 = new DataColumn("接听通话次数");
422
+            //DataColumn dc10 = new DataColumn("接听通话次数");
423 423
             DataColumn dc11 = new DataColumn("通话分钟数");
424 424
             DataColumn dc12 = new DataColumn("通话秒数");
425 425
             DataColumn dc13 = new DataColumn("平均接听通话秒数");
@@ -446,7 +446,7 @@ namespace CallCenterApi.Interface.Controllers.report
446 446
             dtNew.Columns.Add(dc7);
447 447
             dtNew.Columns.Add(dc8);
448 448
             dtNew.Columns.Add(dc9);
449
-            dtNew.Columns.Add(dc10);
449
+            //dtNew.Columns.Add(dc10);
450 450
             dtNew.Columns.Add(dc11);
451 451
             dtNew.Columns.Add(dc12);
452 452
             dtNew.Columns.Add(dc13);
@@ -614,7 +614,7 @@ namespace CallCenterApi.Interface.Controllers.report
614 614
                                 izlms = 0;
615 615
                             }
616 616
                         }
617
-                        drNew["接听通话次数"] = ijtcs.ToString();
617
+                        //drNew["接听通话次数"] = ijtcs.ToString();
618 618
                         drNew["通话分钟数"] = (ithms / 60).ToString();
619 619
                         drNew["通话秒数"] = ithms.ToString();
620 620
 

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/MobiledataController.cs

@@ -29,7 +29,7 @@ namespace CallCenterApi.Interface.Controllers.tel
29 29
 
30 30
                 if (strtelnum != null && strtelnum.Trim() != "")
31 31
                 {
32
-                    sql += " and (F_MobileNum= '" + strtelnum.Trim() + "' or F_ZipCode like '%" + strtelnum.Trim()
32
+                    sql += " and (F_MobileNum like '%" + strtelnum.Trim() + "%' or F_ZipCode like '%" + strtelnum.Trim()
33 33
                         + "%' or F_CityDes like '%" + strtelnum.Trim() + "%'or F_CardDes like '%" + strtelnum.Trim() + "%')";
34 34
                 }
35 35