refactor(.Form): Aktualisiert, um die Domain zu verwenden
This commit is contained in:
parent
31c4a8a20f
commit
a8a768d7d6
@ -1,152 +0,0 @@
|
|||||||
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
|
|
||||||
@ -1,4 +1,6 @@
|
|||||||
Public Class DocumentStatus
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
|
Public Class DocumentStatus
|
||||||
|
|
||||||
Public Property Id As Integer
|
Public Property Id As Integer
|
||||||
Public Property EnvelopeId As Integer
|
Public Property EnvelopeId As Integer
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
Public Class ElementStatus
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
|
Public Class ElementStatus
|
||||||
|
|
||||||
Public Property Id As Integer
|
Public Property Id As Integer
|
||||||
Public Property EnvelopeId As Integer
|
Public Property EnvelopeId As Integer
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
|
Imports EnvelopeGenerator.Domain
|
||||||
Public Class EmailData
|
Public Class EmailData
|
||||||
Public Property EmailAdress As String = ""
|
Public Property EmailAdress As String = ""
|
||||||
Public Property EmailSubject As String = ""
|
Public Property EmailSubject As String = ""
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
Public Class Envelope
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
|
Public Class Envelope
|
||||||
Public Property Id As Integer = 0
|
Public Property Id As Integer = 0
|
||||||
Public Property UserId As Integer
|
Public Property UserId As Integer
|
||||||
Public Property Title As String = ""
|
Public Property Title As String = ""
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
Public Class EnvelopeDocumentElement
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
|
Public Class EnvelopeDocumentElement
|
||||||
Public Property Id As Integer = -1
|
Public Property Id As Integer = -1
|
||||||
Public Property X As Double
|
Public Property X As Double
|
||||||
Public Property Y As Double
|
Public Property Y As Double
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
Public Class EnvelopeHistoryEntry
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
|
Public Class EnvelopeHistoryEntry
|
||||||
Public Property EnvelopeId As Integer
|
Public Property EnvelopeId As Integer
|
||||||
Public Property UserReference As String
|
Public Property UserReference As String
|
||||||
Public Property Status As Constants.EnvelopeStatus
|
Public Property Status As Constants.EnvelopeStatus
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
Imports System.Drawing
|
Imports System.Drawing
|
||||||
Imports System.Runtime.Serialization
|
|
||||||
Imports DevExpress.Utils.Svg
|
Imports DevExpress.Utils.Svg
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
Imports Newtonsoft.Json
|
Imports Newtonsoft.Json
|
||||||
|
|
||||||
Public Class EnvelopeReceiver
|
Public Class EnvelopeReceiver
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
Public Class EnvelopeType
|
Imports EnvelopeGenerator.Domain
|
||||||
|
Public Class EnvelopeType
|
||||||
|
|
||||||
Public Property Id As Integer = 0
|
Public Property Id As Integer = 0
|
||||||
Public Property Title As String
|
Public Property Title As String
|
||||||
|
|||||||
@ -274,7 +274,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Config.vb" />
|
<Compile Include="Config.vb" />
|
||||||
<Compile Include="Constants.vb" />
|
|
||||||
<Compile Include="Entities\DbConfig.vb" />
|
<Compile Include="Entities\DbConfig.vb" />
|
||||||
<Compile Include="Entities\ElementMetadata.vb" />
|
<Compile Include="Entities\ElementMetadata.vb" />
|
||||||
<Compile Include="Entities\DocumentStatus.vb" />
|
<Compile Include="Entities\DocumentStatus.vb" />
|
||||||
@ -443,7 +442,12 @@
|
|||||||
<EmbeddedResource Include="Templates\document_access_code_de.html" />
|
<EmbeddedResource Include="Templates\document_access_code_de.html" />
|
||||||
<EmbeddedResource Include="Templates\email_de.html" />
|
<EmbeddedResource Include="Templates\email_de.html" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\EnvelopeGenerator.Domain\EnvelopeGenerator.Domain.csproj">
|
||||||
|
<Project>{4f32a98d-e6f0-4a09-bd97-1cf26107e837}</Project>
|
||||||
|
<Name>EnvelopeGenerator.Domain</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Imports System.IO
|
|||||||
Imports System.Security.Cryptography
|
Imports System.Security.Cryptography
|
||||||
Imports System.Text
|
Imports System.Text
|
||||||
Imports DevExpress.Utils.Svg
|
Imports DevExpress.Utils.Svg
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class Helpers
|
Public Class Helpers
|
||||||
Private Shared key As String = "$xzBvyPETUS&amm8)D8x#)f;4%;?[BPd" ' Passwort-Schlüssel (16, 24, or 32 bytes)
|
Private Shared key As String = "$xzBvyPETUS&amm8)D8x#)f;4%;?[BPd" ' Passwort-Schlüssel (16, 24, or 32 bytes)
|
||||||
|
|||||||
@ -1,16 +1,9 @@
|
|||||||
Imports DigitalData.Modules.Database
|
Imports DigitalData.Modules.Database
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports GdPicture14
|
|
||||||
Imports Quartz
|
Imports Quartz
|
||||||
Imports System.Security.Cryptography
|
Imports System.Security.Cryptography
|
||||||
Imports System.IO
|
|
||||||
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument.FinalizeDocumentExceptions
|
|
||||||
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument
|
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
|
||||||
Imports DevExpress.DataProcessing
|
Imports DevExpress.DataProcessing
|
||||||
Imports System.Data.SqlClient
|
|
||||||
Imports DevExpress.XtraRichEdit.Layout.Engine
|
|
||||||
|
|
||||||
Namespace Jobs
|
Namespace Jobs
|
||||||
Public Class APIEnvelopeJob
|
Public Class APIEnvelopeJob
|
||||||
@ -39,7 +32,7 @@ Namespace Jobs
|
|||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Function Execute(pContext As IJobExecutionContext) As Task Implements IJob.Execute
|
Public Function Execute(pContext As IJobExecutionContext) As Task Implements IJob.Execute
|
||||||
LogConfig = pContext.MergedJobDataMap.Item(Constants.LOGCONFIG)
|
LogConfig = pContext.MergedJobDataMap.Item(Domain.Constants.LOGCONFIG)
|
||||||
Logger = LogConfig.GetLogger()
|
Logger = LogConfig.GetLogger()
|
||||||
myTempFiles = New TempFiles(LogConfig)
|
myTempFiles = New TempFiles(LogConfig)
|
||||||
myTempFiles.Create()
|
myTempFiles.Create()
|
||||||
@ -179,7 +172,7 @@ Namespace Jobs
|
|||||||
ActionService = New ActionService(pState, Database)
|
ActionService = New ActionService(pState, Database)
|
||||||
End Sub
|
End Sub
|
||||||
Private Function GetDatabase(pContext As IJobExecutionContext, pLogConfig As LogConfig) As MSSQLServer
|
Private Function GetDatabase(pContext As IJobExecutionContext, pLogConfig As LogConfig) As MSSQLServer
|
||||||
Dim oConnectionString As String = pContext.MergedJobDataMap.Item(Constants.DATABASE)
|
Dim oConnectionString As String = pContext.MergedJobDataMap.Item(Domain.Constants.DATABASE)
|
||||||
Dim Database = New MSSQLServer(pLogConfig, MSSQLServer.DecryptConnectionString(oConnectionString))
|
Dim Database = New MSSQLServer(pLogConfig, MSSQLServer.DecryptConnectionString(oConnectionString))
|
||||||
|
|
||||||
Return Database
|
Return Database
|
||||||
|
|||||||
@ -7,7 +7,7 @@ Imports System.Security.Cryptography
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument.FinalizeDocumentExceptions
|
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument.FinalizeDocumentExceptions
|
||||||
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument
|
Imports EnvelopeGenerator.Common.Jobs.FinalizeDocument
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
Imports DevExpress.DataProcessing
|
Imports DevExpress.DataProcessing
|
||||||
Imports System.Data.SqlClient
|
Imports System.Data.SqlClient
|
||||||
|
|
||||||
@ -47,8 +47,8 @@ Namespace Jobs
|
|||||||
End Class
|
End Class
|
||||||
|
|
||||||
Public Function Execute(pContext As IJobExecutionContext) As Task Implements IJob.Execute
|
Public Function Execute(pContext As IJobExecutionContext) As Task Implements IJob.Execute
|
||||||
Dim oGdPictureKey As String = pContext.MergedJobDataMap.Item(Constants.GDPICTURE)
|
Dim oGdPictureKey As String = pContext.MergedJobDataMap.Item(Domain.Constants.GDPICTURE)
|
||||||
LogConfig = pContext.MergedJobDataMap.Item(Constants.LOGCONFIG)
|
LogConfig = pContext.MergedJobDataMap.Item(Domain.Constants.LOGCONFIG)
|
||||||
Logger = LogConfig.GetLogger()
|
Logger = LogConfig.GetLogger()
|
||||||
myTempFiles = New TempFiles(LogConfig)
|
myTempFiles = New TempFiles(LogConfig)
|
||||||
myTempFiles.Create()
|
myTempFiles.Create()
|
||||||
@ -74,7 +74,7 @@ Namespace Jobs
|
|||||||
InitializeServices(oState)
|
InitializeServices(oState)
|
||||||
|
|
||||||
Logger.Debug("Loading PDFBurner..")
|
Logger.Debug("Loading PDFBurner..")
|
||||||
Dim pdfBurnerParams As PDFBurnerParams = pContext.MergedJobDataMap.Item(Constants.PDF_BURNER_PARAMS)
|
Dim pdfBurnerParams As PDFBurnerParams = pContext.MergedJobDataMap.Item(PDF_BURNER_PARAMS)
|
||||||
PDFBurner = New PDFBurner(LogConfig, oGdPictureKey, pdfBurnerParams)
|
PDFBurner = New PDFBurner(LogConfig, oGdPictureKey, pdfBurnerParams)
|
||||||
|
|
||||||
Logger.Debug("Loading PDFMerger..")
|
Logger.Debug("Loading PDFMerger..")
|
||||||
@ -90,7 +90,7 @@ Namespace Jobs
|
|||||||
|
|
||||||
Logger.Debug("ExportPath: [{0}]", Config.ExportPath)
|
Logger.Debug("ExportPath: [{0}]", Config.ExportPath)
|
||||||
|
|
||||||
Dim oCompleteStatus As Integer = Constants.EnvelopeStatus.EnvelopeCompletelySigned
|
Dim oCompleteStatus As Integer = EnvelopeStatus.EnvelopeCompletelySigned
|
||||||
Dim oSql = $"SELECT * FROM TBSIG_ENVELOPE WHERE STATUS = {oCompleteStatus} AND DATEDIFF(minute, CHANGED_WHEN, GETDATE()) >= {CompleteWaitTime} ORDER BY GUID"
|
Dim oSql = $"SELECT * FROM TBSIG_ENVELOPE WHERE STATUS = {oCompleteStatus} AND DATEDIFF(minute, CHANGED_WHEN, GETDATE()) >= {CompleteWaitTime} ORDER BY GUID"
|
||||||
Dim oTable = Database.GetDatatable(oSql)
|
Dim oTable = Database.GetDatatable(oSql)
|
||||||
|
|
||||||
@ -436,7 +436,7 @@ Namespace Jobs
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function GetDatabase(pContext As IJobExecutionContext, pLogConfig As LogConfig) As MSSQLServer
|
Private Function GetDatabase(pContext As IJobExecutionContext, pLogConfig As LogConfig) As MSSQLServer
|
||||||
Dim oConnectionString As String = pContext.MergedJobDataMap.Item(Constants.DATABASE)
|
Dim oConnectionString As String = pContext.MergedJobDataMap.Item(Domain.Constants.DATABASE)
|
||||||
Dim Database = New MSSQLServer(pLogConfig, MSSQLServer.DecryptConnectionString(oConnectionString))
|
Dim Database = New MSSQLServer(pLogConfig, MSSQLServer.DecryptConnectionString(oConnectionString))
|
||||||
|
|
||||||
Return Database
|
Return Database
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
Imports System.Windows.Forms.VisualStyles.VisualStyleElement
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
Public Class ReportItem
|
Public Class ReportItem
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Imports System.Data
|
Imports System.Data.SqlClient
|
||||||
Imports System.Data.SqlClient
|
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
Public Class ElementModel
|
Public Class ElementModel
|
||||||
Inherits BaseModel
|
Inherits BaseModel
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class EmailTemplateModel
|
Public Class EmailTemplateModel
|
||||||
Inherits BaseModel
|
Inherits BaseModel
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
Imports System.Web.UI.WebControls
|
Imports System.Web.UI.WebControls
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class EnvelopeModel
|
Public Class EnvelopeModel
|
||||||
Inherits BaseModel
|
Inherits BaseModel
|
||||||
@ -33,10 +33,10 @@ Public Class EnvelopeModel
|
|||||||
.Message = pRow.ItemEx("MESSAGE", ""),
|
.Message = pRow.ItemEx("MESSAGE", ""),
|
||||||
.UserId = pRow.ItemEx("USER_ID", 0),
|
.UserId = pRow.ItemEx("USER_ID", 0),
|
||||||
.Language = pRow.ItemEx("LANGUAGE", "de-DE"),
|
.Language = pRow.ItemEx("LANGUAGE", "de-DE"),
|
||||||
.Status = ObjectEx.ToEnum(Of Constants.EnvelopeStatus)(pRow.ItemEx("STATUS", Constants.EnvelopeStatus.EnvelopeCreated.ToString())),
|
.Status = ObjectEx.ToEnum(Of EnvelopeStatus)(pRow.ItemEx("STATUS", EnvelopeStatus.EnvelopeCreated.ToString())),
|
||||||
.AddedWhen = pRow.Item("ADDED_WHEN"),
|
.AddedWhen = pRow.Item("ADDED_WHEN"),
|
||||||
.ChangedWhen = pRow.ItemEx(Of Date)("CHANGED_WHEN", Nothing),
|
.ChangedWhen = pRow.ItemEx(Of Date)("CHANGED_WHEN", Nothing),
|
||||||
.CertificationType = ObjectEx.ToEnum(Of Constants.CertificationType)(pRow.ItemEx("CERTIFICATION_TYPE", Constants.CertificationType.AdvancedElectronicSignature.ToString())),
|
.CertificationType = ObjectEx.ToEnum(Of CertificationType)(pRow.ItemEx("CERTIFICATION_TYPE", CertificationType.AdvancedElectronicSignature.ToString())),
|
||||||
.User = New User(),
|
.User = New User(),
|
||||||
.ExpiresWhen = pRow.ItemEx(Of Date)("EXPIRES_WHEN", Nothing),
|
.ExpiresWhen = pRow.ItemEx(Of Date)("EXPIRES_WHEN", Nothing),
|
||||||
.ExpiresWarningWhen = pRow.ItemEx(Of Date)("EXPIRES_WARNING_WHEN", Nothing),
|
.ExpiresWarningWhen = pRow.ItemEx(Of Date)("EXPIRES_WARNING_WHEN", Nothing),
|
||||||
@ -46,8 +46,8 @@ Public Class EnvelopeModel
|
|||||||
.FirstReminderDays = pRow.ItemEx("FIRST_REMINDER_DAYS", 0),
|
.FirstReminderDays = pRow.ItemEx("FIRST_REMINDER_DAYS", 0),
|
||||||
.ReminderIntervalDays = pRow.ItemEx("REMINDER_INTERVAL_DAYS", 0),
|
.ReminderIntervalDays = pRow.ItemEx("REMINDER_INTERVAL_DAYS", 0),
|
||||||
.UseAccessCode = pRow.ItemEx("USE_ACCESS_CODE", False),
|
.UseAccessCode = pRow.ItemEx("USE_ACCESS_CODE", False),
|
||||||
.FinalEmailToCreator = ObjectEx.ToEnum(Of Constants.FinalEmailType)(pRow.ItemEx("FINAL_EMAIL_TO_CREATOR", Constants.FinalEmailType.No.ToString())),
|
.FinalEmailToCreator = ObjectEx.ToEnum(Of FinalEmailType)(pRow.ItemEx("FINAL_EMAIL_TO_CREATOR", FinalEmailType.No.ToString())),
|
||||||
.FinalEmailToReceivers = ObjectEx.ToEnum(Of Constants.FinalEmailType)(pRow.ItemEx("FINAL_EMAIL_TO_RECEIVERS", Constants.FinalEmailType.No.ToString())),
|
.FinalEmailToReceivers = ObjectEx.ToEnum(Of FinalEmailType)(pRow.ItemEx("FINAL_EMAIL_TO_RECEIVERS", FinalEmailType.No.ToString())),
|
||||||
.TFA_Enabled = pRow.ItemEx("TFA_Enabled", False)
|
.TFA_Enabled = pRow.ItemEx("TFA_Enabled", False)
|
||||||
}
|
}
|
||||||
Dim oDOC_RESULT = pRow.Item("DOC_RESULT")
|
Dim oDOC_RESULT = pRow.Item("DOC_RESULT")
|
||||||
@ -148,7 +148,7 @@ Public Class EnvelopeModel
|
|||||||
Dim oSql = $"INSERT INTO [dbo].[TBSIG_ENVELOPE] (MESSAGE, ENVELOPE_UUID, STATUS, USER_ID)
|
Dim oSql = $"INSERT INTO [dbo].[TBSIG_ENVELOPE] (MESSAGE, ENVELOPE_UUID, STATUS, USER_ID)
|
||||||
VALUES('',
|
VALUES('',
|
||||||
'{pEnvelope.Uuid}',
|
'{pEnvelope.Uuid}',
|
||||||
'{CInt([Enum].Parse(GetType(EnvelopeStatus), Constants.EnvelopeStatus.EnvelopeCreated))}',
|
'{CInt([Enum].Parse(GetType(EnvelopeStatus), EnvelopeStatus.EnvelopeCreated))}',
|
||||||
'{pEnvelope.UserId}')"
|
'{pEnvelope.UserId}')"
|
||||||
Dim oCommand As New SqlCommand(oSql)
|
Dim oCommand As New SqlCommand(oSql)
|
||||||
'oCommand.Parameters.Add("MESSAGE", SqlDbType.NVarChar).Value = String.Empty
|
'oCommand.Parameters.Add("MESSAGE", SqlDbType.NVarChar).Value = String.Empty
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class EnvelopeTypeModel
|
Public Class EnvelopeTypeModel
|
||||||
Inherits BaseModel
|
Inherits BaseModel
|
||||||
|
|||||||
@ -27,7 +27,7 @@ Public Class HistoryModel
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function HasReceiverSigned(pEnvelopeId As Integer, pReceiverId As Integer) As Boolean
|
Public Function HasReceiverSigned(pEnvelopeId As Integer, pReceiverId As Integer) As Boolean
|
||||||
Dim oEnvelopeSigned As Integer = Constants.EnvelopeStatus.DocumentSigned
|
Dim oEnvelopeSigned As Integer = Domain.Constants.EnvelopeStatus.DocumentSigned
|
||||||
Dim oSql = $"SELECT COUNT(T.GUID)
|
Dim oSql = $"SELECT COUNT(T.GUID)
|
||||||
FROM TBSIG_ENVELOPE_HISTORY T
|
FROM TBSIG_ENVELOPE_HISTORY T
|
||||||
JOIN TBSIG_RECEIVER T2 ON T.USER_REFERENCE = T2.EMAIL_ADDRESS
|
JOIN TBSIG_RECEIVER T2 ON T.USER_REFERENCE = T2.EMAIL_ADDRESS
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
Imports System.Net.Mail
|
Imports System.Net.Mail
|
||||||
Imports DevExpress.DataProcessing
|
Imports DevExpress.DataProcessing
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class ReceiverModel
|
Public Class ReceiverModel
|
||||||
Inherits BaseModel
|
Inherits BaseModel
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Imports DevExpress.DataAccess.Native.Web
|
Imports DevExpress.DataAccess.Native.Web
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
Imports EnvelopeGenerator.Common.My.Resources
|
Imports EnvelopeGenerator.Common.My.Resources
|
||||||
Imports DigitalData.Modules.Database
|
Imports DigitalData.Modules.Database
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
@ -26,7 +26,7 @@ Public Class ActionService
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function SendEnvelope(pEnvelope As Envelope) As Boolean
|
Public Function SendEnvelope(pEnvelope As Envelope) As Boolean
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.EnvelopeQueued, pEnvelope.User.Email) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.EnvelopeQueued, pEnvelope.User.Email) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -41,13 +41,13 @@ Public Class ActionService
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
Public Function SetStatusDocumentRotationChanged(pEnvelope As Envelope) As Boolean
|
Public Function SetStatusDocumentRotationChanged(pEnvelope As Envelope) As Boolean
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.DocumentMod_Rotation, pEnvelope.User.Email) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.DocumentMod_Rotation, pEnvelope.User.Email) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
Public Function Resend_Receiver(pEnvelope As Envelope, pmail As String) As Boolean
|
Public Function Resend_Receiver(pEnvelope As Envelope, pmail As String) As Boolean
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.EnvelopeQueued, pEnvelope.User.Email) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.EnvelopeQueued, pEnvelope.User.Email) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim oSendResult As Boolean = False
|
Dim oSendResult As Boolean = False
|
||||||
@ -64,9 +64,9 @@ Public Class ActionService
|
|||||||
Public Function DeleteEnvelope(pEnvelope As Envelope, pReason As String) As Boolean
|
Public Function DeleteEnvelope(pEnvelope As Envelope, pReason As String) As Boolean
|
||||||
Dim oStatus As EnvelopeStatus
|
Dim oStatus As EnvelopeStatus
|
||||||
If pEnvelope.IsAlreadySent Then
|
If pEnvelope.IsAlreadySent Then
|
||||||
oStatus = Constants.EnvelopeStatus.EnvelopeWithdrawn
|
oStatus = EnvelopeStatus.EnvelopeWithdrawn
|
||||||
Else
|
Else
|
||||||
oStatus = Constants.EnvelopeStatus.EnvelopeDeleted
|
oStatus = EnvelopeStatus.EnvelopeDeleted
|
||||||
End If
|
End If
|
||||||
Dim oUpd = $"UPDATE TBSIG_ENVELOPE SET REJECTION_REASON = '{pReason}' WHERE GUID = {pEnvelope.Id}"
|
Dim oUpd = $"UPDATE TBSIG_ENVELOPE SET REJECTION_REASON = '{pReason}' WHERE GUID = {pEnvelope.Id}"
|
||||||
myDatabase.ExecuteNonQuery(oUpd)
|
myDatabase.ExecuteNonQuery(oUpd)
|
||||||
@ -97,7 +97,7 @@ Public Class ActionService
|
|||||||
Public Function OpenEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function OpenEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Dim oUserReference = pReceiver.Email
|
Dim oUserReference = pReceiver.Email
|
||||||
|
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.DocumentOpened, oUserReference) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.DocumentOpened, oUserReference) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ Public Class ActionService
|
|||||||
Public Function RequestAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function RequestAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Dim oUserReference = pReceiver.Email
|
Dim oUserReference = pReceiver.Email
|
||||||
|
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.AccessCodeRequested, oUserReference) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.AccessCodeRequested, oUserReference) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ Public Class ActionService
|
|||||||
Public Function EnterCorrectAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function EnterCorrectAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Dim oUserReference = pReceiver.Email
|
Dim oUserReference = pReceiver.Email
|
||||||
|
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.AccessCodeCorrect, oUserReference) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.AccessCodeCorrect, oUserReference) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ Public Class ActionService
|
|||||||
Public Function EnterIncorrectAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function EnterIncorrectAccessCode(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Dim oUserReference = pReceiver.Email
|
Dim oUserReference = pReceiver.Email
|
||||||
|
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.AccessCodeIncorrect, oUserReference) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.AccessCodeIncorrect, oUserReference) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ Public Class ActionService
|
|||||||
Public Function SignEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function SignEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Dim oUserReference = pReceiver.Email
|
Dim oUserReference = pReceiver.Email
|
||||||
|
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.DocumentSigned, oUserReference) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.DocumentSigned, oUserReference) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ Public Class ActionService
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function FinalizeEnvelope(pEnvelope As Envelope) As Boolean
|
Public Function FinalizeEnvelope(pEnvelope As Envelope) As Boolean
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.EnvelopeArchived, "System") = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.EnvelopeArchived, "System") = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ Public Class ActionService
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function CompleteEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean ', pAttachment As String
|
Public Function CompleteEnvelope(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean ', pAttachment As String
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.MessageCompletionSent, pReceiver.Email) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.MessageCompletionSent, pReceiver.Email) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ Public Class ActionService
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function CompleteEnvelope(pEnvelope As Envelope) As Boolean ', pAttachment As String
|
Public Function CompleteEnvelope(pEnvelope As Envelope) As Boolean ', pAttachment As String
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.MessageCompletionSent, pEnvelope.User.Email) = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.MessageCompletionSent, pEnvelope.User.Email) = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ Public Class ActionService
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function CreateReport(pEnvelope As Envelope) As Boolean
|
Public Function CreateReport(pEnvelope As Envelope) As Boolean
|
||||||
If HistoryService.SetEnvelopeStatus(pEnvelope, Constants.EnvelopeStatus.EnvelopeReportCreated, "System") = False Then
|
If HistoryService.SetEnvelopeStatus(pEnvelope, EnvelopeStatus.EnvelopeReportCreated, "System") = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
|
Imports DigitalData.Modules.Logging
|
||||||
Imports DigitalData.Modules.Base
|
|
||||||
Imports DigitalData.Modules.Logging
|
|
||||||
Imports EnvelopeGenerator.Common.My.Resources
|
|
||||||
|
|
||||||
Public Class EmailService
|
Public Class EmailService
|
||||||
Inherits BaseService
|
Inherits BaseService
|
||||||
@ -18,7 +15,7 @@ Public Class EmailService
|
|||||||
|
|
||||||
Public Function SendEnvelopeDeletedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver, pReason As String) As Boolean
|
Public Function SendEnvelopeDeletedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver, pReason As String) As Boolean
|
||||||
Logger.Debug("SendEnvelopeDeletedEmail - Creating email data object...")
|
Logger.Debug("SendEnvelopeDeletedEmail - Creating email data object...")
|
||||||
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageDeletionSent) With
|
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageDeletionSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = "",
|
.SignatureLink = "",
|
||||||
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
||||||
@ -36,7 +33,7 @@ Public Class EmailService
|
|||||||
|
|
||||||
Public Function SendDocumentReceivedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function SendDocumentReceivedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Logger.Debug("Creating email data object.")
|
Logger.Debug("Creating email data object.")
|
||||||
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageInvitationSent) With
|
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageInvitationSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
||||||
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
||||||
@ -56,7 +53,7 @@ Public Class EmailService
|
|||||||
Logger.Debug($"State.DbConfig.SignatureHost: {State.DbConfig.SignatureHost}")
|
Logger.Debug($"State.DbConfig.SignatureHost: {State.DbConfig.SignatureHost}")
|
||||||
Logger.Debug($" pEnvelope.Uuid: {pEnvelope.Uuid}")
|
Logger.Debug($" pEnvelope.Uuid: {pEnvelope.Uuid}")
|
||||||
Logger.Debug($" pReceiver.Signature: {pReceiver.Signature}")
|
Logger.Debug($" pReceiver.Signature: {pReceiver.Signature}")
|
||||||
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageInvitationSent) With
|
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageInvitationSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
||||||
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
||||||
@ -70,7 +67,7 @@ Public Class EmailService
|
|||||||
Logger.Debug($"State.DbConfig.SignatureHost: {State.DbConfig.SignatureHost}")
|
Logger.Debug($"State.DbConfig.SignatureHost: {State.DbConfig.SignatureHost}")
|
||||||
Logger.Debug($" pEnvelope.Uuid: {pEnvelope.Uuid}")
|
Logger.Debug($" pEnvelope.Uuid: {pEnvelope.Uuid}")
|
||||||
Logger.Debug($" pReceiver.Signature: {pReceiver.Signature}")
|
Logger.Debug($" pReceiver.Signature: {pReceiver.Signature}")
|
||||||
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageAccessCodeSent) With
|
Dim oEmailData As New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageAccessCodeSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
.SignatureLink = Helpers.GetEnvelopeURL(State.DbConfig.SignatureHost, pEnvelope.Uuid, pReceiver.Signature),
|
||||||
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
.ADDED_WHO_PROCESS = pEnvelope.CURRENT_WORK_APP
|
||||||
@ -88,7 +85,7 @@ Public Class EmailService
|
|||||||
|
|
||||||
Public Function SendSignedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
Public Function SendSignedEmail(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean
|
||||||
Logger.Debug("Creating email data object.")
|
Logger.Debug("Creating email data object.")
|
||||||
Dim oEmailData = New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageConfirmationSent) With
|
Dim oEmailData = New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageConfirmationSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = ""
|
.SignatureLink = ""
|
||||||
}
|
}
|
||||||
@ -105,7 +102,7 @@ Public Class EmailService
|
|||||||
|
|
||||||
Public Function SendDocumentCompletedEmailToReceiver(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean ', pAttachment As String
|
Public Function SendDocumentCompletedEmailToReceiver(pEnvelope As Envelope, pReceiver As EnvelopeReceiver) As Boolean ', pAttachment As String
|
||||||
Logger.Debug("Creating email data object.")
|
Logger.Debug("Creating email data object.")
|
||||||
Dim oEmailData = New EmailData(pEnvelope, pReceiver, Constants.EnvelopeStatus.MessageCompletionSent) With
|
Dim oEmailData = New EmailData(pEnvelope, pReceiver, Domain.Constants.EnvelopeStatus.MessageCompletionSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = "",
|
.SignatureLink = "",
|
||||||
.ATT1_RELATED_ID = pEnvelope.Id,
|
.ATT1_RELATED_ID = pEnvelope.Id,
|
||||||
@ -126,7 +123,7 @@ Public Class EmailService
|
|||||||
|
|
||||||
Public Function SendDocumentCompletedEmailToCreator(pEnvelope As Envelope) As Boolean ', pAttachment As String
|
Public Function SendDocumentCompletedEmailToCreator(pEnvelope As Envelope) As Boolean ', pAttachment As String
|
||||||
Logger.Debug("Creating email data object.")
|
Logger.Debug("Creating email data object.")
|
||||||
Dim oEmailData = New EmailData(pEnvelope, Constants.EnvelopeStatus.MessageCompletionSent) With
|
Dim oEmailData = New EmailData(pEnvelope, Domain.Constants.EnvelopeStatus.MessageCompletionSent) With
|
||||||
{
|
{
|
||||||
.SignatureLink = "",
|
.SignatureLink = "",
|
||||||
.ATT1_RELATED_ID = pEnvelope.Id,
|
.ATT1_RELATED_ID = pEnvelope.Id,
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
|
Imports DigitalData.Modules.Logging
|
||||||
Imports DigitalData.Modules.Base
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
Imports DigitalData.Modules.Logging
|
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
|
||||||
|
|
||||||
Public Class HistoryService
|
Public Class HistoryService
|
||||||
Inherits BaseService
|
Inherits BaseService
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class TemplateService
|
Public Class TemplateService
|
||||||
Inherits BaseService
|
Inherits BaseService
|
||||||
@ -35,7 +36,7 @@ Public Class TemplateService
|
|||||||
|
|
||||||
Public Sub FillDocumentReceivedEmailBody(pEmailData As EmailData)
|
Public Sub FillDocumentReceivedEmailBody(pEmailData As EmailData)
|
||||||
InitDictionary(pEmailData)
|
InitDictionary(pEmailData)
|
||||||
Dim oTemplate = EmailHtmlTemplateModel.GetById(Constants.EmailTemplateType.DocumentReceived)
|
Dim oTemplate = EmailHtmlTemplateModel.GetById(EmailTemplateType.DocumentReceived)
|
||||||
|
|
||||||
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
||||||
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
||||||
@ -43,7 +44,7 @@ Public Class TemplateService
|
|||||||
|
|
||||||
Public Sub FillEnvelopeDeletedEmailBody(pEmailData As EmailData, pReason As String)
|
Public Sub FillEnvelopeDeletedEmailBody(pEmailData As EmailData, pReason As String)
|
||||||
InitDictionary(pEmailData, pReason)
|
InitDictionary(pEmailData, pReason)
|
||||||
Dim oTemplate = EmailHtmlTemplateModel.GetById(Constants.EmailTemplateType.DocumentDeleted)
|
Dim oTemplate = EmailHtmlTemplateModel.GetById(EmailTemplateType.DocumentDeleted)
|
||||||
|
|
||||||
pEmailData.EmailBody = FillTemplate(oTemplate.Body, pReason)
|
pEmailData.EmailBody = FillTemplate(oTemplate.Body, pReason)
|
||||||
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
||||||
@ -51,7 +52,7 @@ Public Class TemplateService
|
|||||||
|
|
||||||
Public Sub FillDocumentSignedEmailBody(pEmailData As EmailData)
|
Public Sub FillDocumentSignedEmailBody(pEmailData As EmailData)
|
||||||
InitDictionary(pEmailData)
|
InitDictionary(pEmailData)
|
||||||
Dim oTemplate = EmailHtmlTemplateModel.GetById(Constants.EmailTemplateType.DocumentSigned)
|
Dim oTemplate = EmailHtmlTemplateModel.GetById(EmailTemplateType.DocumentSigned)
|
||||||
|
|
||||||
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
||||||
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
||||||
@ -59,7 +60,7 @@ Public Class TemplateService
|
|||||||
|
|
||||||
Public Sub FillDocumentCompletedEmailBody(pEmailData As EmailData)
|
Public Sub FillDocumentCompletedEmailBody(pEmailData As EmailData)
|
||||||
InitDictionary(pEmailData)
|
InitDictionary(pEmailData)
|
||||||
Dim oTemplate = EmailHtmlTemplateModel.GetById(Constants.EmailTemplateType.DocumentCompleted)
|
Dim oTemplate = EmailHtmlTemplateModel.GetById(EmailTemplateType.DocumentCompleted)
|
||||||
|
|
||||||
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
||||||
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
||||||
@ -67,7 +68,7 @@ Public Class TemplateService
|
|||||||
|
|
||||||
Public Sub FillDocumentAccessCodeReceivedEmailBody(pEmailData As EmailData)
|
Public Sub FillDocumentAccessCodeReceivedEmailBody(pEmailData As EmailData)
|
||||||
InitDictionary(pEmailData)
|
InitDictionary(pEmailData)
|
||||||
Dim oTemplate = EmailHtmlTemplateModel.GetById(Constants.EmailTemplateType.DocumentAccessCodeReceived)
|
Dim oTemplate = EmailHtmlTemplateModel.GetById(EmailTemplateType.DocumentAccessCodeReceived)
|
||||||
|
|
||||||
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
pEmailData.EmailBody = FillTemplate(oTemplate.Body)
|
||||||
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
pEmailData.EmailSubject = FillTemplate(oTemplate.Subject)
|
||||||
|
|||||||
183
EnvelopeGenerator.Domain/Constants.cs
Normal file
183
EnvelopeGenerator.Domain/Constants.cs
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
#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
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,4 @@
|
|||||||
using EnvelopeGenerator.Common;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
#if NETFRAMEWORK
|
#if NETFRAMEWORK
|
||||||
using System;
|
using System;
|
||||||
|
|||||||
@ -22,8 +22,4 @@
|
|||||||
<PackageReference Include="DigitalData.EmailProfilerDispatcher.Abstraction.Attributes" Version="1.0.0" />
|
<PackageReference Include="DigitalData.EmailProfilerDispatcher.Abstraction.Attributes" Version="1.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\EnvelopeGenerator.Common\EnvelopeGenerator.Common.vbproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -3,9 +3,8 @@ Imports System.IO
|
|||||||
Imports DevExpress.XtraBars.Docking
|
Imports DevExpress.XtraBars.Docking
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
|
||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
Imports GdPicture14
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class EnvelopeEditorController
|
Public Class EnvelopeEditorController
|
||||||
Inherits BaseController
|
Inherits BaseController
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
Imports DevExpress.XtraPrinting.Native
|
Imports DevExpress.XtraPrinting.Native
|
||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
Imports GdPicture14.Annotations
|
Imports GdPicture14.Annotations
|
||||||
|
Imports EnvelopeGenerator.Domain
|
||||||
|
|
||||||
Public Class FieldEditorController
|
Public Class FieldEditorController
|
||||||
Inherits BaseController
|
Inherits BaseController
|
||||||
|
|||||||
@ -506,6 +506,10 @@
|
|||||||
<Project>{6ea0c51f-c2b1-4462-8198-3de0b32b74f8}</Project>
|
<Project>{6ea0c51f-c2b1-4462-8198-3de0b32b74f8}</Project>
|
||||||
<Name>EnvelopeGenerator.Common</Name>
|
<Name>EnvelopeGenerator.Common</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\EnvelopeGenerator.Domain\EnvelopeGenerator.Domain.csproj">
|
||||||
|
<Project>{4f32a98d-e6f0-4a09-bd97-1cf26107e837}</Project>
|
||||||
|
<Name>EnvelopeGenerator.Domain</Name>
|
||||||
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
|||||||
@ -1,24 +1,18 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports System.Data.SqlClient
|
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports System.Text.RegularExpressions
|
Imports System.Text.RegularExpressions
|
||||||
Imports DevExpress.Export.Xl
|
|
||||||
Imports DevExpress.Utils.CommonDialogs
|
|
||||||
Imports DevExpress.Utils.Drawing
|
Imports DevExpress.Utils.Drawing
|
||||||
Imports DevExpress.Utils.Svg.CommonSvgImages
|
|
||||||
Imports DevExpress.XtraEditors
|
Imports DevExpress.XtraEditors
|
||||||
Imports DevExpress.XtraExport.Helpers
|
|
||||||
Imports DevExpress.XtraGrid
|
Imports DevExpress.XtraGrid
|
||||||
Imports DevExpress.XtraGrid.Columns
|
|
||||||
Imports DevExpress.XtraGrid.Views.Base
|
|
||||||
Imports DevExpress.XtraGrid.Views.Grid
|
Imports DevExpress.XtraGrid.Views.Grid
|
||||||
Imports DevExpress.XtraSplashScreen
|
Imports DevExpress.XtraSplashScreen
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Domain
|
||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
Imports GdPicture14
|
Imports GdPicture14
|
||||||
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Partial Public Class frmEnvelopeEditor
|
Partial Public Class frmEnvelopeEditor
|
||||||
Public Property Envelope As Envelope
|
Public Property Envelope As Envelope
|
||||||
@ -467,7 +461,7 @@ Partial Public Class frmEnvelopeEditor
|
|||||||
Dim oReceiver As EnvelopeReceiver = ViewReceivers.GetRow(e.RowHandle)
|
Dim oReceiver As EnvelopeReceiver = ViewReceivers.GetRow(e.RowHandle)
|
||||||
|
|
||||||
Dim oUsedColors = Receivers.Select(Of Integer)(Function(r) r.ColorType).ToList()
|
Dim oUsedColors = Receivers.Select(Of Integer)(Function(r) r.ColorType).ToList()
|
||||||
Dim oAllColors = [Enum].GetValues(GetType(ColorType)).Cast(Of Integer).ToList()
|
Dim oAllColors = [Enum].GetValues(GetType(Domain.Constants.ColorType)).Cast(Of Integer).ToList()
|
||||||
Dim oUnusedColors = oAllColors.Except(oUsedColors)
|
Dim oUnusedColors = oAllColors.Except(oUsedColors)
|
||||||
If oUnusedColors.Any() Then
|
If oUnusedColors.Any() Then
|
||||||
oReceiver.ColorType = oUnusedColors.Min()
|
oReceiver.ColorType = oUnusedColors.Min()
|
||||||
@ -576,7 +570,7 @@ Partial Public Class frmEnvelopeEditor
|
|||||||
CheckAccesscode(e.RowHandle, oAccessCode)
|
CheckAccesscode(e.RowHandle, oAccessCode)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Dim oMsg = Resources.Envelope.Error_email_Validation
|
Dim oMsg = Resources.Envelope.Error_email_Validation
|
||||||
oMsg = oMsg.Replace("@Mail", oEmailAdress)
|
oMsg = oMsg.Replace("@Mail", oEmailAdress)
|
||||||
MsgBox(oMsg, MsgBoxStyle.Exclamation, Text)
|
MsgBox(oMsg, MsgBoxStyle.Exclamation, Text)
|
||||||
ViewReceivers.DeleteRow(ViewReceivers.FocusedRowHandle)
|
ViewReceivers.DeleteRow(ViewReceivers.FocusedRowHandle)
|
||||||
@ -756,7 +750,7 @@ Partial Public Class frmEnvelopeEditor
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnShowFile_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnShowFile.ItemClick
|
Private Sub btnShowFile_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnShowFile.ItemClick
|
||||||
showDocument
|
showdocument()
|
||||||
End Sub
|
End Sub
|
||||||
Sub showdocument()
|
Sub showdocument()
|
||||||
If Not IsNothing(Documents) Then
|
If Not IsNothing(Documents) Then
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Common.Constants
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
|
|
||||||
Public Class frmEnvelopeMainData
|
Public Class frmEnvelopeMainData
|
||||||
Private FormLoaded As Boolean = False
|
Private FormLoaded As Boolean = False
|
||||||
|
|||||||
@ -6,6 +6,7 @@ Imports DigitalData.Modules.Logging
|
|||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
Imports EnvelopeGenerator.Common.Constants
|
||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
|
Imports EnvelopeGenerator.Domain.Constants
|
||||||
Imports GdPicture14
|
Imports GdPicture14
|
||||||
Imports GdPicture14.Annotations
|
Imports GdPicture14.Annotations
|
||||||
|
|
||||||
|
|||||||
@ -10,12 +10,9 @@ Imports DigitalData.Modules.Base
|
|||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
Imports System.Diagnostics
|
|
||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports DevExpress.XtraPrinting
|
Imports DevExpress.XtraPrinting
|
||||||
Imports System.Web
|
Imports DigitalData.Domain
|
||||||
Imports EnvelopeGenerator.Common.Constants
|
|
||||||
Imports System.Security.Cryptography
|
|
||||||
|
|
||||||
Public Class frmMain
|
Public Class frmMain
|
||||||
Private ReadOnly LogConfig As LogConfig
|
Private ReadOnly LogConfig As LogConfig
|
||||||
@ -306,12 +303,12 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oEnvelope As Envelope = ViewEnvelopes.GetRow(e.RowHandle)
|
Dim oEnvelope As Envelope = ViewEnvelopes.GetRow(e.RowHandle)
|
||||||
If oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopePartlySigned Then
|
If oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopePartlySigned Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.GREEN_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.GREEN_300)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeQueued Or oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeSent Then
|
If oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeQueued Or oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeSent Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.ORANGE_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.ORANGE_300)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -327,10 +324,10 @@ Public Class frmMain
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oReceiver.Status = Common.Constants.ReceiverStatus.Signed Then
|
If oReceiver.Status = Domain.Constants.ReceiverStatus.Signed Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.GREEN_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.GREEN_300)
|
||||||
Else
|
Else
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.RED_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.RED_300)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -340,12 +337,12 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oEnvelope As Envelope = ViewCompleted.GetRow(e.RowHandle)
|
Dim oEnvelope As Envelope = ViewCompleted.GetRow(e.RowHandle)
|
||||||
If oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeCompletelySigned Then
|
If oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeCompletelySigned Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.GREEN_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.GREEN_300)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeDeleted Or oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeWithdrawn Or oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeRejected Then
|
If oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeDeleted Or oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeWithdrawn Or oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeRejected Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.RED_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.RED_300)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -361,10 +358,10 @@ Public Class frmMain
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oReceiver.Status = Common.Constants.ReceiverStatus.Signed Then
|
If oReceiver.Status = Domain.Constants.ReceiverStatus.Signed Then
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.GREEN_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.GREEN_300)
|
||||||
Else
|
Else
|
||||||
e.Appearance.BackColor = ColorTranslator.FromHtml(Common.Constants.RED_300)
|
e.Appearance.BackColor = ColorTranslator.FromHtml(Domain.Constants.RED_300)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -507,7 +504,7 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oEnvelope As Envelope = ViewCompleted.GetRow(ViewCompleted.FocusedRowHandle)
|
Dim oEnvelope As Envelope = ViewCompleted.GetRow(ViewCompleted.FocusedRowHandle)
|
||||||
If oEnvelope.Status = Common.Constants.EnvelopeStatus.EnvelopeArchived Then
|
If oEnvelope.Status = Domain.Constants.EnvelopeStatus.EnvelopeArchived Then
|
||||||
bbtnitmEB.Enabled = True
|
bbtnitmEB.Enabled = True
|
||||||
Else
|
Else
|
||||||
bbtnitmEB.Enabled = False
|
bbtnitmEB.Enabled = False
|
||||||
@ -811,16 +808,16 @@ Public Class frmMain
|
|||||||
Dim oMailToCreator = oEnvelope.FinalEmailToCreator
|
Dim oMailToCreator = oEnvelope.FinalEmailToCreator
|
||||||
Dim oMailToReceivers = oEnvelope.FinalEmailToReceivers
|
Dim oMailToReceivers = oEnvelope.FinalEmailToReceivers
|
||||||
|
|
||||||
If oMailToCreator <> FinalEmailType.No Then
|
If oMailToCreator <> Domain.Constants.FinalEmailType.No Then
|
||||||
MsgBox("Finale email an Creator könnten/würden gesendet werden!")
|
MsgBox("Finale email an Creator könnten/würden gesendet werden!")
|
||||||
Else
|
Else
|
||||||
MsgBox("Finale email an Creator könnte/würde nicht erzeugt werden!" & vbNewLine & $"No SendFinalEmailToCreator - oMailToCreator [{oMailToCreator}] <> [{FinalEmailType.No}]")
|
MsgBox("Finale email an Creator könnte/würde nicht erzeugt werden!" & vbNewLine & $"No SendFinalEmailToCreator - oMailToCreator [{oMailToCreator}] <> [{Domain.Constants.FinalEmailType.No}]")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oMailToReceivers <> FinalEmailType.No Then
|
If oMailToReceivers <> Domain.Constants.FinalEmailType.No Then
|
||||||
MsgBox("Finale email an Unterzeichner könnten/würden gesendet werden!")
|
MsgBox("Finale email an Unterzeichner könnten/würden gesendet werden!")
|
||||||
Else
|
Else
|
||||||
MsgBox("Finale email an Unterzeichner könnte/würde nicht erzeugt werden!" & vbNewLine & $"No SendFinalEmailToReceivers - oMailToReceivers [{oMailToReceivers}] <> [{FinalEmailType.No}]")
|
MsgBox("Finale email an Unterzeichner könnte/würde nicht erzeugt werden!" & vbNewLine & $"No SendFinalEmailToReceivers - oMailToReceivers [{oMailToReceivers}] <> [{Domain.Constants.FinalEmailType.No}]")
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Private Function GetState() As State
|
Private Function GetState() As State
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user