|
|
@@ -307,6 +307,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
307
|
307
|
dt.Columns.Add("FileUrl", typeof(DataTable));
|
|
308
|
308
|
dt.Columns.Add("TimeoutTime", typeof(string));
|
|
309
|
309
|
dt.Columns.Add("ResultFileUrl", typeof(DataTable));
|
|
|
310
|
+ dt.Columns.Add("BackColor", typeof(int));
|
|
310
|
311
|
for (int i = 0; i < dt.Rows.Count;i++ )
|
|
311
|
312
|
{
|
|
312
|
313
|
if (dt.Rows[i]["Files"] != null && dt.Rows[i]["Files"].ToString() != "")
|
|
|
@@ -338,6 +339,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
338
|
339
|
{
|
|
339
|
340
|
DateTime LimitDateTime = Convert.ToDateTime(dt.Rows[i]["LimitDate"]);
|
|
340
|
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
|
347
|
int Sec = (int)Ts.TotalSeconds; //获取秒数
|
|
342
|
348
|
string Minus_Sign = "";
|
|
343
|
349
|
if(Sec < 0) {
|