Refactor: Remove CertificationType and ContractType
Removed `CertificationType` and `ContractType` properties and logic across the codebase as they were redundant. Updated `EnvelopeType` to include a validation extension method for improved data integrity. Refactored `CreateEnvelopeWizardPopup.razor` and other UI components to simplify handling of `EnvelopeType`. Conditionally included `CertificationType` and `ContractType` for `NETFRAMEWORK` targets using `#if NETFRAMEWORK` directives to ensure compatibility. Removed unused enums, imports, and methods. Updated `CreateEnvelopeCommandHandler` and related classes to reflect these changes.
This commit is contained in:
@@ -82,8 +82,11 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Column("COMMENT", TypeName = "nvarchar(128)")]
|
||||
public string Comment { get; set; }
|
||||
|
||||
#if NETFRAMEWORK
|
||||
|
||||
[Column("CONTRACT_TYPE")]
|
||||
public ContractType? ContractType { get; set; }
|
||||
#endif
|
||||
|
||||
#if NETFRAMEWORK
|
||||
[NotMapped]
|
||||
@@ -110,8 +113,11 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Obsolete("Use EnvelopeGenerator.Domain.Interfaces.EnvelopeExtensions.IsReadAndConfirm extension method instead.")]
|
||||
public bool ReadOnly => this.IsReadAndConfirm();
|
||||
|
||||
#if NETFRAMEWORK
|
||||
|
||||
[Column("CERTIFICATION_TYPE")]
|
||||
public CertificationType? CertificationType { get; set; }
|
||||
#endif
|
||||
|
||||
[Column("USE_ACCESS_CODE")]
|
||||
public bool? UseAccessCode { get; set; }
|
||||
|
||||
@@ -26,17 +26,19 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Column("EXPIRES_DAYS")]
|
||||
public int? ExpiresDays { get; set; }
|
||||
|
||||
#if NETFRAMEWORK
|
||||
[Column("CERTIFICATION_TYPE")]
|
||||
public Constants.CertificationType? CertificationType { get; set; }
|
||||
public CertificationType? CertificationType { get; set; }
|
||||
#endif
|
||||
|
||||
[Column("USE_ACCESS_CODE")]
|
||||
public bool? UseAccessCode { get; set; }
|
||||
|
||||
[Column("FINAL_EMAIL_TO_CREATOR")]
|
||||
public Constants.FinalEmailType? FinalEmailToCreator { get; set; }
|
||||
public FinalEmailType? FinalEmailToCreator { get; set; }
|
||||
|
||||
[Column("FINAL_EMAIL_TO_RECEIVERS")]
|
||||
public Constants.FinalEmailType? FinalEmailToReceivers { get; set; }
|
||||
public FinalEmailType? FinalEmailToReceivers { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||
@@ -57,8 +59,10 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Column("REMINDER_INTERVAL_DAYS")]
|
||||
public int? ReminderIntervalDays { get; set; }
|
||||
|
||||
#if NETFRAMEWORK
|
||||
[Column("CONTRACT_TYPE")]
|
||||
public ContractType? ContractType { get; set; }
|
||||
#endif
|
||||
|
||||
[NotMapped]
|
||||
public bool TFA_Enabled { get; set; } = false;
|
||||
|
||||
Reference in New Issue
Block a user