|
|
|
@ -33,24 +33,5 @@ public class Ghrp_PerformanceItemDto : Ghrp_PerformanceItem |
|
|
|
|
public string UpdateDataInfo { get; set; } |
|
|
|
|
public string BeginDateStr => BeginDate?.ToString("yyyy-MM-dd") ?? string.Empty; |
|
|
|
|
public string EndDateStr => EndDate?.ToString("yyyy-MM-dd") ?? string.Empty; |
|
|
|
|
|
|
|
|
|
public string ItemStatus |
|
|
|
|
{ |
|
|
|
|
get |
|
|
|
|
{ |
|
|
|
|
DateTime now = DateTime.Now; |
|
|
|
|
|
|
|
|
|
if (now < BeginDate) |
|
|
|
|
{ |
|
|
|
|
return "2"; // 未生效 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (EndDate.HasValue) |
|
|
|
|
{ |
|
|
|
|
return now > EndDate.Value ? "0" : "1"; // 0已失效 1生效中 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return "1"; //生效中 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|