Pārlūkot izejas kodu

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

mengjie 6 gadi atpakaļ
vecāks
revīzija
ca78fc8836

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 17 - 8
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs


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

586
                         string limitdate = RequestString.GetFormString("limitdate");
586
                         string limitdate = RequestString.GetFormString("limitdate");
587
                         //备注
587
                         //备注
588
                         string clcontent = RequestString.GetFormString("clcontent");
588
                         string clcontent = RequestString.GetFormString("clcontent");
589
-
589
+                        //特殊案件标记
590
+                        int eflag = RequestString.GetFormInt("eflag", 0);
590
 
591
 
591
                         Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
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
                         model.Type = gdlx;              //工单类型                    
596
                         model.Type = gdlx;              //工单类型                    
594
                         model.TypeClass = ywlx;         //业务办理-数据字典读取
597
                         model.TypeClass = ywlx;         //业务办理-数据字典读取
595
                         model.Customer = callCustomer;  //客户姓名
598
                         model.Customer = callCustomer;  //客户姓名
607
                         model.Files = files;
610
                         model.Files = files;
608
                         model.CType = gdzl;
611
                         model.CType = gdzl;
609
                         model.LeaveId = leaveid;
612
                         model.LeaveId = leaveid;
613
+                        model.EFlag = eflag;
610
                         //添加截止时间
614
                         //添加截止时间
611
                         if (!string.IsNullOrEmpty(limitdate))
615
                         if (!string.IsNullOrEmpty(limitdate))
612
                         {
616
                         {

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

747
                     string limitdate = RequestString.GetFormString("limitdate");
747
                     string limitdate = RequestString.GetFormString("limitdate");
748
                     //工单子类
748
                     //工单子类
749
                     int gdzl = RequestString.GetFormInt("ctype", 0);
749
                     int gdzl = RequestString.GetFormInt("ctype", 0);
750
-                    
750
+                    //特殊案件标记
751
+                    int eflag = RequestString.GetFormInt("eflag", 0);
752
+
751
                     string files = RequestString.GetFormString("files");
753
                     string files = RequestString.GetFormString("files");
752
                     Model.T_Wo_WorkOrder model = bll.GetModel(orderid);
754
                     Model.T_Wo_WorkOrder model = bll.GetModel(orderid);
753
                     if (model != null)
755
                     if (model != null)
765
                         model.Detail = detailutf8;
767
                         model.Detail = detailutf8;
766
                         model.F_IsOver = isover;
768
                         model.F_IsOver = isover;
767
                         model.IsEffective = iseffective;    //是否有效工单项(0有效,1无效)
769
                         model.IsEffective = iseffective;    //是否有效工单项(0有效,1无效)
770
+                        model.EFlag = eflag;
768
                         if (iseffective == 1)
771
                         if (iseffective == 1)
769
                             model.Province = System.Web.HttpUtility.UrlDecode(note, System.Text.Encoding.UTF8); //备注
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
         private int? _ctype;
68
         private int? _ctype;
69
         private string _leaveid;
69
         private string _leaveid;
70
         private string _resultfiles;
70
         private string _resultfiles;
71
-        
71
+        private int? _eflag = 0;
72
+
72
         /// <summary>
73
         /// <summary>
73
         /// 工单ID
74
         /// 工单ID
74
         /// </summary>
75
         /// </summary>
554
             set { _resultfiles = value; }
555
             set { _resultfiles = value; }
555
             get { return _resultfiles; }
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
         #endregion Model
567
         #endregion Model
558
 
568
 
559
     }
569
     }