Browse Source

客户档案工单修改

duhongyu 6 years ago
parent
commit
dca5d23ba5

+ 6 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

@@ -67,11 +67,12 @@ namespace CallCenterApi.Interface.Controllers.customer
67 67
                 sql += $" and F_LegalPhone like '%" + legtel.Trim() + "%'";
68 68
             if (!string.IsNullOrWhiteSpace(province))//省
69 69
                 sql += $" and F_AddressProvince like '%" + province.Trim() + "%'";
70
-            if (!string.IsNullOrWhiteSpace(province))//市
70
+            if (!string.IsNullOrWhiteSpace(city))//市
71 71
                 sql += $" and F_AddressCity like '%" + city.Trim() + "%'";
72
-            if (!string.IsNullOrWhiteSpace(province))//县
73
-                sql += $" and F_AddressCountry like '%" + country.Trim() + "%'";
74
-            if (!string.IsNullOrWhiteSpace(province))//乡
72
+            if (!string.IsNullOrWhiteSpace(country))//县
73
+                sql += $"  and  (F_AddressCountry like '%" + country.Trim()
74
+                        + "%' or F_Legal like '%" + country.Trim() + "%'  ) ";
75
+            if (!string.IsNullOrWhiteSpace(township))//乡
75 76
                 sql += $" and F_AddressTownship like '%" + township.Trim() + "%'";
76 77
             #endregion
77 78
 
@@ -919,6 +920,7 @@ namespace CallCenterApi.Interface.Controllers.customer
919 920
             return Error("用户登录失败,请重新登录");
920 921
         }
921 922
         #endregion
923
+        #endregion
922 924
         #region 私有方法
923 925
         /// <summary>
924 926
         /// 验证物料编码为10位纯数字

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WOReportController.cs

@@ -3346,12 +3346,12 @@ question, int page = 1, int limit = 10)
3346 3346
                     }
3347 3347
                     if (lastnumber == 0)
3348 3348
                     {
3349
-                        model.efficiency = string.Format("{0:f2}% ", efficiency / 1 * 100);
3349
+                        model.efficiency = string.Format("{0:f0}% ", efficiency / 1 * 100);
3350 3350
                     }
3351 3351
                     else
3352 3352
                     {
3353 3353
                         int v = efficiency - lastnumber;
3354
-                        model.efficiency = string.Format("{0:f2}% ", v / lastnumber * 100);
3354
+                        model.efficiency = string.Format("{0:f0}% ", v / lastnumber * 100);
3355 3355
                     }
3356 3356
                     if (timehource.Count > 0)
3357 3357
                     {
@@ -3596,12 +3596,12 @@ question, int page = 1, int limit = 10)
3596 3596
                         }
3597 3597
                         if (lastnumber == 0)
3598 3598
                         {
3599
-                            model.efficiency = string.Format("{0:f2}% ", efficiency / 1 * 100);
3599
+                            model.efficiency = string.Format("{0:f0}% ", efficiency / 1 * 100);
3600 3600
                         }
3601 3601
                         else
3602 3602
                         {
3603 3603
                             int v = efficiency - lastnumber;
3604
-                            model.efficiency = string.Format("{0:f2}% ", v / lastnumber * 100);
3604
+                            model.efficiency = string.Format("{0:f0}% ", v / lastnumber * 100);
3605 3605
                         }
3606 3606
                         if (timehource.Count > 0)
3607 3607
                         {

+ 22 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -1691,9 +1691,11 @@ namespace CallCenterApi.Interface.Controllers.weixin
1691 1691
             var itemlast = itembll.GetModelList("   F_WoID='" + model.F_ID + "' order by F_ID desc").FirstOrDefault();
1692 1692
             int sms =(int ) itemlast.F_IsSMS;
1693 1693
             var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
1694
+            string deptname = "";
1694 1695
             if (deptmodel1 != null)
1695 1696
             {
1696 1697
                 dapt = deptmodel1.F_ParentId;
1698
+                deptname = deptmodel1.F_DeptName;
1697 1699
             }
1698 1700
             if (dapt != 0)
1699 1701
             {
@@ -1717,6 +1719,12 @@ namespace CallCenterApi.Interface.Controllers.weixin
1717 1719
                     nextda = 88;
1718 1720
                     opt = "流转销售部";
1719 1721
                 }
1722
+                //  else
1723
+                //{
1724
+                //        nextda = ua.F_DeptId;
1725
+                //        opt = "流转" + deptname;
1726
+                //}
1727
+                
1720 1728
             }
1721 1729
             if (istrue)
