duhongyu 6 年 前
コミット
8dfc28e18b

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.BLL/T_Bus_WorkOrder.cs

@@ -66,7 +66,7 @@ namespace CallCenterApi.BLL
66 66
         /// </summary>
67 67
         public CallCenterApi.Model.T_Bus_WorkOrder GetModel(string F_Id)
68 68
         {
69
-            return dal.GetModel(int .Parse (F_Id));
69
+            return dal.GetModel(F_Id);
70 70
         }
71 71
 
72 72
         /// <summary>

+ 24 - 10
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IndexController.cs

@@ -571,35 +571,49 @@ namespace CallCenterApi.Interface.Controllers
571 571
         /// <returns></returns>
572 572
         public ActionResult GetWorkOrderCount()
573 573
         {
574
-            
574
+
575
+            ActionResult res = NoToken("未知错误,请重新登录");
575 576
             if (Request.IsAuthenticated)
576 577
             {
577 578
 
578 579
                 int userId = CurrentUser.UserData.F_UserId;
580
+                int deptid = CurrentUser.UserData.F_DeptId;         //部门id
581
+                string deptCode = CurrentUser.UserData.F_DeptCode;  //部门code
579 582
                 if (userId != 0)
580 583
                 {
584
+
581 585
                     Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
582 586
                     if (ua != null)
583 587
                     {
584
-                        BLL.T_Wo_WorkOrder bll = new BLL.T_Wo_WorkOrder();
585
-
588
+                        #region 权限限制    
589
+                        string sql = "  F_IsDelete=0 ";
590
+                        #endregion
591
+                        #region 工单各状态下数量
592
+                        BLL.T_Bus_WorkOrder  bll = new BLL.T_Bus_WorkOrder();
586 593
                         string uwhere = " 1=1  ";
587
-                        if (ua.F_RoleId != 17)
594
+                        var modellist = bll.GetModelList(sql);
595
+                        int dcl = 0, ycl = 0, zhcx=0;
596
+                        foreach (var it in modellist)
588 597
                         {
589
-                            uwhere += " and CreateUser='" + ua.F_UserCode + "' ";
598
+                            zhcx++;
599
+                            if (it.F_State == 0)
600
+                                dcl++;
601
+                            else
602
+                                ycl++;
590 603
                         }
604
+                        #endregion
591 605
 
592 606
                         var obj = new
593 607
                         {
594
-                            dpd = bll.GetList(uwhere+ " and IsDel=0 and State=0 ").Tables[0].Rows.Count,
595
-                            djd = new BLL.T_Wo_WorkOrderItem().GetModelList(" IsDel=0 and Type=1 and (state='0' and ','+ToUser+',' like '%," + ua.F_UserCode + ",%')  ").Select(p => p.WorkOrderID).Distinct().Count(),
596
-                            dcl = new BLL.T_Wo_WorkOrderItem().GetModelList(" IsDel=0 and Type=1 and (state='1' and SureUser='" + ua.F_UserCode + "')  ").Select(p => p.WorkOrderID).Distinct().Count()
608
+                            dcl,
609
+                            ycl,
610
+                            zhcx
597 611
                         };
598
-                        return Success("成功", obj);
612
+                        res = Success("成功", obj);
599 613
                     }
600 614
                 }
601 615
             }
602
-            return NoToken("未知错误,请重新登录");
616
+            return res;
603 617
         }
604 618
 
605 619
         /// <summary>

+ 2 - 368
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/BusinessController.cs

@@ -411,123 +411,7 @@ namespace CallCenterApi.Interface.Controllers.report
411 411
 
412 412
             return Success("获取成功", bigDate);
413 413
         }
