胶料快检添加离线模式
This commit is contained in:
@@ -23,10 +23,16 @@ public class RubberQuickTestRecordListRow
|
||||
public string SyncStatusDisplay => SyncStatus switch
|
||||
{
|
||||
"Synced" => "已同步",
|
||||
"Failed" => "失败",
|
||||
_ => "待同步"
|
||||
"Failed" => "同步失败",
|
||||
_ => "未同步"
|
||||
};
|
||||
|
||||
/// <summary>仅本地同步失败记录可删除</summary>
|
||||
public bool CanDelete => SyncStatus == "Failed" && !string.IsNullOrWhiteSpace(LocalId);
|
||||
/// <summary>本地未同步记录可删除</summary>
|
||||
public bool CanDelete => SyncStatus != "Synced" && !string.IsNullOrWhiteSpace(LocalId);
|
||||
|
||||
/// <summary>本地未同步记录可手动同步</summary>
|
||||
public bool CanSync => SyncStatus != "Synced" && !string.IsNullOrWhiteSpace(LocalId);
|
||||
|
||||
/// <summary>本地未同步记录可编辑</summary>
|
||||
public bool CanEdit => CanSync;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user