51 public string?
Role {
get;
set; }
61 public override async Task
Open()
64 ViewContractNavigationArgs Args =
new(this.
Contract,
false);
75 StringBuilder Result =
new();
83 if (this.identity is
null)
93 return Result.ToString();
109 if (this.identity is
null && !
string.IsNullOrEmpty(this.
IdentityXml))
111 XmlDocument Doc =
new()
113 PreserveWhitespace =
true
120 return this.identity;
125 this.identity = value;
128 this.IdentityXml =
null;
131 StringBuilder Xml =
new();
132 value.
Serialize(Xml,
true,
true,
true,
true,
true,
true,
true);
133 this.IdentityXml = Xml.ToString();
143 if (this.identity is
null && !
string.IsNullOrEmpty(this.
LegalId))
152 new KeyValuePair<string, object?>(
"ContractId", this.
ContractId),
153 new KeyValuePair<string, object?>(
"LegalId", this.
LegalId),
154 new KeyValuePair<string, object?>(
"Role", this.
Role),
161 if (Identity?.Attachments is not
null)
XMPP Protocol Properties.
const string Jid
Jabber ID
A set of never changing property constants and helpful values.
A strongly-typed resource class, for looking up localized strings, etc.
static string UserSignedAs
Looks up a localized string similar to {0} signed as {1}..
static string ContractSignatureReceived
Looks up a localized string similar to Contract signature received.
Abstract base class of Contract notification events.
string? ContractId
Contract ID.
async Task< Contract?> GetContract()
Gets a parsed contract.
Notification event for when a contract has been signed.
LegalIdentity? Identity
Gets a parsed identity.
override async Task Open()
Opens the event.
string? IdentityXml
XML of identity.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
override async Task< string > GetDescription()
Gets a descriptive text for the category of event.
Contract? Contract
Contract that was signed.
string? LegalId
Legal ID signing the contract.
ContractSignedNotificationEvent(Contract Contract, ContractSignedEventArgs e)
Notification event for when a contract has been signed.
ContractSignedNotificationEvent()
Notification event for when a contract has been signed.
Base class that references services in the app.
static ILogService LogService
Log service.
static INavigationService NavigationService
The navigation service for navigating between pages.
static IReportingStringLocalizer Localizer
Localization service
static IXmppService XmppService
The XMPP service for XMPP communication.
The data model for a contract.
static async Task< string?> GetCategory(Contract Contract)
Gets the category of a contract
A page that displays a specific contract.
Contains a reference to an attachment assigned to a legal object.
Contains the definition of a contract
Event arguments for contract signature events
Contract Contract
Contract that received a signature.
string Role
Role the legal identity has signed.
string LegalId
ID of legal identity signing the contract.
void Serialize(StringBuilder Xml, bool IncludeNamespace, bool IncludeIdAttribute, bool IncludeClientSignature, bool IncludeAttachments, bool IncludeStatus, bool IncludeServerSignature, bool IncludeAttachmentReferences)
Serializes the identity to XML
static LegalIdentity Parse(string Xml)
Parses an identity from its XML representation
Attachment[] Attachments
Attachments assigned to the legal identity.
Task GoToAsync(string Route)
Navigates to the specified route and pushes the page onto the navigation stack.
BackMethod
Navigation Back Method