414
-        /// <summary>
415
-        /// 市场信息简报
416
-        /// </summary>
417
-        /// <param name="sdate"></param>
418
-        /// <param name="edate"></param>
419
-        /// <param name="isdc"></param>
420
-        /// <returns></returns>
421
-        public ActionResult MarketInformation(string sdate, string edate,int isdc = 0)
422
-        {
423
-            int userId = CurrentUser.UserData.F_UserId;
424
-            Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
425
-            string  stime = DateTime.Now.ToString("yyyy-MM")+ "-01";
426
-            string etime = DateTime.Now.ToString("yyyy-MM-dd"); ;
427
-            string sql = $"  F_IsDelete=0";
428
-            DataTable dt = new DataTable();
429
-            if (!string.IsNullOrEmpty(sdate))
430
-            {
431
-                stime = sdate;
432
-            }
433
-            if (!string.IsNullOrEmpty(edate))
434
-            {
435
-                etime = edate;
436
-            }
437
-             sql += " and datediff(day,F_CreateTime,'" + stime + "')<=0 ";
438
-              sql += " and datediff(day,F_CreateTime,'" + etime + "')>=0   ";
439
-            var modellist = new BLL.T_Bus_WorkOrder().GetModelList(sql);
440
-            var productcpunt = new BLL.T_Bus_WorkOrder().GetModelList(sql+ "and F_Type=2 ") ;
441
-            var CPDM = new BLL.T_Sys_DictionaryValue().GetModelList (" F_DictionaryFlag='" + "CPDM" + "' and F_State=1 ");
442
-            var WTDM = new BLL.T_Sys_DictionaryValue().GetModelList(" F_DictionaryFlag='" + "WTDM" + "' and F_State=1 ");
443
-            Market market = new Market();
444
-            market.product = new List<Ification>();
445
-            market.sediainvolved = new Ification();
446
-           
447
-            Ification product = new Ification();
448
-            product.name = "总计";
449
-            product.number = productcpunt.Count ;
450
-            product.Proportion = "100%";
451
-            market.product.Add(product);
452
-            if (modellist!=null )
453
-            {
454
-               
455
-                if (CPDM != null)
456
-                {
457
-                    foreach (var iv in CPDM)
458
-                    {
459
-                        Ification products = new Ification();
460
-                        products.name = iv.F_Name;
461
-                        products.number = 0;
462
-                        foreach (var it in productcpunt)
463
-                        {
464
-                            if (iv.F_Name == it.F_ProductType)
465
-                                products.number++;
466
-                        }
467
-                        if (productcpunt.Count > 0)
468
-                            products.Proportion = string.Format("{0:f2}%", products.number / productcpunt.Count * 100);
469
-                        else
470
-                            products.Proportion = "0%";
471
-                        market.product.Add(products);
472
-                    }
473
-                 }
474
-                if (WTDM != null)
475
-                 {
476
-                    foreach (var iv in WTDM)
477
-                    {
478
-                        Ification products = new Ification();
479
-                        products.name = iv.F_Name;
480
-                        products.number = 0;
481
-                        foreach (var it in productcpunt)
482
-                        {
483
-                            if (iv.F_Name == it.F_ProblemCode)
484
-                                products.number++;
485
-                        }
486
-                        if (productcpunt.Count > 0)
487
-                            products.Proportion = string.Format("{0:f2}%", products.number / productcpunt.Count * 100);
488
-                        else
489
-                            products.Proportion = "0%";
490
-                        market.product.Add(products);
491
-                    }
492
-                }
493
-
494
-             Ification sediainvolved = new Ification();
495
-            foreach (var it in productcpunt)
496
-            {
497
-                if (it.F_Reason == "涉媒")
498
-               sediainvolved.number++;
499
-            }
500
-            sediainvolved.name = "涉媒";
501
-                if (productcpunt.Count > 0)
502
-                    sediainvolved.Proportion = string.Format("{0:f2}%", sediainvolved.number / productcpunt.Count * 100);
503
-                else
504
-                    sediainvolved.Proportion = "0%";
505
-                market.sediainvolved = sediainvolved;
506
-
507
-           }
508
-            var obj = new
509
-            {
510
-                state = "success",
511
-                message = "成功",
512
-                rows = market,
513
-            };
514
-            if (isdc>0)
515
-            {
516
-                NPOIHelper npoi = new NPOIHelper();
517
-                if (npoi.MarketExportToExcel(stime, etime, market) == "")
518
-                {
519
-                    return Success("导出成功");
520
-                }
521
-                else
522
-                {
523
-                    return Error("导出失败");
524
-                }
525
-            }
526
-            else 
527
-            return Content(obj.ToJson()); ;
528
-
529
-           
530
-        }
414
+      
531 415
 
532 416
         private class Timeslot
533 417
         {
@@ -617,257 +501,7 @@ namespace CallCenterApi.Interface.Controllers.report
617 501
             }
618 502
             return date;
619 503
         }
