duhongyu vor 6 Jahren
Ursprung
Commit
c9900f41a8

+ 452 - 35
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -82,7 +82,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
82 82
                 List<Model.T_Wo_WorkOrder> modlelist = new BLL.T_Wo_WorkOrder().DataTableToList(dt);
83 83
                 List<Model.T_Wo_WorkOrder> list = new List<Model.T_Wo_WorkOrder>();
84 84
                 Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
85
-                if (ua.F_RoleId == 1 || ua.F_RoleId == 58 || ua.F_RoleId == 59)
85
+                Model.T_Sys_RoleInfo ro = rolebll .GetModel(ua.F_RoleId);
86
+                if (ro.F_RoleCode  == "JDYPTZX" || ro.F_RoleCode == "YWY" )
86 87
                 {
87 88
                     if (modlelist.Count >0)
88 89
                     {
@@ -97,7 +98,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
97 98
                     }
98 99
                   
99 100
                 }
100
-               else  if (ua.F_RoleId == 60 || ua.F_RoleId == 61 || ua.F_RoleId == 63)
101
+               else  if (ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "ZG")
101 102
                 {
102 103
                     List<int> detpid = new List<int>();
103 104
                     var deparmentlist = new List<Model.T_Sys_Department>();
@@ -153,6 +154,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
153 154
                         return Error("加载失败");
154 155
                     }
155 156
                 }
157
+                else if (ro.F_RoleCode == "QTJS")
158
+                {
159
+                    return Error("无操作权限!");
160
+                }
156 161
                 else
157 162
                 {
158 163
                     if (modlelist.Count > 0 )
@@ -297,65 +302,398 @@ namespace CallCenterApi.Interface.Controllers.workorder
297 302
             }
298 303
         }
299 304
         /// <summary>
300
-        /// 查询个人超时工单列表
305
+        /// 查询超时工单列表
301 306
         /// </summary>
