DMS Layout mit Fehlern
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m15s
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m15s
This commit is contained in:
20
Models/UI/DocumentModels.cs
Normal file
20
Models/UI/DocumentModels.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace Pldpro.Web.UI.Models;
|
||||
|
||||
public enum DocumentStatus { Eingegangen, Freigegeben, Bezahlt }
|
||||
|
||||
public class DocumentListItem
|
||||
{
|
||||
public string Bucket { get; set; } = string.Empty;
|
||||
public string Key { get; set; } = string.Empty; // z.B. "rechnungen/2026/INV-123.pdf"
|
||||
public string FileName => Key.Split('/', StringSplitOptions.RemoveEmptyEntries).LastOrDefault() ?? Key;
|
||||
public long? Size { get; set; }
|
||||
public DateTime? LastModified { get; set; }
|
||||
public DocumentStatus Status { get; set; } = DocumentStatus.Eingegangen; // (UI-only)
|
||||
public string PathPrefix => Key.Contains('/') ? string.Join('/', Key.Split('/').SkipLast(1)) : string.Empty;
|
||||
}
|
||||
|
||||
public sealed class DocumentDetail : DocumentListItem
|
||||
{
|
||||
// Platzhalter für spätere Rechnungsfelder
|
||||
public string? Notes { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user