620
-        /// <summary>
621
-        /// 产品日期分布情况表
622
-        /// </summary>
623
-        /// <param name="sdate"></param>
624
-        /// <param name="edate"></param>
625
-        /// <param name="isdc"></param>
626
-        /// <returns></returns>
627
-        public ActionResult Distribution(DateTime? datetime , int isdc = 0)
628
-        {
629
-          //  int userId = CurrentUser.UserData.F_UserId;
630
-         //   Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
631
-            string sql = $"  F_IsDelete=0";
632
-            DateTime time=DateTime .Now ;
633
-           
634
-            DataTable dt = new DataTable();
635
-            if (datetime != null )
636
-            {
637
-                time =DateTime .Parse ( datetime.ToString ());
638
-            }
639
-            Timeslot timeslot = GetTimeslot(time.Month );
640
-            int days = 30;
641
-            if (time.Month ==1)
642
-            {
643
-                days = 31;
644
-            }
645
-            else
646
-            {
647
-                 days = System.Threading.Thread.CurrentThread.CurrentUICulture.Calendar.GetDaysInMonth(time.Year, time.Month - 1);//获取天数
648
-            }
649
-            DateTime lastmonth= time.AddMonths(-1);
650
-            sql += " and F_CreateTime>='" + lastmonth.ToString ("yyyy-MM") +"-28" + " 00:00:00' ";
651
-            sql += " and F_CreateTime<='" + time.ToString("yyyy-MM") + "-27" + " 23:59:59' ";
652
-            var modelList= new BLL.T_Bus_WorkOrder().GetModelList(sql);
653
-            Product product = new Product();
654
-            product.dates = new List<Date>();
655
-            int lastday = days - 27;
656
-            #region 上月28号至最后一天
657
-            for (int i=0;i< lastday;i ++)
658
-            {
659
-               string  name = string.Format("{0}-{1}", lastmonth.ToString("yyyy-MM"), 28 + i) ;
660
-                product.dates.Add(RetuDate(name, timeslot, modelList));
661
-            }
662
-            #endregion
663
-            #region 本月一号至27号
664
-            for (int i=0;i < 27; i++)
665
-            {
666
-                string name = "";
667
-                if (i <9)
668
-                {
669
-                    name=  string.Format("{0}-0{1}", time.ToString("yyyy-MM"), 1 + i);
670
-                }
671
-                else
672
-                {
673
-                   name = string.Format("{0}-{1}", time.ToString("yyyy-MM"), 1 + i);
674
-                }
675
-                product.dates.Add(RetuDate(name, timeslot, modelList));
676
-            }
677
-            Date date = new Date();
678
-            date.total = modelList.Count;
679
-            date.name = "合计";
680
-            date.MonthCount1 = 0;
681
-            date.MonthCount1name = timeslot.stime + "-" + timeslot.etime + "月份日期";
682
-            date.MonthCountmix1 = "0.00%";
683
-            date.MonthCount2 = 0;
684
-            date.MonthCount2name = timeslot.onetime + "月份日期";
685
-            date.MonthCountmix2 = "0.00%";
686
-            date.MonthCount3 = 0;
687
-            date.MonthCount3name = timeslot.twotime + "月份日期";
688
-            date.MonthCountmix3 = "0.00%";
689
-            date.MonthCount4 = 0;
690
-            date.MonthCount4name = timeslot.threetime + "月份日期";
691
-            date.MonthCountmix4 = "0.00%";
692
-            date.MonthCount5 = 0;
693
-            date.MonthCount5name = "不清楚日期";
694
-            date.MonthCountmix5 = "0.00%";
695
-            for (int j = 0; j < modelList.Count; j++)
696
-            {
697
-                if (!string.IsNullOrEmpty(modelList[j].F_ProductDate))
698
-                {
699
-                    string result = modelList[j].F_ProductDate.Replace(".", "");
700
-                    var pronos = DateTime.ParseExact(result, "yyyyMMdd", null).Month ;
701
-                    if (timeslot.stime > timeslot.etime)
702
-                    {
703
-                        int t = 12 - timeslot.stime;
704
-                        if (pronos >= timeslot.stime && pronos <= 12)
705
-                            date.MonthCount1++;
706
-                        else if (pronos >= timeslot.etime)
707
-                            date.MonthCount1++;
708
-
709
-                    }
710
-                    else
711
-                    {
712
-                        if (pronos >= timeslot.stime  && pronos <= timeslot.etime)
713
-                            date.MonthCount1++;
714
-                    }
715
-                    if (pronos == timeslot.onetime )
716
-                        date.MonthCount2++;
717
-                    if (pronos == timeslot.twotime )
718
-                        date.MonthCount3++;
719
-                    if (pronos == timeslot.threetime )
720
-                        date.MonthCount4++;
721
-                }
722
-                else
723
-                {
724
-                    date.MonthCount5++;
725
-                }
726
-            }
727
-            if (date.total > 0)
728
-            {
729
-                date.MonthCountmix1 = string.Format("{0:f2}%", (float)date.MonthCount1 / date.total*100);
730
-                date.MonthCountmix2 = string.Format("{0:f2}%", (float)date.MonthCount2 / date.total * 100);
731
-                date.MonthCountmix3 = string.Format("{0:f2}%", (float)date.MonthCount3 / date.total * 100);
732
-                date.MonthCountmix4 = string.Format("{0:f2}%", (float)date.MonthCount4 / date.total * 100);
733
-                date.MonthCountmix5 = string.Format("{0:f2}%", (float)date.MonthCount5 / date.total * 100);
734
-            }
735
-            else
736
-            {
737
-                if (date.total > 0)
738
-                {
739
-                    date.MonthCountmix1 = "0.00%";
740
-                    date.MonthCountmix2 = "0.00%";
741
-                    date.MonthCountmix3 = "0.00%";
742
-                    date.MonthCountmix4 = "0.00%";
743
-                    date.MonthCountmix5 = "0.00%";
744
-                }
745
-            }
746
-            product.dates.Add(date);
747
-            product.factory = new List<Factory>();
748
-            var EquipmentNumber = new BLL.T_Sys_EquipmentNumber().GetModelList("F_IsDelete=0");
749
-            
750
-            if (EquipmentNumber!=null )
751
-            {
752
-                int total = 0;
753
-                foreach (var it in EquipmentNumber)
754
-                {
755
-
756
-                    Factory factory = new Factory();
757
-                    factory.name = it.F_Production;
758
-                    factory.number = 0;
759
-                    factory.proportion = "0.00%";
760
-                    for (int i=0;i < modelList.Count;i++)
761
-                    {
762
-                        if (modelList[i].F_Manufacturer == it.F_Production)
763
-                        {
764
-                            total++;
765
-                            factory.number++;
766
-                        }
767
-                    }
768
-                    if (modelList.Count > 0)
769
-                        factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count*100);
770
-                    product.factory.Add(factory);
771
-                }
772
-                product.factory.Sort((a, b) => b.number.CompareTo(a.number));
773
-                Factory factor = new Factory();
774
-                factor.name = "合计";
775
-                factor.number = total;
776
-                factor.proportion = "0.00%";
777
-                if (modelList.Count > 0)
778
-                    factor.proportion = string.Format("{0:f2}%", (float)total / modelList.Count * 100);
779
-                product.factory.Add(factor);
780
-            }
781
-            var problem = new BLL.T_Sys_DictionaryValue().GetModelList("F_DictionaryFlag='WTDM'");
782
-            product.problem = new List<Factory>();
783
-            if (problem != null)
784
-            {
785
-                int total = 0;
786
-                foreach (var it in problem)
787
-                {
788
-                    Factory factory = new Factory();
789
-                    factory.name = it.F_Name ;
790
-                    factory.number = 0;
791
-                    factory.proportion = "0.00%";
792
-                    for (int i = 0; i < modelList.Count; i++)
793
-                    {
794
-                        if (modelList[i].F_ProblemCode == it.F_Name)
795
-                        {
796
-                            total++;
797
-                            factory.number++;
798
-                        }
799
-                    }
800
-                    if (modelList.Count>0)
801
-                    factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
802
-                    product.problem.Add(factory);
803
-                }
804
-                product.problem.Sort((a, b) => b.number.CompareTo(a.number));
805
-                Factory factor = new Factory();
806
-                factor.name = "合计";
807
-                factor.number = total;
808
-                factor.proportion = "0.00%";
809
-                if (modelList.Count > 0)
810
-                    factor.proportion = string.Format("{0:f2}%", (float)total / modelList.Count * 100);
811
-                product.problem.Add(factor);
812
-            }
813
-           
814
-            var productcode = new BLL.T_Sys_DictionaryValue().GetModelList("F_DictionaryFlag='CPDM'");
815
-            product.product = new List<Factory>();
816
-            if (productcode != null )
817
-            {
818
-                int total = 0;
819
-                foreach (var it in productcode)
820
-                {
821
-                    Factory factory = new Factory();
822
-                    factory.name = it.F_Name;
823
-                    factory.number = 0;
824
-                    factory.proportion = "0.00%";
825
-                    for (int i = 0; i < modelList.Count; i++)
826
-                    {
827
-                        if (modelList[i].F_ProblemCode == it.F_Name)
828
-                        {
829
-                            total++;
830
-                            factory.number++;
831
-                        }
832
-                    }
833
-                    if (modelList.Count > 0)
834
-                        factory.proportion = string.Format("{0:f2}%", (float)factory.number / modelList.Count * 100);
835
-                    product.product.Add(factory);
836
-                }
837
-                product.product.Sort((a, b) => b.number.CompareTo(a.number));
838
-                Factory factor = new Factory();
839
-                factor.name = "合计";
840
-                factor.number = total;
841
-                factor.proportion = "0.00%";
842
-                if (modelList.Count > 0)
843
-                    factor.proportion = string.Format("{0:f2}%", (float)total / modelList.Count * 100);
844
-                product.product.Add(factor);
845
-            }
846
-           
847
-            if (isdc > 0)
848
-            {
849
-                NPOIHelper npoi = new NPOIHelper();
850
-                if (npoi.DistributionToExcel(time, product) == "")
851
-                {
852
-                    return Success("导出成功");
853
-                }
854
-                else
855
-                {
856
-                    return Error("导出失败");
857
-                }
858
-            }
859
-            var msg = time.Year + "年" + time.Month + "月份投诉产品日期分布情况表";
860
-            var obj = new
861
-            {
862
-                state = "success",
863
-                message = "成功",
864
-                rows = product,
865
-                msg= msg,
866
-            };
867
-            return Success("获取成功", obj);
868
-            #endregion
869
-           
870
-        }
504
+      
871 505
         /// <summary>
