Add an option to the admin fax menu to lock papers such that they can't be edited by cybersun pens (#28972)

* Add option to adminfax for locking papers.

* Replace dummy control with margin
This commit is contained in:
dffdff2423
2024-07-10 00:28:36 -05:00
committed by GitHub
parent 8d48096c57
commit e8b3042a38
12 changed files with 40 additions and 11 deletions

View File

@@ -150,11 +150,14 @@ public sealed partial class FaxPrintout
[DataField("stampedBy")]
public List<StampDisplayInfo> StampedBy { get; private set; } = new();
[DataField]
public bool Locked { get; private set; }
private FaxPrintout()
{
}
public FaxPrintout(string content, string name, string? label = null, string? prototypeId = null, string? stampState = null, List<StampDisplayInfo>? stampedBy = null)
public FaxPrintout(string content, string name, string? label = null, string? prototypeId = null, string? stampState = null, List<StampDisplayInfo>? stampedBy = null, bool locked = false)
{
Content = content;
Name = name;
@@ -162,5 +165,6 @@ public sealed partial class FaxPrintout
PrototypeId = prototypeId ?? "";
StampState = stampState;
StampedBy = stampedBy ?? new List<StampDisplayInfo>();
Locked = locked;
}
}