Kaynağa Gözat

添加特殊案件标记,修改工单编号生成格式

mengjie 6 yıl önce
ebeveyn
işleme
ca78fc8836

Dosya farkı çok büyük olduğundan ihmal edildi
+ 17 - 8
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs


+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -586,10 +586,13 @@ namespace CallCenterApi.Interface.Controllers.tel
586 586
                         string limitdate = RequestString.GetFormString("limitdate");
587 587
                         //备注
588 588
                         string clcontent = RequestString.GetFormString("clcontent");
589
-
589
+                        //特殊案件标记
590
+                        int eflag = RequestString.GetFormInt("eflag", 0);
590 591
 
591 592
                         Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
592
-                        model.WorkOrderID = DateTime.Now.ToString("yyyyMMddHHmmssfff");  //工单编号                        
593
+                        int wcount= new BLL.T_Sys_UserAccount().GetRecordCount(" CreateTime>='"+DateTime .Now .ToString ("yyyy-MM-dd")+" 00:00:00"+ "' and CreateTime<='"+ DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59" + "'"); 
594
+
595
+                        model.WorkOrderID = DateTime.Now.ToString("yyyyMMdd")+wcount .ToString("d3");//DateTime.Now.ToString("yyyyMMddHHmmssfff");  //工单编号                        
593 596
                         model.Type = gdlx;              //工单类型                    
594 597
                         model.TypeClass = ywlx;         //业务办理-数据字典读取
595 598
                         model.Customer = callCustomer;  //客户姓名
@@ -607,6 +610,7 @@ namespace CallCenterApi.Interface.Controllers.tel
607 610
                         model.Files = files;
608 611
                         model.CType = gdzl;
609 612
                         model.LeaveId = leaveid;
613
+                        model.EFlag = eflag;
610 614
                         //添加截止时间
611 615
                         if (!string.IsNullOrEmpty(limitdate))
612 616
                         {

+ 4 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -747,7 +747,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
747 747
                     string limitdate = RequestString.GetFormString("limitdate");
748 748
                     //工单子类
749 749
                     int gdzl = RequestString.GetFormInt("ctype", 0);
750
-                    
750
+                    //特殊案件标记
751
+                    int eflag = RequestString.GetFormInt("eflag", 0);
752
+
751 753
                     string files = RequestString.GetFormString("files");
752 754
                     Model.T_Wo_WorkOrder model = bll.GetModel(orderid);
753 755
                     if (model != null)
@@ -765,6 +767,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
765 767
                         model.Detail = detailutf8;
766 768
                         model.F_IsOver = isover;
767 769
                         model.IsEffective = iseffective;    //是否有效工单项(0有效,1无效)
770
+                        model.EFlag = eflag;
768 771
                         if (iseffective == 1)
769 772
                             model.Province = System.Web.HttpUtility.UrlDecode(note, System.Text.Encoding.UTF8); //备注
770 773
 

+ 11 - 1
codegit/CallCenterApi/CallCenterApi.Model/T_Wo_WorkOrder.cs

@@ -68,7 +68,8 @@ namespace CallCenterApi.Model
68 68
         private int? _ctype;
69 69
         private string _leaveid;
70 70
         private string _resultfiles;
71
-        
71
+        private int? _eflag = 0;
72
+
72 73
         /// <summary>
73 74
         /// 工单ID
74 75
         /// </summary>
@@ -554,6 +555,15 @@ namespace CallCenterApi.Model
554 555
             set { _resultfiles = value; }
555 556
             get { return _resultfiles; }
556 557
         }
558
+
559
+        /// <summary>
560
+        /// 特殊案件标记
561
+        /// </summary>
562
+        public int? EFlag
563
+        {
564
+            set { _eflag = value; }
565
+            get { return _eflag; }
566
+        }
557 567
         #endregion Model
558 568
 
559 569
     }