872 506
         /// 工单来源
873 507
         /// </summary>

+ 24 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -15,13 +15,16 @@ namespace CallCenterApi.Interface.Controllers.tel
15 15
 {
16 16
     public class CallrecordsController : BaseController
17 17
     {
18
+         BLL.T_Sys_RoleInfo rolebll = new BLL.T_Sys_RoleInfo();
18 19
         BLL.T_Call_CallRecords bll = new BLL.T_Call_CallRecords();
19 20
         //获取通话记录列表
20 21
         public ActionResult GetList(string phone, string usercode)
21 22
         {
22 23
             int userId = CurrentUser.UserData.F_UserId;
23 24
             Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
24
-
25
+            if (userModel == null)
26
+                return Error("无操作权限");
27
+            Model.T_Sys_RoleInfo ro = rolebll.GetModel(userModel.F_RoleId);
25 28
             string sql = "";
26 29
             
27 30
             string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
@@ -35,16 +38,25 @@ namespace CallCenterApi.Interface.Controllers.tel
35 38
             int pageindex = 1;
36 39
             string strpagesize = RequestString.GetQueryString("pagesize");
37 40
             int pagesize = 10;
38
-          
39
-            //if (!string.IsNullOrEmpty(userModel.groupcode))
40
-            //{
41
-            //    sql += " and groupcode = '" + userModel.groupcode + "' ";
42
-            //}
41
+
42
+            
43 43
 
44 44
             if (usercode != null && usercode.Trim() != "")
45 45
             {
46 46
                 sql += " and UserCode='" + usercode + "'";
47 47
             }
48
+            else
49
+            {
50
+                if (ro.F_RoleCode == "XTGLY" )
51
+                {
52
+                    if (!string.IsNullOrEmpty(userModel.groupcode))
53
+                    {
54
+                        sql += " and groupcode = '" + userModel.groupcode + "' ";
55
+                    }
56
+                }
57
+                else 
58
+                sql += " and UserCode='" + userModel.F_UserCode  + "'";
59
+            }
48 60
             if (dept != null && dept.Trim() != "")
49 61
             {
50 62
                 sql += " and F_DeptId='" + dept.Trim() + "'";
@@ -114,6 +126,12 @@ namespace CallCenterApi.Interface.Controllers.tel
114 126
                     }
115 127
                     dr["FilePath"] = ym + path.Substring(path.IndexOf(':') + 1).Replace('\\', '/');
116 128
                 }
129
+                if (!string.IsNullOrEmpty(dr["CallNumber"].ToString()))
130
+                {
131
+                    var cusname = new BLL.T_Cus_Customer().GetModelList("F_Phone = '" + dr["CallNumber"].ToString() + "' and F_IsDelete=0").FirstOrDefault();
132
+                    if (cusname != null)
133
+                        dr["CusName"] = cusname.F_Name;
134
+                }
117 135
             }
118 136
 
119 137
             var obj = new

File diff suppressed because it is too large
+ 939 - 683
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs


File diff suppressed because it is too large
+ 2265 - 2265
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController_bak.cs


File diff suppressed because it is too large
+ 1231 - 1231
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkorderAppController.cs


+ 125 - 162
codegit/CallCenterApi/CallCenterApi.Model/T_Bus_WorkOrder.cs

@@ -2,9 +2,9 @@
2 2
 namespace CallCenterApi.Model
3 3
 {
4 4
     /// <summary>
5
-	/// T_Bus_WorkOrder:实体类(属性说明自动提取数据库字段的描述信息)
6
-	/// </summary>
7
-	[Serializable]
5
+    /// T_Bus_WorkOrder:实体类(属性说明自动提取数据库字段的描述信息)
6
+    /// </summary>
7
+    [Serializable]
8 8
     public partial class T_Bus_WorkOrder
9 9
     {
10 10
         public T_Bus_WorkOrder()
@@ -14,17 +14,28 @@ namespace CallCenterApi.Model
14 14
         private string _f_workorderid;
15 15
         private string _f_cusphone;
16 16
         private string _f_cusname;
17
+        private string _f_cussex;
17 18
         private int? _f_type;
19
+        private int? _f_smalltype;
18 20
         private string _f_content;
19 21
         private string _f_file;
20 22
         private int? _f_source;
21 23
         private string _f_productname;
22 24
         private string _f_productdate;
23
-        private string _f_producttype;
25
+        private string _f_buydate;
26
+        private string _f_buyaddress;
27
+        private int? _f_producttype;
24 28
         private string _f_batchnumber;
29
+        private string _f_userdate;
30
+        private int? _f_isback;
25 31
         private string _f_area;
32
+        private string _f_province;
33
+        private string _f_city;
34
+        private string _f_county;
35
+        private int? _f_vipid;
36
+        private string _f_vipname;
37
+        private string _f_vipphone;
26 38
         private int? _f_state;
27
-        private string _f_returnnote;
28 39
         private int? _f_callrecordid;
29 40
         private int? _f_leaverecordid;
30 41
         private string _f_callid;
@@ -36,29 +47,15 @@ namespace CallCenterApi.Model
36 47
         private string _f_dealresult;
37 48
         private string _f_dealdes;
38 49
         private string _f_dealfile;
39
-        private string  _f_dealtimely;
50
+        private int? _f_dealtimely;
40 51
         private string _f_dealuser;
41 52
         private DateTime? _f_dealtime;
53
+        private string _f_groupcode;
42 54
         private string _f_createuser;
43 55
         private DateTime? _f_createtime;
44 56
         private int? _f_isdelete;
45 57
         private string _f_deleteuser;
46 58
         private DateTime? _f_deletetime;
47
-        private string _f_office;
48
-        private int? _f_serialnumber = 0;
49
-        private string _f_specifications;
50
-        private string _f_manufacturer;
51
-        private string _f_problemcode;
52
-        private string _f_qualityproblem;
53
-        private string _f_notifications;
54
-        private string _f_receivingperson;
55
-        private string _f_implementationsituation;
56
-        private int? _f_duplicate = 0;
57
-        private string _f_address;
58
-        private int _f_largeareaid;
59
-        private int _f_officeid;
60
-        private int _f_distribution;
61
-        private string _f_reason;
62 59
         /// <summary>
63 60
         /// 
64 61
         /// </summary>
@@ -68,39 +65,7 @@ namespace CallCenterApi.Model
68 65
             get { return _f_id; }
69 66
         }
70 67
         /// <summary>
71
-        /// 转派分销组id
72
-        /// </summary>
73
-        public int F_Distribution
74
-        {
75
-            set { _f_distribution = value; }
76
-            get { return _f_distribution; }
77
-        }
78
-        /// <summary>
79
-        /// 重要级别原因
80
-        /// </summary>
81
-        public string F_Reason
82
-        {
83
-            set { _f_reason = value; }
84
-            get { return _f_reason; }
85
-        }
86
-        /// <summary>
87
-        /// 转派大区id
88
-        /// </summary>
89
-        public int F_Largeareaid
90
-        {
91
-            set { _f_largeareaid = value; }
92
-            get { return _f_largeareaid; }
93
-        }
94
-        /// <summary>
95
-        /// 转派办事处id
96
-        /// </summary>
97
-        public int F_Officeid
98
-        {
99
-            set { _f_officeid = value; }
100
-            get { return _f_officeid; }
101
-        }
102
-        /// <summary>
103
-        /// 工单编号
68
+        /// 工单号
104 69
         /// </summary>
105 70
         public string F_WorkOrderId
106 71
         {
@@ -108,70 +73,68 @@ namespace CallCenterApi.Model
108 73
             get { return _f_workorderid; }
109 74
         }
110 75
         /// <summary>
111
-        /// 大区
76
+        /// 号码
112 77
         /// </summary>
113
-        public string F_Area
78
+        public string F_CusPhone
114 79
         {
115
-            set { _f_area = value; }
116
-            get { return _f_area; }
80
+            set { _f_cusphone = value; }
81
+            get { return _f_cusphone; }
117 82
         }
118 83
         /// <summary>
119
-        /// 办事处
84
+        /// 姓名
120 85
         /// </summary>
121
-        public string F_Office
86
+        public string F_CusName
122 87
         {
123
-            set { _f_office = value; }
124
-            get { return _f_office; }
88
+            set { _f_cusname = value; }
89
+            get { return _f_cusname; }
125 90
         }
126 91
         /// <summary>
127
-        /// 投诉时间
92
+        /// 性别
128 93
         /// </summary>
129
-        public DateTime? F_CreateTime
94
+        public string F_CusSex
130 95
         {
131
-            set { _f_createtime = value; }
132
-            get { return _f_createtime; }
96
+            set { _f_cussex = value; }
97
+            get { return _f_cussex; }
133 98
         }
134
-
135 99
         /// <summary>
136
-        /// 序号
100
+        /// 工单类型
137 101
         /// </summary>
138
-        public int? F_SerialNumber
102
+        public int? F_Type
139 103
         {
140
-            set { _f_serialnumber = value; }
141
-            get { return _f_serialnumber; }
104
+            set { _f_type = value; }
105
+            get { return _f_type; }
142 106
         }
143 107
         /// <summary>
144
-        /// 姓名
108
+        /// 工单类型子类型
145 109
         /// </summary>
146
-        public string F_CusName
110
+        public int? F_SmallType
147 111
         {
148
-            set { _f_cusname = value; }
149
-            get { return _f_cusname; }
112
+            set { _f_smalltype = value; }
113
+            get { return _f_smalltype; }
150 114
         }
151 115
         /// <summary>
152
-        /// 地址
116
+        /// 事件描述
153 117
         /// </summary>
154
-        public string F_AddRess
118
+        public string F_Content
155 119
         {
156
-            set { _f_address = value; }
157
-            get { return _f_address; }
120
+            set { _f_content = value; }
121
+            get { return _f_content; }
158 122
         }
159
-        
160 123
         /// <summary>
161
-        /// 联系电话
124
+        /// 附件Id
162 125
         /// </summary>
163
-        public string F_CusPhone
126
+        public string F_File
164 127
         {
165
-            set { _f_cusphone = value; }
166
-            get { return _f_cusphone; }
128
+            set { _f_file = value; }
129
+            get { return _f_file; }
167 130
         }
168 131
         /// <summary>
169
-        /// 产品代码
132
+        /// 来源
170 133
         /// </summary>
171
-        public string  F_ProductType
134
+        public int? F_Source
172 135
         {
173
-            set { _f_producttype = value; }
174
-            get { return _f_producttype; }
136
+            set { _f_source = value; }
137
+            get { return _f_source; }
175 138
         }
176 139
         /// <summary>
177 140
         /// 产品名称
@@ -182,14 +145,6 @@ namespace CallCenterApi.Model
182 145
             get { return _f_productname; }
183 146
         }
184 147
         /// <summary>
185
-        /// 规格
186
-        /// </summary>
187
-        public string F_Specifications
188
-        {
189
-            set { _f_specifications = value; }
190
-            get { return _f_specifications; }
191
-        }
192
-        /// <summary>
193 148
         /// 生产日期
194 149
         /// </summary>
195 150
         public string F_ProductDate
@@ -198,120 +153,116 @@ namespace CallCenterApi.Model
198 153
             get { return _f_productdate; }
199 154
         }
