Table of Contents

Class UserVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

User

[AttTable("US", 20240328)]
[AttTableTarget(DBTarget.Home)]
[AttTableOrderBy("username")]
[AttTableMaintenance(typeof(UserMaintenance))]
[AttTableVOInfo(typeof(UserAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge, TableFlags.UseImagePicker, TableFlags.NotUseHashTag })]
public class UserVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
UserVO

Remarks

Entity that manages user properties

Properties

AgentVO

[AttExternalCollection(typeof(AgentVO))]
public AgentVO AgentVO { get; }

Property Value

AgentVO

Cm3VO

[AttExternalCollection(typeof(Cm3VO))]
public Cm3VO Cm3VO { get; }

Property Value

Cm3VO

EmployeeVO

[AttExternalCollection(typeof(EmployeeVO))]
public EmployeeVO EmployeeVO { get; }

Property Value

EmployeeVO

ImageInfoVO

[AttExternalCollection(typeof(ImageInfoVO), new string[] { "iflstamp", "imagestamp" })]
public ImageInfoVO ImageInfoVO { get; }

Property Value

ImageInfoVO

PHCNotifyNotifications

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool PHCNotifyNotifications { get; set; }

Property Value

bool

accessToken

CallBack Token for Oauth login

public string accessToken { get; set; }

Property Value

string

aextpw

[AttHidden]
[AttLenght(80)]
public string aextpw { get; set; }

Property Value

string

agent

[AttLenght(6)]
[AttEntityAvailable(typeof(AgentVO))]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int agent { get; set; }

Property Value

int

agentnm

[AttLenght(40)]
[AttEntityAvailable(typeof(AgentVO))]
public string agentnm { get; set; }

Property Value

string

assocemployeestamp

[AttVirtualField]
public string assocemployeestamp { get; set; }

Property Value

string

assocuseremployeenm

[AttVirtualField]
public string assocuseremployeenm { get; set; }

Property Value

string

authAttempts

[AttLenght(2)]
public int authAttempts { get; set; }

Property Value

int

authDevices

[AttCollection(typeof(AuthDeviceVO))]
public List<AuthDeviceVO> authDevices { get; set; }

Property Value

List<AuthDeviceVO>

codpais

Código de pais

Contém o código de pais do utilizador .

[AttLenght(4)]
[AttHidden]
public string codpais { get; set; }

Property Value

string

Remarks

Length 4 .

nomeabrv

compactMode

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool compactMode { get; set; }

Property Value

bool

companies

[AttCollection(typeof(UserCompanyVO))]
public List<UserCompanyVO> companies { get; set; }

Property Value

List<UserCompanyVO>

dpt

[AttLenght(20)]
[AttList]
public string dpt { get; set; }

Property Value

string

email

[AttLenght(100)]
[AttMandatory]
[AttRGPDrank(RGPDranks.Personal)]
[AttFieldType(AttFieldType.InputTypes.email)]
[AttList]
public string email { get; set; }

Property Value

string

emailNotifications

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool emailNotifications { get; set; }

Property Value

bool

employeenm

Deprecated. This property is deprecated and will be removed in future versions.

[AttLenght(40)]
[AttEntityAvailable(typeof(EmployeeVO))]
public string employeenm { get; set; }

Property Value

string

employeestamp

Deprecated. This property is deprecated and will be removed in future versions.

[AttLenght(40)]
[AttEntityAvailable(typeof(EmployeeVO))]
public string employeestamp { get; set; }

Property Value

string

esa

public bool esa { get; set; }

Property Value

bool

firstlogin

[AttFieldType(AttFieldType.InputTypes.fullDate)]
[AttHidden]
public DateTime firstlogin { get; set; }

Property Value

DateTime

hash

Hash única que permite identificar um utilizador para o primeiro login

[AttLenght(25)]
public string hash { get; set; }

Property Value

string

imagestamp

[AttLenght(25)]
[AttForeignKey(typeof(ImageInfoVO), HiddenField = false)]
[AttRGPDrank(RGPDranks.Personal)]
[AttFieldType(AttFieldType.InputTypes.image)]
public string imagestamp { get; set; }

Property Value

string

inactivo

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool inactivo { get; set; }

Property Value

bool

iniciais

[AttLenght(3)]
[AttMandatory]
public string iniciais { get; set; }

Property Value

string

isContabUser

[AttVirtualField]
public bool isContabUser { get; set; }

Property Value

bool

