Refactor contract type handling in EnvelopeType entity
Replaced Constants.ContractType enum with integer property in EnvelopeType. Updated related references in EnvelopeEditorController. Removed EnvelopeType variable from ModuleSettings. Made EnvelopeType property bindable and initialized in frmEnvelopeMainData to improve consistency and simplify contract type management.
This commit is contained in:
@@ -50,7 +50,7 @@ Public Class EnvelopeEditorController
|
||||
Public Function ValidateEnvelopeForSending(pErrors As List(Of String)) As List(Of String)
|
||||
Dim oEnvelopeErrors = pErrors
|
||||
|
||||
If Envelope.EnvelopeTypeId <> Domain.Constants.ContractType.ReadAndSign Then
|
||||
If Envelope.EnvelopeTypeId <> ContractType.ReadAndSign Then
|
||||
|
||||
If ElementModel.ElementsExist(Envelope.Id) = False Then
|
||||
oEnvelopeErrors.Add(Resources.Envelope.Missing_Elements)
|
||||
|
||||
@@ -27,5 +27,4 @@ Module ModuleSettings
|
||||
Public MyState As State
|
||||
Public CurrentEnvelopID As Integer = 0
|
||||
Public CurrentEnvelopetitle As String = ""
|
||||
Public EnvelopeType As EnvelopeType
|
||||
End Module
|
||||
|
||||
@@ -13,8 +13,8 @@ Public Class frmEnvelopeMainData
|
||||
|
||||
Private Property EnvelopeTypeModel As EnvelopeTypeModel
|
||||
|
||||
'<Bindable(True)>
|
||||
'Private Property EnvelopeType As New EnvelopeType
|
||||
<Bindable(True)>
|
||||
Private Property EnvelopeType As New EnvelopeType
|
||||
|
||||
Public Property State As State
|
||||
|
||||
|
||||
Reference in New Issue
Block a user