duhongyu лет назад: 6
Родитель
Сommit
dca5d23ba5

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

67
                 sql += $" and F_LegalPhone like '%" + legtel.Trim() + "%'";
67
                 sql += $" and F_LegalPhone like '%" + legtel.Trim() + "%'";
68
             if (!string.IsNullOrWhiteSpace(province))//省
68
             if (!string.IsNullOrWhiteSpace(province))//省
69
                 sql += $" and F_AddressProvince like '%" + province.Trim() + "%'";
69
                 sql += $" and F_AddressProvince like '%" + province.Trim() + "%'";
70
-            if (!string.IsNullOrWhiteSpace(province))//市
70
+            if (!string.IsNullOrWhiteSpace(city))//市
71
                 sql += $" and F_AddressCity like '%" + city.Trim() + "%'";
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
                 sql += $" and F_AddressTownship like '%" + township.Trim() + "%'";
76
                 sql += $" and F_AddressTownship like '%" + township.Trim() + "%'";
76
             #endregion
77
             #endregion
77
 
78
 
919
             return Error("用户登录失败,请重新登录");
920
             return Error("用户登录失败,请重新登录");
920
         }
921
         }
921
         #endregion
922
         #endregion
923
+        #endregion
922
         #region 私有方法
924
         #region 私有方法
923
         /// <summary>
925
         /// <summary>
924
         /// 验证物料编码为10位纯数字
926
         /// 验证物料编码为10位纯数字

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

3346
                     }
3346
                     }
3347
                     if (lastnumber == 0)
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
                     else
3351
                     else
3352
                     {
3352
                     {
3353
                         int v = efficiency - lastnumber;
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
                     if (timehource.Count > 0)
3356
                     if (timehource.Count > 0)
3357
                     {
3357
                     {
3596
                         }
3596
                         }
3597
                         if (lastnumber == 0)
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
                         else
3601
                         else
3602
                         {
3602
                         {
3603
                             int v = efficiency - lastnumber;
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
                         if (timehource.Count > 0)
3606
                         if (timehource.Count > 0)
3607
                         {
3607
                         {

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

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

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

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