refactor(EnvelopeHistory): ersetzt mitg als Common.Entites.EnvelopeHistory

This commit is contained in:
Developer 02 2025-05-26 10:07:48 +02:00
parent c6fe039dd8
commit 10b05d6301
4 changed files with 2 additions and 16 deletions

View File

@ -1,14 +0,0 @@
Imports EnvelopeGenerator.Domain
Public Class EnvelopeHistory
Public Property EnvelopeId As Integer
Public Property UserReference As String
Public Property Status As Constants.EnvelopeStatus
Public ReadOnly Property StatusTranslated As String
Get
Dim oStatus = Status.ToString()
Return My.Resources.Model.ResourceManager.GetString(oStatus)
End Get
End Property
Public Property ActionDate As Date = Now()
End Class

View File

@ -280,7 +280,6 @@
<Compile Include="Jobs\APIBackendJobs\APIEnvelopeJob.vb" />
<Compile Include="Jobs\FinalizeDocument\PDFBurnerParams.vb" />
<Compile Include="Services\TemplateService.vb" />
<Compile Include="Entities\EnvelopeHistory.vb" />
<Compile Include="Entities\EnvelopeReceiver.vb" />
<Compile Include="Entities\State.vb" />
<Compile Include="Helpers.vb" />

View File

@ -1,5 +1,6 @@
Imports System.Data.SqlClient
Imports DigitalData.Modules.Base
Imports EnvelopeGenerator.Domain.Entities
Public Class HistoryModel
Inherits BaseModel

View File

@ -76,7 +76,7 @@ Public Class EnvelopeEditorController
If EnvelopeModel.Insert(oEnvelope) Then
Dim newHistoryEntry As New Common.EnvelopeHistoryWith {
Dim newHistoryEntry As New EnvelopeHistory With {
.EnvelopeId = oEnvelope.Id,
.Status = EnvelopeStatus.EnvelopeCreated,
.UserReference = oEnvelope.User.Email