1722 1730
             {
@@ -3127,12 +3135,13 @@ namespace CallCenterApi.Interface.Controllers.weixin
3127 3135
                             {
3128 3136
                                 string deptname1 = "";
3129 3137
                                 int dapt = 0, nextda = 0;
3130
-
3138
+                                string deptment = "";
3131 3139
                                 var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
3132 3140
                                 if (deptmodel1 != null)
3133 3141
                                 {
3134 3142
                                     deptname1 = deptmodel1.F_DeptName + "-";
3135 3143
                                     dapt = deptmodel1.F_ParentId;
3144
+                                    deptment = deptmodel1.F_DeptName;
3136 3145
                                 }
3137 3146
                                 AddLog(modlelist.F_ID, 0, deptname1 + ua.F_UserName + "(" + ua.F_WorkNumber + ")" + "创建工单", (int)EnumWorkOrderState.neworder, (int)EnumItemOpt.create, "", 0, ua, overtime, sms);
3138 3147
                                 string opt = "";
@@ -3158,6 +3167,11 @@ namespace CallCenterApi.Interface.Controllers.weixin
3158 3167
                                         nextda = 88;
3159 3168
                                         opt = "流转销售部";
3160 3169
                                     }
3170
+                                    //else
3171
+                                    //{
3172
+                                    //    nextda = ua.F_DeptId;
3173
+                                    //    opt = "流转"+ deptment;
3174
+                                    //}
3161 3175
                                 }
3162 3176
                                 if (nextda != 0)
3163 3177
                                 {
@@ -4530,7 +4544,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
4530 4544
                         var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
4531 4545
                         if (deptmodel1 != null)
4532 4546
                         {
4533
-                            deptname1 = deptmodel1.F_DeptName + "-";
4547
+                            deptname1 = deptmodel1.F_DeptName ;
4534 4548
                             dapt = deptmodel1.F_ParentId;
4535 4549
                         }
4536 4550
                         if (dapt != 0)
@@ -4555,6 +4569,12 @@ namespace CallCenterApi.Interface.Controllers.weixin
4555 4569
                                 nextda = 88;
4556 4570
                                 opt = "流转销售部";
4557 4571
                             }
4572
+                            //else
4573
+                            //{
4574
+                            //    nextda = ua.F_DeptId;
4575
+                            //    opt = "流转" + deptname1;
4576
+                               
4577
+                            //}
4558 4578
                         }
4559 4579
                         if (nextda != 0)
4560 4580
                         {

+ 22 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -1404,9 +1404,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
1404 1404
             var itemlast = itembll.GetModelList("   F_WoID='" + model.F_ID + "' order by F_ID desc").FirstOrDefault();
1405 1405
             int sms = (int)itemlast.F_IsSMS;
1406 1406
             var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
1407
+            string deptname = "";
1407 1408
             if (deptmodel1 != null)
1408 1409
             {
1409 1410
                 dapt = deptmodel1.F_ParentId;
1411
+                deptname = deptmodel1.F_DeptName;
1410 1412
             }
1411 1413
             if (dapt != 0)
1412 1414
             {
@@ -1430,6 +1432,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
1430 1432
                     nextda = 88;
1431 1433
                     opt = "流转销售部";
1432 1434
                 }
1435
+                //else
1436
+                //{
1437
+                //    nextda = ua.F_DeptId;
1438
+                //    opt = "流转"+ deptname;
1439
+                //}
1433 1440
             }
1434 1441
             if (istrue)
1435 1442
             {
@@ -3724,12 +3731,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
3724 3731
                           
3725 3732
                             int dapt = 0, nextda = 0;
3726 3733
                             var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
3734
+                            string deptneme = "";
3727 3735
                             if (deptmodel1 != null)
3728 3736
                             {
3729 3737
                                 dapt = deptmodel1.F_ParentId;
3738
+                                deptneme = deptmodel1.F_DeptName;
3730 3739
                             }
3731 3740
                             AddLog(modlelist.F_ID, 0, deptname + ua.F_UserName + "(" + ua.F_WorkNumber + ")" + "创建工单", (int)EnumWorkOrderState.neworder, (int)EnumItemOpt.create, "", 0, ua, 0, 0);
3732 3741
                             string opt = "";
3742
+                        
3733 3743
                             if (dapt != 0)
3734 3744
                             {
3735 3745
                                 if (dapt == 11)
@@ -3752,6 +3762,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
3752 3762
                                     nextda = 88;
3753 3763
                                     opt = "流转销售部";
3754 3764
                                 }
3765
+                                //else
3766
+                                //{
3767
+                                //    nextda = ua.F_DeptId;
3768
+                                //    opt = "流转"+ deptneme;
3769
+                                //}
3755 3770
                             }
3756 3771
                             if (nextda != 0)
3757 3772
                             {
@@ -4029,7 +4044,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4029 4044
                                 var deptmodel1 = departmentBLL.GetModel(ua.F_DeptId);
4030 4045
                                 if (deptmodel1 != null)
4031 4046
                                 {
4032
-                                    deptname1 = deptmodel1.F_DeptName + "-";
4047
+                                    deptname1 = deptmodel1.F_DeptName ;
4033 4048
                                     dapt = deptmodel1.F_ParentId;
4034 4049
                                 }
4035 4050
                                 if (dapt != 0)
@@ -4054,6 +4069,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
4054 4069
                                         nextda = 88;
4055 4070
                                         opt = "流转销售部";
4056 4071
                                     }
4072
+                                    //else
4073
+                                    //{
4074
+                                    //    nextda = ua.F_DeptId;
4075
+                                    //    opt = "流转" + deptname1;
4076
+                                    //}
4077
+
4057 4078
                                 }
4058 4079
                                 if (nextda != 0)
4059 4080
                                 {