Selaa lähdekoodia

修改来电单位下拉(过滤数字字符串)

lihai 7 vuotta sitten
vanhempi
commit
6d8c20887e

+ 15 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -343,7 +343,7 @@ namespace CallCenterApi.Interface.Controllers.customer
343 343
         public ActionResult BindLDdep()
344 344
         {
345 345
             ActionResult res = NoToken("未知错误,请重新登录");
346
-            string keypara = RequestString.GetQueryString("keypara");
346
+            //string keypara = RequestString.GetQueryString("keypara");
347 347
             if (Request.IsAuthenticated)
348 348
             {
349 349
                 //List<string> lddep = new BLL.T_Cus_CustomerBase().GetLDdep();
@@ -354,10 +354,14 @@ namespace CallCenterApi.Interface.Controllers.customer
354 354
                 {
355 355
                     foreach (string dep in lddep)
356 356
                     {
357
-                        if (dep.Contains(keypara))
357
+                        if (!Utils.IsNumeric(dep))
358 358
                         {
359 359
                             resdep.Add(dep);
360 360
                         }
361
+                        //if (dep.Contains(keypara))
362
+                        //{
363
+                        //    resdep.Add(dep);
364
+                        //}
361 365
                     }
362 366
                     var obj = new
363 367
                     {
@@ -384,10 +388,17 @@ namespace CallCenterApi.Interface.Controllers.customer
384 388
                     {
385 389
                         foreach (string dep in lddep)
386 390
                         {
387
-                            if (dep.Contains(keypara))
388
-                            {
391
+                            if (!Utils.IsNumeric(dep)) {
389 392
                                 resdep.Add(dep);
390 393
                             }
394
+                            //if (!string.IsNullOrEmpty(keypara) || !Utils.IsNumeric(dep))
395
+                            //{
396
+                            //    if (dep.Contains(keypara))
397
+                            //    {
398
+                            //        resdep.Add(dep);
399
+                            //    }
400
+
401
+                            //}
391 402
                         }
392 403
                         var obj = new
393 404
                         {