This commit introduces the new `EGUser` class, which replaces the existing `User` class in multiple files, including `EnvelopeModel.vb`, `State.vb`, and `UserModel.vb`. The `EGUser` class extends `User`, adding new properties while maintaining existing functionality. Key changes include: - Updated property types from `User` to `EGUser` in relevant models. - Method signatures in `UserModel.vb` modified to accept and return `EGUser`. - Domain entities in `Envelope.cs` and `EnvelopeHistory.cs` now reference `EGUser`. - Complete removal of the `User.cs` file. - Added a new package reference for `UserManager.Domain` in the project file. - Updated `MYUSER` variable in `ModuleSettings.vb` to use `EGUser`. These changes enhance the user model to better meet application requirements.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel;
|
|
using DigitalData.UserManager.Domain.Entities;
|
|
|
|
#if NETFRAMEWORK
|
|
using System;
|
|
#endif
|
|
|
|
namespace EnvelopeGenerator.Domain.Entities
|
|
{
|
|
[Table("TBDD_USER", Schema = "dbo")]
|
|
public class EGUser : User
|
|
{
|
|
[Required]
|
|
[Column("GENERAL_VIEWER")]
|
|
[StringLength(30)]
|
|
[DefaultValue("NONE")]
|
|
public string GeneralViewer { get; set; }
|
|
|
|
[Required]
|
|
[Column("WAN_ENVIRONMENT")]
|
|
public bool WanEnvironment { get; set; }
|
|
|
|
[Required]
|
|
[Column("USERID_FK_INT_ECM")]
|
|
public int UseridFkIntEcm { get; set; }
|
|
|
|
[Column("DELETED_WHEN")]
|
|
public DateTime DeletedWhen { get; set; }
|
|
|
|
[Column("DELETED_WHO")]
|
|
[StringLength(50)]
|
|
public string DeletedWho { get; set; }
|
|
|
|
#region FORM_APP
|
|
[NotMapped]
|
|
public bool HasAccess { get; set; }
|
|
|
|
[NotMapped]
|
|
public bool IsAdmin { get; set; }
|
|
|
|
[NotMapped]
|
|
public bool GhostModeActive { get; set; }
|
|
|
|
[NotMapped]
|
|
public string FullName => $"{Prename} {Name}";
|
|
#endregion
|
|
}
|
|
} |