fix 增加状态描述

This commit is contained in:
2025-03-17 14:32:54 +08:00
parent ab2a36e708
commit 01d22a2056
2 changed files with 64 additions and 0 deletions

View File

@@ -81,6 +81,28 @@ public class WorkGridScheduleAttendancePageResponse
[JsonIgnore]
public string WorkGridInfo { get; set; }
/// <summary>
/// 状态描述
/// </summary>
public string ResultDescription
{
get
{
if (IsError)
{
return Sync ? "已上传" : "/";
}
if (NeedUpload)
{
return Sync ? "已上传" : "待上传";
}
return "/";
}
}
}
public class WorkGridInfo

View File

@@ -97,6 +97,27 @@ public class DeviceUploadLogResponse
[JsonIgnore]
public string WorkGridInfo { get; set; }
/// <summary>
/// 状态描述
/// </summary>
public string ResultDescription
{
get
{
if (IsError)
{
return Sync ? "已上传" : "/";
}
if (NeedUpload)
{
return Sync ? "已上传" : "待上传";
}
return "/";
}
}
}
public class WorkGridInfo2
@@ -187,4 +208,25 @@ public class DeviceUploadLogUserResponse
[JsonIgnore]
public string WorkGridInfo { get; set; }
/// <summary>
/// 状态描述
/// </summary>
public string ResultDescription
{
get
{
if (IsError)
{
return Sync ? "已上传" : "/";
}
if (NeedUpload)
{
return Sync ? "已上传" : "待上传";
}
return "/";
}
}
}