200 155
         /// <summary>
201
-        /// 产品编码
156
+        /// 购买日期
202 157
         /// </summary>
203
-        public string F_BatchNumber
158
+        public string F_BuyDate
204 159
         {
205
-            set { _f_batchnumber = value; }
206
-            get { return _f_batchnumber; }
160
+            set { _f_buydate = value; }
161
+            get { return _f_buydate; }
207 162
         }
208
-
209 163
         /// <summary>
210
-        /// 生产厂家
164
+        /// 购买地点
211 165
         /// </summary>
212
-        public string F_Manufacturer
166
+        public string F_BuyAddress
213 167
         {
214
-            set { _f_manufacturer = value; }
215
-            get { return _f_manufacturer; }
168
+            set { _f_buyaddress = value; }
169
+            get { return _f_buyaddress; }
216 170
         }
217 171
         /// <summary>
218
-        /// 问题代码
172
+        /// 产品类别
219 173
         /// </summary>
220
-        public string F_ProblemCode
174
+        public int? F_ProductType
221 175
         {
222
-            set { _f_problemcode = value; }
223
-            get { return _f_problemcode; }
176
+            set { _f_producttype = value; }
177
+            get { return _f_producttype; }
224 178
         }
225 179
         /// <summary>
226
-        /// 质量问题
180
+        /// 生产批号
227 181
         /// </summary>
