184 lines
4.6 KiB
C#
184 lines
4.6 KiB
C#
#if NETFRAMEWORK
|
|
using System.Collections.Generic;
|
|
#endif
|
|
|
|
namespace EnvelopeGenerator.Domain
|
|
{
|
|
public static class Constants
|
|
{
|
|
#region Status Fields
|
|
|
|
// http://wiki.dd/xwiki13/bin/view/Anwendungen/Produkt-Handbuch/Sonstiges/SignFlow/Envelope%20Status/
|
|
public enum EnvelopeStatus
|
|
{
|
|
Invalid = 0,
|
|
EnvelopeCreated = 1001,
|
|
EnvelopeSaved = 1002,
|
|
EnvelopeQueued = 1003,
|
|
EnvelopeSent = 1004, // Nicht verwendet
|
|
EnvelopePartlySigned = 1005,
|
|
EnvelopeCompletelySigned = 1006,
|
|
EnvelopeReportCreated = 1007,
|
|
EnvelopeArchived = 1008,
|
|
EnvelopeDeleted = 1009,
|
|
EnvelopeRejected = 10007,
|
|
EnvelopeWithdrawn = 10009,
|
|
AccessCodeRequested = 2001,
|
|
AccessCodeCorrect = 2002,
|
|
AccessCodeIncorrect = 2003,
|
|
DocumentOpened = 2004,
|
|
DocumentSigned = 2005,
|
|
DocumentForwarded = 2006,
|
|
DocumentRejected = 2007,
|
|
EnvelopeShared = 2008,
|
|
EnvelopeViewed = 2009,
|
|
MessageInvitationSent = 3001, // Wird von Trigger verwendet
|
|
MessageAccessCodeSent = 3002,
|
|
MessageConfirmationSent = 3003,
|
|
MessageDeletionSent = 3004,
|
|
MessageCompletionSent = 3005,
|
|
DocumentMod_Rotation = 4001
|
|
}
|
|
|
|
public static class Status
|
|
{
|
|
public static readonly IReadOnlyList<EnvelopeStatus> NonHist = new List<EnvelopeStatus>
|
|
{
|
|
EnvelopeStatus.Invalid,
|
|
EnvelopeStatus.EnvelopeSaved,
|
|
EnvelopeStatus.EnvelopeSent,
|
|
EnvelopeStatus.EnvelopePartlySigned
|
|
};
|
|
|
|
public static readonly IReadOnlyList<EnvelopeStatus> RelatedToFormApp = new List<EnvelopeStatus>
|
|
{
|
|
EnvelopeStatus.EnvelopeCreated,
|
|
EnvelopeStatus.DocumentMod_Rotation
|
|
};
|
|
}
|
|
|
|
// TODO: standardize in xwiki
|
|
public enum ReferenceType
|
|
{
|
|
Sender = 1,
|
|
Receiver,
|
|
System,
|
|
Unknown
|
|
}
|
|
|
|
public enum ElementStatus
|
|
{
|
|
Created = 0
|
|
}
|
|
|
|
public enum DocumentStatus
|
|
{
|
|
Created = 0,
|
|
Signed = 1
|
|
}
|
|
|
|
public enum ReceiverStatus
|
|
{
|
|
Unsigned = 0,
|
|
Signed = 1
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Type Fields
|
|
|
|
public enum ElementType
|
|
{
|
|
Signature = 1
|
|
}
|
|
|
|
public enum ContractType
|
|
{
|
|
Contract = 1,
|
|
ReadAndSign = 2
|
|
}
|
|
|
|
public enum ColorType
|
|
{
|
|
ReceiverColor1 = 1,
|
|
ReceiverColor2 = 2,
|
|
ReceiverColor3 = 3,
|
|
ReceiverColor4 = 4,
|
|
ReceiverColor5 = 5,
|
|
ReceiverColor6 = 6,
|
|
ReceiverColor7 = 7,
|
|
ReceiverColor8 = 8,
|
|
ReceiverColor9 = 9,
|
|
ReceiverColor10 = 10
|
|
}
|
|
|
|
public enum CertificationType
|
|
{
|
|
AdvancedElectronicSignature = 1
|
|
// ElectronicSignature = 1
|
|
// QualifiedSignature = 2
|
|
}
|
|
|
|
public enum FinalEmailType
|
|
{
|
|
No = 0,
|
|
Yes = 1,
|
|
YesWithAttachment = 2
|
|
}
|
|
|
|
public enum PageOrientation
|
|
{
|
|
Portrait = 0,
|
|
Landscape = 1
|
|
}
|
|
|
|
public enum EmailTemplateType
|
|
{
|
|
DocumentReceived = 0,
|
|
DocumentSigned,
|
|
DocumentDeleted,
|
|
DocumentCompleted,
|
|
DocumentAccessCodeReceived,
|
|
DocumentShared,
|
|
TotpSecret,
|
|
DocumentRejected_ADM,
|
|
DocumentRejected_REC,
|
|
DocumentRejected_REC_2
|
|
}
|
|
|
|
public enum EncodeType
|
|
{
|
|
EnvelopeReceiver,
|
|
EnvelopeReceiverReadOnly,
|
|
Undefined,
|
|
DocumentForwarded,
|
|
DocumentShared
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Role
|
|
|
|
public static class ReceiverRole
|
|
{
|
|
public const string PreAuth = "PreAuth";
|
|
public const string FullyAuth = "FullyAuth";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Constants
|
|
|
|
public const string DATABASE = "DATABASE";
|
|
public const string LOGCONFIG = "LOGCONFIG";
|
|
public const string GDPICTURE = "GDPICTURE";
|
|
public const string PDF_BURNER_PARAMS = "PDFBurnerParams";
|
|
|
|
public const string GREEN_300 = "#bbf7d0";
|
|
public const string RED_300 = "#fecaca";
|
|
public const string ORANGE_300 = "#fed7aa";
|
|
|
|
#endregion
|
|
}
|
|
}
|