胶料快检添加离线模式

This commit is contained in:
2026-06-30 11:28:04 +08:00
parent efcd73a565
commit 840e68a450
19 changed files with 1053 additions and 343 deletions

View File

@@ -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;
}