228
-        public string F_QualityProblem
182
+        public string F_BatchNumber
229 183
         {
230
-            set { _f_qualityproblem = value; }
231
-            get { return _f_qualityproblem; }
184
+            set { _f_batchnumber = value; }
185
+            get { return _f_batchnumber; }
232 186
         }
233 187
         /// <summary>
234
-        /// 通知人
188
+        /// 使用日期
235 189
         /// </summary>
236
-        public string F_Notifications
190
+        public string F_UserDate
237 191
         {
238
-            set { _f_notifications = value; }
239
-            get { return _f_notifications; }
192
+            set { _f_userdate = value; }
193
+            get { return _f_userdate; }
240 194
         }
241 195
         /// <summary>
242
-        /// 接听人
196
+        /// 样品是否寄回(0否1是)
243 197
         /// </summary>
244
-        public string F_ReceivingPerson
198
+        public int? F_IsBack
245 199
         {
246
-            set { _f_receivingperson = value; }
247
-            get { return _f_receivingperson; }
200
+            set { _f_isback = value; }
201
+            get { return _f_isback; }
248 202
         }
249 203
         /// <summary>
250
-        /// 落实情况
204
+        /// 大区
251 205
         /// </summary>
252
-        public string F_ImplementationSituation
206
+        public string F_Area
253 207
         {
254
-            set { _f_implementationsituation = value; }
255
-            get { return _f_implementationsituation; }
208
+            set { _f_area = value; }
209
+            get { return _f_area; }
256 210
         }