302
-        public ActionResult GetOvertime()
307
+        public ActionResult GetOvertime(string code, string cusname, string cusphone, string companyname, string province, string city,
308
+            string country, string township, string touser, int type = 0, int state = -1, int pageindex = 1, int pagesize = 10)
303 309
         {
304 310
             int userId = CurrentUser.UserData.F_UserId;
305 311
             if (userId != 0)
306 312
             {
307
-                Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
308
-              //  Model.T_Sys_RoleInfo ro = rolebll.GetModel(ua .F_RoleId);
309
-                string sql = "";
310
-                if (ua != null)
313
+                string sql = $" and F_IsDelete=0";
314
+                DataTable dt = new DataTable();
315
+                #region 筛选条件
316
+                if (type > 0 && type < 4)//工单类型
317
+                    sql += $" and F_Type=" + type;
318
+                if (state > 0)//工单状态
319
+                    sql += $" and F_State=" + state;
320
+                if (!string.IsNullOrWhiteSpace(touser))//参与人
321
+                    sql += $" and F_DealBy like '%" + touser.Trim() + "%'";
322
+                if (!string.IsNullOrWhiteSpace(code))//工单编号
323
+                    sql += $" and F_WorkOrderCode like '%" + code.Trim() + "%'";
324
+                if (!string.IsNullOrWhiteSpace(cusname))//客户姓名
325
+                    sql += $" and F_CusName like '%" + cusname.Trim() + "%'";
326
+                if (!string.IsNullOrWhiteSpace(cusphone))//客户电话
327
+                    sql += $" and F_CusPhone like '%" + cusphone.Trim() + "%'";
328
+                if (!string.IsNullOrWhiteSpace(companyname))//公司名称
329
+                    sql += $" and F_CompanyName like '%" + companyname.Trim() + "%'";
330
+                if (!string.IsNullOrWhiteSpace(province))//省
331
+                    sql += $" and F_IncidentProvince like '%" + province.Trim() + "%'";
332
+                if (!string.IsNullOrWhiteSpace(province))//市
333
+                    sql += $" and F_IncidentCity like '%" + city.Trim() + "%'";
334
+                if (!string.IsNullOrWhiteSpace(province))//县
335
+                    sql += $" and F_IncidentCountry like '%" + country.Trim() + "%'";
336
+                if (!string.IsNullOrWhiteSpace(province))//乡
337
+                    sql += $" and F_IncidentTownship like '%" + township.Trim() + "%'";
338
+                #endregion
339
+                int recordCount = 0;
340
+                if (!string.IsNullOrWhiteSpace(sql))
311 341
                 {
312
-                    sql += $" ( F_DealBy like '%" + ua.F_UserCode + "%' ) ";
342
+
343
+                    dt = BLL.PagerBLL.GetListPager(
344
+                        "T_Wo_WorkOrder",
345
+                        "F_ID",
346
+                        "*,dbo.GetUserName(F_CreateBy) as F_CreateByName",
347
+                        sql,
348
+                        "ORDER BY F_CustomerId desc",
349
+                        pagesize,
350
+                        pageindex,
351
+                        true,
352
+                        out recordCount);
313 353
                 }
314
-                else
315
-                    return Error("请输入正确的id");
316
-                var list = new List<Model.T_Wo_WorkOrder>();
317
-                if (!string.IsNullOrWhiteSpace(sql))
354
+                int total = 0;
355
+                List<long> woid = new List<long>();
356
+                List<Model.T_Wo_WorkOrder> modlelist = new BLL.T_Wo_WorkOrder().DataTableToList(dt);
357
+                List<Model.T_Wo_WorkOrder> list = new List<Model.T_Wo_WorkOrder>();
358
+                Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
359
+                Model.T_Sys_RoleInfo ro = rolebll.GetModel(ua.F_RoleId);
360
+                if (ro.F_RoleCode == "JDYPTZX" || ro.F_RoleCode == "YWY" || ro.F_RoleCode == "BLRY")
318 361
                 {
319
-                    sql += " and F_IsDelete=0";
320
-                    list = workOrder.GetModelList(sql);
362
+                    if (modlelist.Count > 0)
363
+                    {
364
+                        foreach (var it in modlelist)
365
+                        {
366
+                            if (it.F_DealBy == ua.F_UserCode)
367
+                            {
368
+                                if (it.F_IsOver == 1)
369
+                                {
370
+                                    list.Add(it);
371
+                                    total++;
372
+                                }
373
+                            }
374
+                        }
375
+                    }
376
+
321 377
                 }
378
+                else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "ZG")
379
+                {
380
+                    List<int> detpid = new List<int>();
381
+                    var deparmentlist = new List<Model.T_Sys_Department>();
382
+                    Model.T_Sys_Department dModel = departmentBLL.GetModel(ua.F_DeptId);
383
+                    if (dModel != null)
384
+                    {
385
+
386
+                        if (dModel.F_Layer == 1)
387
+                        {
388
+                            deparmentlist = new BLL.T_Sys_Department().GetModelList(" F_State=1 and F_Layer=" + 2 + " and F_ParentId=" + dModel.F_DeptId);
389
+                            if (deparmentlist.Count > 0)
390
+                            {
391
+                                foreach (var it in deparmentlist)
392
+                                {
393
+                                    detpid.Add(it.F_DeptId);
322 394
 
395
+                                }
396
+                            }
397
+                        }
398
+                        detpid.Add(dModel.F_DeptId);
399
+                        var itemlast = itembll.GetModelList(" isnull(F_IsUsed,'0')='0' " + " ");
400
+                        if (itemlast.Count > 0)
401
+                        {
402
+                            foreach (var it in itemlast)
403
+                            {
404
+                                for (int i = 0; i < detpid.Count; i++)
405
+                                {
406
+                                    if (it.F_NextDept == detpid[i])
407
+                                    {
408
+                                        woid.Add(it.F_WoID);
409
+                                    }
410
+                                }
411
+                            }
412
+                        }
413
+                        if (modlelist.Count > 0 && woid.Count > 0)
414
+                        {
415
+                            foreach (var it in modlelist)
416
+                            {
417
+                                for (int i = 0; i < woid.Count; i++)
418
+                                {
419
+                                    if (it.F_ID == woid[i])
420
+                                    {
421
+                                        if (it.F_IsOver == 1)
422
+                                        {
423
+                                            list.Add(it);
424
+                                            total++;
425
+                                        }
426
+                                    }
427
+                                }
428
+                            }
429
+                        }
323 430
 
431
+                    }
432
+                    else
433
+                    {
434
+                        return Error("加载失败");
435
+                    }
436
+                }
437
+                else if (ro.F_RoleCode == "JDYBZZX")
438
+                 {
439
+                    if (modlelist.Count>0 )
440
+                    {
441
+                        foreach (var it in modlelist)
442
+                        {
443
+                           
444
+                                if (it.F_CreateBy  ==ua .F_UserCode )
445
+                                {
446
+                                if (it.F_IsOver == 1)
447
+                                {
448
+                                    list.Add(it);
449
+                                    total++;
450
+                                }
451
+                                }
452
+                        }
453
+                    }
454
+                }
455
+                else if (ro.F_RoleCode == "QTJS")
456
+                {
457
+                    return Error("无操作权限!");
458
+                }
459
+                else
460
+                {
461
+                    if (modlelist.Count > 0)
462
+                    {
463
+                        foreach (var it in modlelist)
464
+                        {
465
+                            if (it.F_IsOver == 1)
466
+                            {
467
+                                list.Add(it);
468
+                                total++;
469
+                            }
470
+                        }
471
+                    }
472
+                }
324 473
                 if (list.Count > 0)
325 474
                 {
326 475
                     List<WorkOrderNewInput> Input = modeltooip(list);
327
-                    List<WorkOrderNewInput> model = new List<WorkOrderNewInput> ();
328
-                    if (Input != null)
476
+                    var obj = new
477
+                    {
478
+                        state = "success",
479
+                        message = "成功",
480
+                        rows = Input,
481
+                        total = total
482
+                    };
483
+
484
+                    return Content(obj.ToJson()); ;
485
+                }
486
+                else
487
+                {
488
+
489
+                    return Success("暂无工单"); ;
490
+                }
491
+            }
492
+            else
493
+            {
494
+                return Error("无操作权限!");
495
+            }
496
+        }
497
+      
498
+        /// <summary>
499
+        /// 获取催办工单列表
500
+        /// </summary>
501
+        /// <returns></returns>
502
+        public ActionResult GetUrgeList(string code, string cusname, string cusphone, string companyname, string province, string city,
503
+            string country, string township, string touser, int type = 0, int state = -1, int pageindex = 1, int pagesize = 10)
504
+        {
505
+           
506
+            int userId = CurrentUser.UserData.F_UserId;
507
+            if (userId != 0)
508
+            {
509
+                string sql = $" and F_IsDelete=0";
510
+                DataTable dt = new DataTable();
511
+                #region 筛选条件
512
+                if (type > 0 && type < 4)//工单类型
513
+                    sql += $" and F_Type=" + type;
514
+                if (state > 0)//工单状态
515
+                    sql += $" and F_State=" + state;
516
+                if (!string.IsNullOrWhiteSpace(touser))//参与人
517
+                    sql += $" and F_DealBy like '%" + touser.Trim() + "%'";
518
+                if (!string.IsNullOrWhiteSpace(code))//工单编号
519
+                    sql += $" and F_WorkOrderCode like '%" + code.Trim() + "%'";
520
+                if (!string.IsNullOrWhiteSpace(cusname))//客户姓名
521
+                    sql += $" and F_CusName like '%" + cusname.Trim() + "%'";
522
+                if (!string.IsNullOrWhiteSpace(cusphone))//客户电话
523
+                    sql += $" and F_CusPhone like '%" + cusphone.Trim() + "%'";
524
+                if (!string.IsNullOrWhiteSpace(companyname))//公司名称
525
+                    sql += $" and F_CompanyName like '%" + companyname.Trim() + "%'";
526
+                if (!string.IsNullOrWhiteSpace(province))//省
527
+                    sql += $" and F_IncidentProvince like '%" + province.Trim() + "%'";
528
+                if (!string.IsNullOrWhiteSpace(province))//市
529
+                    sql += $" and F_IncidentCity like '%" + city.Trim() + "%'";
530
+                if (!string.IsNullOrWhiteSpace(province))//县
531
+                    sql += $" and F_IncidentCountry like '%" + country.Trim() + "%'";
532
+                if (!string.IsNullOrWhiteSpace(province))//乡
533
+                    sql += $" and F_IncidentTownship like '%" + township.Trim() + "%'";
534
+                #endregion
535
+                int recordCount = 0;
536
+                if (!string.IsNullOrWhiteSpace(sql))
537
+                {
538
+
539
+                    dt = BLL.PagerBLL.GetListPager(
540
+                        "T_Wo_WorkOrder",
541
+                        "F_ID",
542
+                        "*,dbo.GetUserName(F_CreateBy) as F_CreateByName",
543
+                        sql,
544
+                        "ORDER BY F_CustomerId desc",
545
+                        pagesize,
546
+                        pageindex,
547
+                        true,
548
+                        out recordCount);
549
+                }
550
+                int total = 0;
551
+                List<long> woid = new List<long>();
552
+                List<Model.T_Wo_WorkOrder> modlelist = new BLL.T_Wo_WorkOrder().DataTableToList(dt);
553
+                List<Model.T_Wo_WorkOrder> list = new List<Model.T_Wo_WorkOrder>();
554
+                Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
555
+                Model.T_Sys_RoleInfo ro = rolebll.GetModel(ua.F_RoleId);
556
+                var itemlasts = itembll.GetModelList("  F_ItemType=" + (int)EnumItemType.urge + " ");
557
+                if (ro.F_RoleCode == "JDYPTZX" || ro.F_RoleCode == "YWY")
558
+                {
559
+                    woid.Clear();
560
+                    if (itemlasts.Count > 0)
329 561
                     {
330
-                        foreach(var  it in Input)
562
+                        foreach (var it in itemlasts)
331 563
                         {
332
-                            if (it .F_IsOver==1)
564
+                          woid.Add(it.F_WoID);
565
+                        }
566
+                    }
567
+                    if (modlelist.Count > 0)
568
+                    {
569
+                        foreach (var it in modlelist)
570
+                        {
571
+                            if (it.F_DealBy == ua.F_UserCode)
333 572
                             {
334
-                                model.Add(it);
573
+                                for (int i = 0; i < woid.Count; i++)
574
+                                {
575
+                                    if (it.F_ID == woid[i])
576
+                                    {
577
+                                        list.Add(it);
578
+                                        total++;
579
+                                    }
580
+                                }
335 581
                             }
336 582
                         }
337
-                        var obj = new
583
+                    }
584
+
585
+                }
586
+                else if (ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "ZG")
587
+                {
588
+                    List<int> detpid = new List<int>();
589
+                    var deparmentlist = new List<Model.T_Sys_Department>();
590
+                    Model.T_Sys_Department dModel = departmentBLL.GetModel(ua.F_DeptId);
591
+                    if (dModel != null)
592
+                    {
593
+
594
+                        if (dModel.F_Layer == 1)
338 595
                         {
339
-                            state = "success",
340
-                            message = "成功",
341
-                            rows = model,
342
-                        };
596
+                            deparmentlist = new BLL.T_Sys_Department().GetModelList(" F_State=1 and F_Layer=" + 2 + " and F_ParentId=" + dModel.F_DeptId);
597
+                            if (deparmentlist.Count > 0)
598
+                            {
599
+                                foreach (var it in deparmentlist)
600
+                                {
601
+                                    detpid.Add(it.F_DeptId);
602
+
603
+                                }
604
+                            }
605
+                        }
606
+                        detpid.Add(dModel.F_DeptId);
607
+                      
608
+                        if (itemlasts.Count > 0)
609
+                        {
610
+                            foreach (var it in itemlasts)
611
+                            {
612
+                                for (int i = 0; i < detpid.Count; i++)
613
+                                {
614
+                                    if (it.F_NextDept == detpid[i])
615
+                                    {
616
+                                        woid.Add(it.F_WoID);
617
+                                    }
618
+                                }
619
+                            }
620
+                        }
621
+                        if (modlelist.Count > 0 && woid.Count > 0)
622
+                        {
623
+                            foreach (var it in modlelist)
624
+                            {
625
+                                for (int i = 0; i < woid.Count; i++)
626
+                                {
627
+                                    if (it.F_ID == woid[i])
628
+                                    {
629
+                                        list.Add(it);
630
+                                        total++;
631
+                                    }
632
+                                }
633
+                            }
634
+                        }
343 635
 
344
-                        return Content(obj.ToJson());
345 636
                     }
346 637
                     else
347 638
                     {
348
-                        return Error("暂无超时工单");
639
+                        return Error("加载失败");
640
+                    }
641
+                }
642
+                else if (ro.F_RoleCode == "QTJS")
643
+                {
644
+                    return Error("无操作权限!");
645
+                }
646
+                else
647
+                {
648
+                    woid.Clear();
649
+                    if (itemlasts.Count > 0)
650
+                    {
651
+                        foreach (var it in itemlasts)
652
+                        {
653
+                            woid.Add(it.F_WoID);
654
+                        }
655
+                    }
656
+                    if (modlelist.Count > 0)
657
+                    {
658
+                        foreach (var it in modlelist)
659
+                        {
660
+                            for (int i = 0; i < woid.Count; i++)
661
+                            {
662
+                                if (it.F_ID == woid[i])
663
+                                {
664
+                                    list.Add(it);
665
+                                    total++;
666
+                                }
667
+                            }
668
+                        }
349 669
                     }
350 670
                 }
671
+                if (list.Count > 0)
672
+                {
673
+                    List<WorkOrderNewInput> Input = modeltooip(list);
674
+                    var obj = new
675
+                    {
676
+                        state = "success",
677
+                        message = "成功",
678
+                        rows = Input,
679
+                        total = total
680
+                    };
681
+
682
+                    return Content(obj.ToJson()); ;
683
+                }
351 684
                 else
352
-                    return Error("暂无超时工单");
685
+                {
686
+
687
+                    return Success("暂无工单"); ;
688
+                }
689
+
353 690
 
354 691
             }
