|
|
@@ -2783,7 +2783,21 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
2783
|
2783
|
model.F_AuditBy = model1[i].F_AuditBy;//审核人
|
|
2784
|
2784
|
model.F_AuditOn = model1[i].F_AuditOn;//审核时间
|
|
2785
|
2785
|
model.F_AuditCont = model1[i].F_AuditCont;//审核内容
|
|
2786
|
|
- model.RemainingTime = float.Parse(string.Format("{0:f2}", TimeToOver(model1[i].F_ID, model1[i].F_limit)));
|
|
|
2786
|
+ // model.RemainingTime = float.Parse(string.Format("{0:f2}", TimeToOver(model1[i].F_ID, model1[i].F_limit)));
|
|
|
2787
|
+
|
|
|
2788
|
+ float c = TimeToOver(model1[i].F_ID, model1[i].F_limit);
|
|
|
2789
|
+ float a = Math.Abs(c);
|
|
|
2790
|
+ int days = (int)Math.Floor(Convert.ToDouble(a / 24));
|
|
|
2791
|
+ int hours = days > 0
|
|
|
2792
|
+ ? (int)Math.Floor(Convert.ToDouble((a - days * 24)))
|
|
|
2793
|
+ : (int)Math.Floor(Convert.ToDouble(a));
|
|
|
2794
|
+ float minutes = hours > 0
|
|
|
2795
|
+ ? a * 60 - days * 1440 - hours * 60
|
|
|
2796
|
+ : 0;
|
|
|
2797
|
+ if (c > 0)
|
|
|
2798
|
+ model.RemainingTime = string.Format("剩余{0:f0}天{1:f0}时{2:f0}分", days, hours, minutes);
|
|
|
2799
|
+ else
|
|
|
2800
|
+ model.RemainingTime = string.Format("超时{0:f0}天{1:f0}时{2:f0}分", days, hours, minutes);
|
|
2787
|
2801
|
if (ua != null)
|
|
2788
|
2802
|
{
|
|
2789
|
2803
|
var itemlast = itembll.GetModelList(" F_WoID='" + model.F_ID + "' order by F_ID desc").FirstOrDefault();
|
|
|
@@ -2802,6 +2816,16 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
2802
|
2816
|
}
|
|
2803
|
2817
|
|
|
2804
|
2818
|
}
|
|
|
2819
|
+ model.F_limit = model1[i].F_limit;
|
|
|
2820
|
+ int day = (int)Math.Floor(Convert.ToDouble(model.F_limit / 24));
|
|
|
2821
|
+ int hour = day > 0
|
|
|
2822
|
+ ? (int)Math.Floor(Convert.ToDouble((model.F_limit - day * 24)))
|
|
|
2823
|
+ : (int)Math.Floor(Convert.ToDouble(model.F_limit));
|
|
|
2824
|
+
|
|
|
2825
|
+ string time = "";
|
|
|
2826
|
+ if (day > 0) time += day + "天";
|
|
|
2827
|
+ if (hour > 0) time += hour + "小时";
|
|
|
2828
|
+ model.F_limitTime = time;
|
|
2805
|
2829
|
if (model1[i].F_Type !="3")
|
|
2806
|
2830
|
{
|
|
2807
|
2831
|
if (TimeToOver(model1[i].F_ID, model1[i].F_limit) < 0)
|
|
|
@@ -2861,7 +2885,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
2861
|
2885
|
if (itemlasts[i].F_WoState >= 1)
|
|
2862
|
2886
|
{
|
|
2863
|
2887
|
|
|
2864
|
|
- if (itemlasts[i].F_WoState == 11)
|
|
|
2888
|
+ if (itemlasts[i].F_WoState == 10 || itemlasts[i].F_WoState == 11)
|
|
2865
|
2889
|
{
|
|
2866
|
2890
|
y = i;
|
|
2867
|
2891
|
time2 = itemlasts[i].F_CreateTime.ToString();
|
|
|
@@ -2872,7 +2896,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
2872
|
2896
|
{
|
|
2873
|
2897
|
if (time1 != "")
|
|
2874
|
2898
|
{
|
|
2875
|
|
- if (x > y)
|
|
|
2899
|
+ if (y >x )
|
|
2876
|
2900
|
{
|
|
2877
|
2901
|
System.TimeSpan a = DateTime.Parse(time2) - DateTime.Parse(time1);
|
|
2878
|
2902
|
float b = limit - (float)a.TotalHours;
|
|
|
@@ -3976,6 +4000,8 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
3976
|
4000
|
{
|
|
3977
|
4001
|
if (clus.F_WorkNumber == "7000")
|
|
3978
|
4002
|
return Error("不能转派到市场管理员");
|
|
|
4003
|
+ else if (clus.F_RoleId == 1 || clus.F_RoleId == 4)
|
|
|
4004
|
+ return Error("不能转派到话务人员");
|
|
3979
|
4005
|
else if (clus.F_RoleId == 58)
|
|
3980
|
4006
|
return Error("不能转派到业务员");
|
|
3981
|
4007
|
else if (clus.F_RoleId == 60)
|
|
|
@@ -4143,7 +4169,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
4143
|
4169
|
{
|
|
4144
|
4170
|
sql = " and F_RoleId=59";
|
|
4145
|
4171
|
}
|
|
4146
|
|
- var list = userAccountBLL.GetModelList(" F_DeptId='" + clbm + "'"+ sql);
|
|
|
4172
|
+ var list = userAccountBLL.GetModelList(" F_DeptId='" + clbm + "'and F_DeleteFlag=0" + sql);
|
|
4147
|
4173
|
foreach (var l in list)
|
|
4148
|
4174
|
{
|
|
4149
|
4175
|
if (string.IsNullOrEmpty(users))
|
|
|
@@ -4458,7 +4484,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
4458
|
4484
|
if (itemlasts[i].F_WoState >= 1)
|
|
4459
|
4485
|
{
|
|
4460
|
4486
|
|
|
4461
|
|
- if (itemlasts[i].F_WoState == 11)
|
|
|
4487
|
+ if (itemlasts[i].F_WoState == 10)
|
|
4462
|
4488
|
{
|
|
4463
|
4489
|
y = i;
|
|
4464
|
4490
|
time2 = itemlasts[i].F_CreateTime.ToString();
|
|
|
@@ -4469,7 +4495,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
4469
|
4495
|
{
|
|
4470
|
4496
|
if (time1 != "")
|
|
4471
|
4497
|
{
|
|
4472
|
|
- if (x > y)
|
|
|
4498
|
+ if (y > x )
|
|
4473
|
4499
|
{
|
|
4474
|
4500
|
System.TimeSpan a = DateTime.Parse(time2) - DateTime.Parse(time1);
|
|
4475
|
4501
|
if ((float)a.TotalHours > time)
|