isOauthProvider

[AttVirtualField]
[AttHidden]
public bool isOauthProvider { get; set; }

Property Value

bool

isreadonly

[AttPhcOwner]
public bool isreadonly { get; set; }

Property Value

bool

jaini

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool jaini { get; set; }

Property Value

bool

lastWorkPlaceLogin

[AttFieldType(AttFieldType.InputTypes.fullDate)]
[AttHidden]
public DateTime lastWorkPlaceLogin { get; set; }

Property Value

DateTime

leftHanded

indica se o utilizador é canhoto

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttHidden]
public bool leftHanded { get; set; }

Property Value

bool

leftMenu

If she menu is shown on the left side

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttHidden]
public bool leftMenu { get; set; }

Property Value

bool

notifypw

[AttLenght(250)]
[AttFieldType(AttFieldType.InputTypes.password)]
public string notifypw { get; set; }

Property Value

string

notifytk

[AttLenght(254)]
public string notifytk { get; set; }

Property Value

string

notifyus

[AttLenght(100)]
public string notifyus { get; set; }

Property Value

string

oauthTime

public string oauthTime { get; set; }

Property Value

string

passnewformat

[AttHidden]
public bool passnewformat { get; set; }

Property Value

bool

passwordExpirationDate

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime passwordExpirationDate { get; set; }

Property Value

DateTime

passwordNeverExpire

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool passwordNeverExpire { get; set; }

Property Value

bool

refint

[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttList(Inactive = true)]
public string refint { get; set; }

Property Value

string

refreshToken

CallBack Refresh Token for Oauth login

public string refreshToken { get; set; }

Property Value

string

resetNotify

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool resetNotify { get; set; }

Property Value

bool

roles

[AttCollection(typeof(RoleUserVO))]
public List<RoleUserVO> roles { get; set; }

Property Value

List<RoleUserVO>

shortcuts

[AttCollection(typeof(ShortcutsVO))]
public List<ShortcutsVO> shortcuts { get; set; }

Property Value

List<ShortcutsVO>

smtpPass

SMTP Password

[AttLenght(60)]
[AttFieldType(AttFieldType.InputTypes.password)]
public string smtpPass { get; set; }

Property Value

string

smtpPort

SMTP Port

[AttLenght(6)]
public int smtpPort { get; set; }

Property Value

int

smtpSSL

Check if SMTP server uses SSL

public bool smtpSSL { get; set; }

Property Value

bool

smtpServer

SMTP Server

[AttLenght(120)]
public string smtpServer { get; set; }

Property Value

string

smtpServerName

SMTP Server name

[AttLenght(60)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string smtpServerName { get; set; }

Property Value

string

smtpUser

SMTP User

[AttLenght(60)]
public string smtpUser { get; set; }

Property Value

string

theme

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public Theme theme { get; set; }

Property Value

Theme

tipofiltro

[AttLenght(1)]
[AttGama(Gamas.Advanced)]
public int tipofiltro { get; set; }

Property Value

int

tlmvl

[AttLenght(45)]
[AttList(Inactive = true)]
public string tlmvl { get; set; }

Property Value

string

twofaactive

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool twofaactive { get; set; }

Property Value

bool

userHierarchys

[AttCollection(typeof(UserHierarchyVO))]
public List<UserHierarchyVO> userHierarchys { get; set; }

Property Value

List<UserHierarchyVO>

userassociations

[AttCollection(typeof(UserAssociationsVO))]
public UserAssociationsVO userassociations { get; set; }

Property Value

UserAssociationsVO

usercode

[AttLenght(20)]
[AttMandatory]
[AttIndex(true)]
[AttLogInfo(0)]
[AttList]
public string usercode { get; set; }

Property Value

string

username

[AttLenght(30)]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string username { get; set; }

Property Value

string

userno

[AttLenght(6)]
[AttPrimaryKey]
[AttList]
public int userno { get; set; }

Property Value

int

usstamp

[AttLenght(25)]
public string usstamp { get; set; }

Property Value

string

vendedor

[AttLenght(6)]
[AttEntityAvailable(typeof(Cm3VO))]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int vendedor { get; set; }

Property Value

int

vendnm

[AttLenght(40)]
[AttEntityAvailable(typeof(Cm3VO))]
public string vendnm { get; set; }

Property Value

string

workPlaceAvailable

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttHidden]
public bool workPlaceAvailable { get; set; }

Property Value

bool