355 692
             else
356 693
             {
357 694
                 return Error("无操作权限!");
358 695
             }
696
+
359 697
         }
360 698
         /// <summary>
361 699
         /// 添加工单
@@ -612,27 +950,30 @@ namespace CallCenterApi.Interface.Controllers.workorder
612 950
                      model.F_DealResult = model1[i].F_DealResult;//处理结果
613 951
                     model.F_DealReasons = model1[i].F_DealReasons;//未处理原因
614 952
                     model.F_CreateBy = model1[i].F_CreateBy;//添加人工号
953
+                    int type = 0;
615 954
                     if (TimeforOver(model1[i].F_ID))
616 955
                     {
617
-                        model1[i].F_IsOver = 0;
956
+                        type = 0;
618 957
                     }
619 958
                     else
620 959
                     {
621
-                        model1[i].F_IsOver = 1;
960
+                        type = 1;
961
+                    }
962
+                    if (type != model1[i].F_IsOver)
963
+                    {
964
+                        model1[i].F_IsOver = type;
965
+                        bool n = workOrder.Update(model1[i]);
622 966
                     }
623 967
                     model.F_IsOver = model1[i].F_IsOver;
624 968
                     #endregion
625 969
                     Input.Add(model);
626
-                 
627 970
                 }
628
-
629 971
                 return Input;
