Browse Source

禅道bug修改

lihai 5 years ago
parent
commit
5a7b5ffa7b

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

223
                 return Error("请选择电话类别");
223
                 return Error("请选择电话类别");
224
             #endregion
224
             #endregion
225
             var model = bll.GetModel(input.ID);
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
                 return Error("电话重复请勿重复添加");
227
                 return Error("电话重复请勿重复添加");
228
             model.F_Type = input.F_Type;    //1内线2外线
228
             model.F_Type = input.F_Type;    //1内线2外线
229
             model.F_Department = model_Dep != null ? model_Dep.F_ParentId : input.F_Department;    //部门id
229
             model.F_Department = model_Dep != null ? model_Dep.F_ParentId : input.F_Department;    //部门id
340
                         dModel.F_Type  = type ;
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
                         foreach (DataRow dr in dt.Rows)
344
                         foreach (DataRow dr in dt.Rows)
345
                         {
345
                         {
346
                           
346
                           
360
                                     {
360
                                     {
361
                                         dModel.F_Physician = dr["医师"].ToString();
361
                                         dModel.F_Physician = dr["医师"].ToString();
362
                                         dModel.F_Title = dr["职称"].ToString();
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
                                 else
370
                                 else

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

25
             DataTable dt = new DataTable();
25
             DataTable dt = new DataTable();
26
             if (Request.IsAuthenticated)
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
             return res;
76
             return res;
77
         }
77
         }
86
             ActionResult res = NoToken("未知错误,请重新登录");
86
             ActionResult res = NoToken("未知错误,请重新登录");
87
             if (Request.IsAuthenticated)
87
             if (Request.IsAuthenticated)
88
             {
88
             {
89
-                
89
+
90
                 var moduleInfoList = moduleInfoBLL.DataTableToList(moduleInfoBLL.GetList(" F_StateFlag=1 order by F_Sort").Tables[0]);
90
                 var moduleInfoList = moduleInfoBLL.DataTableToList(moduleInfoBLL.GetList(" F_StateFlag=1 order by F_Sort").Tables[0]);
91
                 if (roleId == 0) { roleId = 17; }
91
                 if (roleId == 0) { roleId = 17; }
92
                 var list = roleFunctionBLL.GetModelList(" F_RoleId=" + roleId).Select(x => x.F_FunctionId).ToList();
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
 {
22
 {
23
     public class SMSController : BaseController
23
     public class SMSController : BaseController
24
     {
24
     {
25
+        BLL.T_Sys_DictionaryValue bllDic = new BLL.T_Sys_DictionaryValue();
26
+
25
         #region 接收短信
27
         #region 接收短信
26
         string url = "http://47.92.26.244/sms.aspx?";
28
         string url = "http://47.92.26.244/sms.aspx?";
27
         string account = "yhyy"; string password = "yhyy190903";
29
         string account = "yhyy"; string password = "yhyy190903";
40
         /// <param name="type"></param>
42
         /// <param name="type"></param>
41
         /// <returns></returns>
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
             WebClient web = new WebClient();
47
             WebClient web = new WebClient();
46
             web.Encoding = Encoding.UTF8;
48
             web.Encoding = Encoding.UTF8;
325
                 if (!string.IsNullOrWhiteSpace(keywords))//关键字搜索
327
                 if (!string.IsNullOrWhiteSpace(keywords))//关键字搜索
326
                     sql += $"  and ( Detail like '%" + keywords.Trim() + "%'or Name like '%" + keywords.Trim() + "%' or MName like '%" + keywords.Trim() + "%' ) ";
328
                     sql += $"  and ( Detail like '%" + keywords.Trim() + "%'or Name like '%" + keywords.Trim() + "%' or MName like '%" + keywords.Trim() + "%' ) ";
327
                 if (!string.IsNullOrWhiteSpace(name))//
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
                 // var modellist = new BLL.T_SMS_Template().GetModelList(sql);
332
                 // var modellist = new BLL.T_SMS_Template().GetModelList(sql);
330
-               
333
+
331
                 int recordCount = 0;
334
                 int recordCount = 0;
332
                 dt = BLL.PagerBLL.GetListPager(
335
                 dt = BLL.PagerBLL.GetListPager(
333
                         "T_SMS_Template",
336
                         "T_SMS_Template",
334
                         "T_SMS_Template.ID",
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
                         sql,
339
                         sql,
337
                        "ORDER BY T_SMS_Template.ID desc",
340
                        "ORDER BY T_SMS_Template.ID desc",
338
                         pagesize,
341
                         pagesize,
339
                         page,
342
                         page,
340
                         true,
343
                         true,
341
                         out recordCount);
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
                 var obj = new
346
                 var obj = new
344
                 {
347
                 {
345
                     state = "success",
348
                     state = "success",
346
                     message = "成功",
349
                     message = "成功",
347
-                    rows = modlelist,
350
+                    rows = dt,
348
                     total = recordCount
351
                     total = recordCount
349
 
352
 
350
                 };
353
                 };
367
                 Model.T_SMS_Template dModel = new Model.T_SMS_Template();
370
                 Model.T_SMS_Template dModel = new Model.T_SMS_Template();
368
                 if (string.IsNullOrEmpty(name.Trim()))
371
                 if (string.IsNullOrEmpty(name.Trim()))
369
                     return Error("短信类型不能为空!");
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
                 if (model == null)
374
                 if (model == null)
372
                     return Error("查询不到此模板!");
375
                     return Error("查询不到此模板!");
373
                 return Success("获取成功", model);
376
                 return Success("获取成功", model);
460
                             dModel.MName = MName.Trim();
463
                             dModel.MName = MName.Trim();
461
                             dModel.CreateDate = DateTime.Now;
464
                             dModel.CreateDate = DateTime.Now;
462
                             dModel.IsEnable = 0;
465
                             dModel.IsEnable = 0;
466
+                            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
463
                             foreach (DataRow dr in dt.Rows)
467
                             foreach (DataRow dr in dt.Rows)
464
                             {
468
                             {
465
                                 #region 数据入库
469
                                 #region 数据入库
469
                                 {
473
                                 {
470
                                     if (!getunique( dr["短信类型"].ToString()))
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
                                         dModel.Detail = dr["短信内容"].ToString();
478
                                         dModel.Detail = dr["短信内容"].ToString();
474
                                         var res = new BLL.T_SMS_Template().Add(dModel);
479
                                         var res = new BLL.T_SMS_Template().Add(dModel);
475
                                         if (res < 0)
480
                                         if (res < 0)
523
                 MName = ua.F_UserName;
528
                 MName = ua.F_UserName;
524
             }
529
             }
525
             Model.T_SMS_List dModel = new Model.T_SMS_List();
530
             Model.T_SMS_List dModel = new Model.T_SMS_List();
531
+            //dModel.Type = TypeId;
526
             dModel.SendWay = SendWay;
532
             dModel.SendWay = SendWay;
527
             dModel.DSSendTime = DSSendTime;
533
             dModel.DSSendTime = DSSendTime;
528
             dModel.SendTime = SendTime;
534
             dModel.SendTime = SendTime;
556
             string sql = $"   F_IsDelete=0";
562
             string sql = $"   F_IsDelete=0";
557
             if (!string.IsNullOrEmpty(name))
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
                 if (model!=null )
566
                 if (model!=null )
561
                 {
567
                 {
562
                     sql += " and MBID=" + model.ID ;
568
                     sql += " and MBID=" + model.ID ;
578
             dt.Columns.Add("发送时间");
584
             dt.Columns.Add("发送时间");
579
             dt.Columns.Add("短信类型");
585
             dt.Columns.Add("短信类型");
580
             dt.Columns.Add("发送人");
586
             dt.Columns.Add("发送人");
587
+            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
581
             var itemlist = new BLL.T_SMS_List().GetModelList(sql);
588
             var itemlist = new BLL.T_SMS_List().GetModelList(sql);
582
             foreach (var it in itemlist)
589
             foreach (var it in itemlist)
583
             {
590
             {
599
                     var model = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
606
                     var model = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
600
                     if (model != null)
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
                 drNew["发送人"] =it .MID +"("+it.MName +")";
613
                 drNew["发送人"] =it .MID +"("+it.MName +")";
666
         /// <summary>
674
         /// <summary>
667
         /// 获取短信记录列表
675
         /// 获取短信记录列表
668
         /// </summary>
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
         /// <returns></returns>
684
         /// <returns></returns>
670
         public ActionResult GetSMSList(string name, string phone, string creatname ,int SendWay=-1, int IsSend=-1, int page = 1, int pagesize = 10)
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
             int userId = CurrentUser.UserData.F_UserId;
688
             int userId = CurrentUser.UserData.F_UserId;
674
             if (userId != 0)
689
             if (userId != 0)
675
             {
690
             {
676
-                
691
+                bool isNameType = true;
677
                 string sql = $"and  F_IsDelete=0";
692
                 string sql = $"and  F_IsDelete=0";
678
                 if (!string.IsNullOrEmpty(name))
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
                     if (model != null)
696
                     if (model != null)
682
-                    {
683
                         sql += " and MBID=" + model.ID;
697
                         sql += " and MBID=" + model.ID;
684
-                    }
698
+                    else
699
+                        isNameType = false;
685
                 }
700
                 }
686
                 if (!string.IsNullOrEmpty(phone))
701
                 if (!string.IsNullOrEmpty(phone))
687
                     sql += " and Telephone like'%" + phone+"%'";
702
                     sql += " and Telephone like'%" + phone+"%'";
694
                 int recordCount = 0;
709
                 int recordCount = 0;
695
                 if (!string.IsNullOrWhiteSpace(sql))
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
                 var  modlelist = new BLL.T_SMS_List().DataTableToList(dt);
726
                 var  modlelist = new BLL.T_SMS_List().DataTableToList(dt);
710
                 //var modellist = new BLL.T_SMS_List().GetModelList(sql);
727
                 //var modellist = new BLL.T_SMS_List().GetModelList(sql);
725
        public List<SMSList> ModeltoSMSList(List <Model .T_SMS_List> list)
742
        public List<SMSList> ModeltoSMSList(List <Model .T_SMS_List> list)
726
         {
743
         {
727
             List<SMSList> modellist = new List<SMSList>();
744
             List<SMSList> modellist = new List<SMSList>();
745
+            var listDIc = bllDic.DataTableToList(bllDic.GetList(" F_State=1 and F_DictionaryFlag='DXLX' ").Tables[0]);
728
             foreach (var it in list)
746
             foreach (var it in list)
729
             {
747
             {
730
                 SMSList model = new SMSList();
748
                 SMSList model = new SMSList();
742
                 model.Telephone = it.Telephone;
760
                 model.Telephone = it.Telephone;
743
                 model.Detail = it.Detail;
761
                 model.Detail = it.Detail;
744
                 if (it.MBID>0)
762
                 if (it.MBID>0)
745
-                {
763
+                {                  
746
                     var MID = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
764
                     var MID = new BLL.T_SMS_Template().GetModel(int.Parse(it.MBID.ToString()));
747
                     if (MID != null)
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
                 model.MID = it.MID;
772
                 model.MID = it.MID;
751
                 model.MName = it.MName;
773
                 model.MName = it.MName;
848
             public string IsSend;
870
             public string IsSend;
849
             public string Telephone;
871
             public string Telephone;
850
             public string Detail;
872
             public string Detail;
851
-            public string MBDetail;
873
+            public string NameType;
852
             public string MID;
874
             public string MID;
853
             public string MName;
875
             public string MName;
854
             public string CreateDate;
876
             public string CreateDate;

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

32
             string sql = "";
32
             string sql = "";
33
             if (strcontent!=null&&strcontent != "")
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
                 if (strpageindex.Trim() != "")
37
                 if (strpageindex.Trim() != "")
38
                 {
38
                 {
114
                     sModel.F_ZXZCode = input.ZXZCode.Trim();
114
                     sModel.F_ZXZCode = input.ZXZCode.Trim();
115
                 else
115
                 else
116
                 {
116
                 {
117
-                    res = Error("编号不能为空");
117
+                    res = Error("坐席组编号不能为空");
118
                     return res;
118
                     return res;
119
                 }
119
                 }
120
                 if (input.ZXZName != null)
120
                 if (input.ZXZName != null)
121
                     sModel.F_ZXZName = input.ZXZName.Trim();
121
                     sModel.F_ZXZName = input.ZXZName.Trim();
122
                 else
122
                 else
123
                 {
123
                 {
124
-                    res = Error("名称不能为空");
124
+                    res = Error("坐席组名称不能为空");
125
                     return res;
125
                     return res;
126
                 }
126
                 }
127
                 if (input.ZXAtt != null)
127
                 if (input.ZXAtt != null)

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

851
                                             }
851
                                             }
852
                                     }
852
                                     }
853
                                     dModel.F_CompanyName = dr["客户姓名"].ToString();
853
                                     dModel.F_CompanyName = dr["客户姓名"].ToString();
854
+                                dModel.F_LegalName = dr["客户姓名"].ToString();
854
                                         if (dr["性别"].ToString()=="女")
855
                                         if (dr["性别"].ToString()=="女")
855
                                         dModel.F_Gender  =2;
856
                                         dModel.F_Gender  =2;
856
                                        else
857
                                        else

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

402
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
402
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
403
                         + keywords.Trim() + "%' or F_KeyWords like '%" + keywords.Trim() + "%')";
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
                 dt = DbHelperSQL.Query(str).Tables[0];
406
                 dt = DbHelperSQL.Query(str).Tables[0];
407
                 foreach (DataRow dr in dt.Rows)
407
                 foreach (DataRow dr in dt.Rows)
408
                 {
408
                 {

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

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

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

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

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

29
 
29
 
30
                 if (strtelnum != null && strtelnum.Trim() != "")
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
                         + "%' or F_CityDes like '%" + strtelnum.Trim() + "%'or F_CardDes like '%" + strtelnum.Trim() + "%')";
33
                         + "%' or F_CityDes like '%" + strtelnum.Trim() + "%'or F_CardDes like '%" + strtelnum.Trim() + "%')";
34
                 }
34
                 }
35
 
35