mengjie 6 anni fa
parent
commit
02fa46840b

File diff suppressed because it is too large
+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs


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

590
                         int eflag = RequestString.GetFormInt("eflag", 0);
590
                         int eflag = RequestString.GetFormInt("eflag", 0);
591
 
591
 
592
                         Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
592
                         Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
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" + "'"); 
593
+                        int wcount= new BLL.T_Wo_WorkOrder().GetRecordCount(" CreateTime>='"+DateTime .Now .ToString ("yyyy-MM-dd")+" 00:00:00"+ "' and CreateTime<='"+ DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59" + "'"); 
594
 
594
 
595
-                        model.WorkOrderID = DateTime.Now.ToString("yyyyMMdd")+wcount .ToString("d3");//DateTime.Now.ToString("yyyyMMddHHmmssfff");  //工单编号                        
595
+                        model.WorkOrderID = DateTime.Now.ToString("yyyyMMdd")+(wcount+1) .ToString("d3");//DateTime.Now.ToString("yyyyMMddHHmmssfff");  //工单编号                        
596
                         model.Type = gdlx;              //工单类型                    
596
                         model.Type = gdlx;              //工单类型                    
597
                         model.TypeClass = ywlx;         //业务办理-数据字典读取
597
                         model.TypeClass = ywlx;         //业务办理-数据字典读取
598
                         model.Customer = callCustomer;  //客户姓名
598
                         model.Customer = callCustomer;  //客户姓名

+ 6 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

307
                     dt.Columns.Add("FileUrl", typeof(DataTable));
307
                     dt.Columns.Add("FileUrl", typeof(DataTable));
308
                     dt.Columns.Add("TimeoutTime", typeof(string));
308
                     dt.Columns.Add("TimeoutTime", typeof(string));
309
                     dt.Columns.Add("ResultFileUrl", typeof(DataTable));
309
                     dt.Columns.Add("ResultFileUrl", typeof(DataTable));
310
+                    dt.Columns.Add("BackColor", typeof(int));
310
                     for (int i = 0; i < dt.Rows.Count;i++ )
311
                     for (int i = 0; i < dt.Rows.Count;i++ )
311
                     {
312
                     {
312
                         if (dt.Rows[i]["Files"] != null && dt.Rows[i]["Files"].ToString() != "")
313
                         if (dt.Rows[i]["Files"] != null && dt.Rows[i]["Files"].ToString() != "")
338
                         {
339
                         {
339
                             DateTime LimitDateTime = Convert.ToDateTime(dt.Rows[i]["LimitDate"]);
340
                             DateTime LimitDateTime = Convert.ToDateTime(dt.Rows[i]["LimitDate"]);
340
                             TimeSpan Ts = LimitDateTime.Subtract(NowTime);
341
                             TimeSpan Ts = LimitDateTime.Subtract(NowTime);
342
+                            int hor = (int)Ts.TotalHours;
343
+                            if (hor <= 4 && hor > 2)
344
+                                dt.Rows[i]["BackColor"] = 1;
345
+                            else if (hor <= 2 )
346
+                                dt.Rows[i]["BackColor"] = 2;
341
                             int Sec = (int)Ts.TotalSeconds; //获取秒数
347
                             int Sec = (int)Ts.TotalSeconds; //获取秒数
342
                             string Minus_Sign = "";
348
                             string Minus_Sign = "";
343
                             if(Sec < 0) {
349
                             if(Sec < 0) {