Modified the `ReferenceType` enum in `Constants.vb` to change the values for `Sender` and `Receiver`. Removed the `ReferenceType` and `StatusName` properties from `EnvelopeHistory.cs`. Updated status code comments in `HistoryController.cs`, adding new codes for `EnvelopeRejected` and `EnvelopeWithdrawn`, and adjusted parameter descriptions to align with the new enum values.
152 lines
3.8 KiB
VB.net
152 lines
3.8 KiB
VB.net
Public 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
|
|
End Enum
|
|
|
|
Public Class Status
|
|
Public Shared ReadOnly NonHist As IReadOnlyList(Of EnvelopeStatus) = New List(Of EnvelopeStatus) From {
|
|
EnvelopeStatus.Invalid,
|
|
EnvelopeStatus.EnvelopeSaved,
|
|
EnvelopeStatus.EnvelopeSent,
|
|
EnvelopeStatus.EnvelopePartlySigned
|
|
}
|
|
|
|
Public Shared ReadOnly RelatedToFormApp As IReadOnlyList(Of EnvelopeStatus) = New List(Of EnvelopeStatus) From {
|
|
EnvelopeStatus.EnvelopeCreated,
|
|
EnvelopeStatus.DocumentMod_Rotation
|
|
}
|
|
End Class
|
|
|
|
'TODO: standardize in xwiki
|
|
Public Enum ReferenceType
|
|
Sender = 1
|
|
Receiver
|
|
System
|
|
Unknown
|
|
End Enum
|
|
|
|
Public Enum ElementStatus
|
|
Created = 0
|
|
End Enum
|
|
|
|
Public Enum DocumentStatus
|
|
Created = 0
|
|
Signed = 1
|
|
End Enum
|
|
|
|
Public Enum ReceiverStatus
|
|
Unsigned = 0
|
|
Signed = 1
|
|
End Enum
|
|
#End Region
|
|
|
|
#Region "Type Fields"
|
|
Public Enum ElementType
|
|
Signature = 1
|
|
End Enum
|
|
|
|
Public Enum ContractType
|
|
Contract = 1
|
|
ReadAndSign = 2
|
|
End Enum
|
|
|
|
Public Enum ColorType
|
|
ReceiverColor1 = 1
|
|
ReceiverColor2 = 2
|
|
ReceiverColor3 = 3
|
|
ReceiverColor4 = 4
|
|
ReceiverColor5 = 5
|
|
ReceiverColor6 = 6
|
|
ReceiverColor7 = 7
|
|
ReceiverColor8 = 8
|
|
ReceiverColor9 = 9
|
|
ReceiverColor10 = 10
|
|
End Enum
|
|
|
|
Public Enum CertificationType
|
|
AdvancedElectronicSignature = 1
|
|
'ElectronicSignature = 1
|
|
'QualifiedSignature = 2
|
|
End Enum
|
|
|
|
Public Enum FinalEmailType
|
|
No = 0
|
|
Yes = 1
|
|
YesWithAttachment = 2
|
|
End Enum
|
|
|
|
Public Enum PageOrientation
|
|
Portrait = 0
|
|
Landscape = 1
|
|
End Enum
|
|
|
|
Public Enum EmailTemplateType
|
|
DocumentReceived = 0
|
|
DocumentSigned
|
|
DocumentDeleted
|
|
DocumentCompleted
|
|
DocumentAccessCodeReceived
|
|
DocumentShared
|
|
TotpSecret
|
|
DocumentRejected_ADM
|
|
DocumentRejected_REC
|
|
DocumentRejected_REC_2
|
|
End Enum
|
|
|
|
Public Enum EncodeType
|
|
EnvelopeReceiver
|
|
EnvelopeReceiverReadOnly
|
|
Undefined
|
|
DocumentForwarded
|
|
DocumentShared
|
|
End Enum
|
|
#End Region
|
|
|
|
#Region "Role"
|
|
Public NotInheritable Class ReceiverRole
|
|
Public Const PreAuth As String = "PreAuth"
|
|
Public Const FullyAuth As String = "FullyAuth"
|
|
End Class
|
|
#End Region
|
|
|
|
#Region "Constants"
|
|
|
|
Public Const DATABASE = "DATABASE"
|
|
Public Const LOGCONFIG = "LOGCONFIG"
|
|
Public Const GDPICTURE = "GDPICTURE"
|
|
Public Const PDF_BURNER_PARAMS = "PDFBurnerParams"
|
|
|
|
Public Const GREEN_300 = "#bbf7d0"
|
|
Public Const RED_300 = "#fecaca"
|
|
Public Const ORANGE_300 = "#fed7aa"
|
|
#End Region
|
|
End Class |