257 211
         /// <summary>
258
-        /// 处理进度
212
+        /// 省份
259 213
         /// </summary>
260
-        public int? F_State
214
+        public string F_Province
261 215
         {
262
-            set { _f_state = value; }
263
-            get { return _f_state; }
216
+            set { _f_province = value; }
217
+            get { return _f_province; }
264 218
         }
265 219
         /// <summary>
266
-        /// 退回说明
220
+        /// 城市
267 221
         /// </summary>
268
-        public string  F_Returnnote
269
-
270
-
222
+        public string F_City
271 223
         {
272
-            set { _f_returnnote = value; }
273
-            get { return _f_returnnote; }
224
+            set { _f_city = value; }
225
+            get { return _f_city; }
274 226
         }
275 227
         /// <summary>
276
-        /// 工单类别
228
+        /// 县区
277 229
         /// </summary>
278
-        public int? F_Type
230
+        public string F_County
279 231
         {
280
-            set { _f_type = value; }
281
-            get { return _f_type; }
232
+            set { _f_county = value; }
233
+            get { return _f_county; }
282 234
         }
283 235
         /// <summary>
284
-        /// 重复工单
236
+        /// 专员id
285 237
         /// </summary>
286
-        public int? F_Duplicate
238
+        public int? F_VIPId
287 239
         {
288
-            set { _f_duplicate = value; }
289
-            get { return _f_duplicate; }
240
+            set { _f_vipid = value; }
241
+            get { return _f_vipid; }
290 242
         }