630 972
             }
631 973
             else
632 974
             {
633 975
                 return null;
634 976
             }
635
-
636 977
         }
637 978
         /// <summary>
638 979
         /// 是否超时
@@ -648,9 +989,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
648 989
             {
649 990
                 for (int i=0;i < itemlasts.Count;i++)
650 991
                 {
651
-                    if (itemlasts[i ].F_WoState >= 2)
992
+                    if (itemlasts[i ].F_WoState >= 1)
652 993
                     {
653
-                        if (itemlasts[i].F_WoState == 2)
994
+                        if (itemlasts[i].F_WoState == 1)
654 995
                         {
655 996
                             x = i;
656 997
                             time1 = itemlasts[i].F_CreateTime.ToString();
@@ -779,6 +1120,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
779 1120
                 model.F_CreateOn = DateTime.Now;
780 1121
             }
781 1122
             model.F_IsDelete = 0;
1123
+            model.F_IsOver = 0;
782 1124
             #endregion
783 1125
             return model;
784 1126
         }
@@ -979,6 +1321,81 @@ namespace CallCenterApi.Interface.Controllers.workorder
979 1321
 
980 1322
         }
981 1323
         /// <summary>
1324
+        /// 催办工单
1325
+        /// </summary>
1326
+        /// <returns></returns>
1327
+        public ActionResult AddWorkOrderRemind(long orderid, string cont)
1328
+        {
1329
+            int userId = CurrentUser.UserData.F_UserId;
1330
+            if (userId != 0)
1331
+            {
1332
+                Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
1333
+                if (ua != null)
1334
+                {
1335
+                    Model.T_Wo_WorkOrder model = workOrder .GetModel(orderid);
1336
+                    if (model != null)
1337
+                    {
1338
+                        var res = RemindWO(ua, model, cont);
1339
+                        if (res)
1340
+                            return Success("催办成功!");
1341
+                        else
1342
+                            return Error("操作失败!");
1343
+                    }
1344
+                    return Error("工单不存在!");
1345
+                }
1346
+            }
1347
+            return Error("无操作权限!");
1348
+        }
1349
+        /// <summary>
1350
+        /// 催办工单
1351
+        /// </summary>
1352
+        public bool RemindWO(Model.T_Sys_UserAccount nowUser, Model.T_Wo_WorkOrder model, string cont)
1353
+        {
1354
+            var itemlast = itembll.GetModelList(" F_ItemType=" + (int)EnumItemType.deal + " and  F_WoID='" + model.F_ID  + "' and F_IsUsed=0 order by F_CreateTime desc").FirstOrDefault();
1355
+            #region 接收人
1356
+            int todept = 0; string touser = "";
1357
+            if (itemlast != null)
1358
+            {
1359
+                touser = itemlast.F_NextUser;
1360
+                todept = itemlast.F_NextDept.Value;
1361
+                if (string.IsNullOrWhiteSpace(touser))
1362
+                    touser = itemlast.F_CreateUser;
1363
+                #region 读取被催办人部门
1364
+                if (todept == 0 && !string.IsNullOrWhiteSpace(touser))
1365
+                {
1366
+                    var tomodel = sysUserAccountBll.GetModel(touser);
1367
+                    if (tomodel != null)
1368
+                        todept = tomodel.F_DeptId;
1369
+                }
1370
+                #endregion
1371
+                #region 读取当前登录人部门
1372
+                string deptname = "";
1373
+                var deptmodel = departmentBLL.GetModel(nowUser.F_DeptId);
1374
+                if (deptmodel != null)
1375
+                {
1376
+                    deptname = deptmodel.F_DeptName + "-";
1377
+                }
1378
+                #endregion
1379
+                var content = deptname + nowUser.F_UserName + "(" + nowUser.F_UserCode + ")催办工单,催办说明:" + cont;
1380
+                long itemid = AddLog(model.F_ID , model.F_State .Value, content, (int)EnumItemType.urge, (int)EnumItemOpt.urge, touser, todept, nowUser,int .Parse ( itemlast.F_LimitTime) , int.Parse( itemlast.F_IsSMS.ToString () ));
1381
+                if (itemid > 0)
1382
+                {
1383
+                    if (!string.IsNullOrWhiteSpace(touser))
1384
+                    {
1385
+                        sendsysmsg(model, nowUser, touser, Int32.Parse(itemid.ToString()), "催办");
1386
+                        var tousers = sysUserAccountBll.GetModel(touser);
1387
+                      //  if (tousers != null && !string.IsNullOrWhiteSpace(tousers.F_WxOpenId))
1388
+                       // {
1389
+                          //  sendwxmsg(model, tousers.F_WxOpenId, nowUser, "催办");
1390
+                       // }
1391
+                    }
1392
+                    return true;
1393
+                }
1394
+            }
1395
+            return false;
1396
+            #endregion
1397
+        }
1398
+        /// <summary>
982 1399
         /// 延期工单
983 1400
         /// </summary>
984 1401
         public bool DeWO(Model.T_Sys_UserAccount nowUser, Model.T_Wo_WorkOrder model, string cont, int limit)