291
-       
292 243
         /// <summary>
293
-        /// 事件描述
244
+        /// 专员姓名
294 245
         /// </summary>
295
-        public string F_Content
246
+        public string F_VIPName
296 247
         {
297
-            set { _f_content = value; }
298
-            get { return _f_content; }
248
+            set { _f_vipname = value; }
249
+            get { return _f_vipname; }
299 250
         }
300 251
         /// <summary>
301
-        /// 附件Id
252
+        /// 专员电话
302 253
         /// </summary>
303
-        public string F_File
254
+        public string F_VIPPhone
304 255
         {
305
-            set { _f_file = value; }
306
-            get { return _f_file; }
256
+            set { _f_vipphone = value; }
257
+            get { return _f_vipphone; }
307 258
         }
308 259
         /// <summary>
309
-        /// 来源
260
+        /// 状态
310 261
         /// </summary>
311
-        public int? F_Source
262
+        public int? F_State
312 263
         {
313
-            set { _f_source = value; }
314
-            get { return _f_source; }
264
+            set { _f_state = value; }
265
+            get { return _f_state; }
315 266
         }
316 267
         /// <summary>
317 268
         /// 通话记录id
@@ -402,9 +353,9 @@ namespace CallCenterApi.Model
402 353
             get { return _f_dealfile; }
403 354
         }
404 355
         /// <summary>
405
-        /// 重要级别1红色2绿色3普通
356
+        /// 及时响应
406 357
         /// </summary>
407
-        public   string F_DealTimely
358
+        public int? F_DealTimely
408 359
         {
409 360
             set { _f_dealtimely = value; }
410 361
             get { return _f_dealtimely; }
@@ -426,6 +377,14 @@ namespace CallCenterApi.Model
426 377
             get { return _f_dealtime; }
427 378
         }
428 379
         /// <summary>
380
+        /// 分组代码
381
+        /// </summary>
382
+        public string F_GroupCode
383
+        {
384
+            set { _f_groupcode = value; }
385
+            get { return _f_groupcode; }
386
+        }
387
+        /// <summary>
429 388
         /// 创建人
430 389
         /// </summary>
431 390
         public string F_CreateUser
@@ -433,7 +392,14 @@ namespace CallCenterApi.Model
433 392
             set { _f_createuser = value; }
434 393
             get { return _f_createuser; }
435 394
         }
436
-      
395
+        /// <summary>
396
+        /// 创建时间
397
+        /// </summary>
398
+        public DateTime? F_CreateTime
399
+        {
400
+            set { _f_createtime = value; }
401
+            get { return _f_createtime; }
402
+        }
437 403
         /// <summary>
438 404
         /// 是否删除(1是0否)
439 405
         /// </summary>
@@ -458,9 +424,6 @@ namespace CallCenterApi.Model
458 424
             set { _f_deletetime = value; }
459 425
             get { return _f_deletetime; }
460 426
         }
461
-     
462
-       
463
-       
464 427
         #endregion Model
465 428
 
466 429
     }