Table of Contents

Class AssetVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("Asset", 20241227)]
[AttTableVOInfo(typeof(AssetAttInfo))]
[AttTableProducts(new Products[] { Products.Assets })]
[AttTableOrderBy("assetcode", "A")]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.UseDimensions })]
[AttTableMaintenance(typeof(AssetMaintenance))]
public class AssetVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
AssetVO

Properties

AssetFiscalAdjustmentVO

[AttExternalCollection(typeof(AssetFiscalAdjustmentVO), new string[] { "AssetFiscalAdjustment.code", "assetfiscaladjustment" })]
public AssetFiscalAdjustmentVO AssetFiscalAdjustmentVO { get; }

Property Value

AssetFiscalAdjustmentVO

AssetTaxCodeVo

[AttExternalCollection(typeof(AssetTaxCodeVO), new string[] { "AssetTaxCode.code", "assettaxcode" })]
public AssetTaxCodeVO AssetTaxCodeVo { get; }

Property Value

AssetTaxCodeVO

AssetTypeVO

[AttExternalCollection(typeof(AssetTypeVO), new string[] { "AssetType.assettypestamp", "assettypestamp" })]
public AssetTypeVO AssetTypeVO { get; }

Property Value

AssetTypeVO

DisposalVO

[AttExternalCollection(typeof(DlVO), new string[] { "DlVO.assetcode", "assetcode" })]
public DisposalVO DisposalVO { get; }

Property Value

DisposalVO

FoVO

[AttExternalCollection(typeof(FoVO), new string[] { "FoVO.asset", "assetcode" })]
public FoVO FoVO { get; }

Property Value

FoVO

GetFieldStampName

Use only field name without table name

public override string GetFieldStampName { get; }

Property Value

string

GetStampValue

public override string GetStampValue { get; }

Property Value

string

Impairments

[AttExternalCollection(typeof(ImpVO), new string[] { "ImpVO.assetcode", "assetcode" })]
public List<ImpVO> Impairments { get; }

Property Value

List<ImpVO>

SzChargeVO

[AttExternalCollection(typeof(SzVO), new string[] { "sz.szstamp", "szstamp" })]
public SzVO SzChargeVO { get; }

Property Value

SzVO

agewhenacquired

Nº de anos do ativo quando foi adquirido - Informação importante para os mapas.

[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
public int agewhenacquired { get; set; }

Property Value

int

assetcategory

From AssetTypeVo.AssetCategoryVO.design

[AttVirtualField]
[AttHidden]
public string assetcategory { get; set; }

Property Value

string

assetcode

Código do ativo - Para codificar cada ativo

[AttLenght(18)]
[AttPrimaryKey]
[AttMandatory]
[AttLogInfo(0)]
[AttList]
public string assetcode { get; set; }

Property Value

string

assetfiscaladjustment

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

Property Value

string

assetfiscaladjustmentLabelField

From AssetFiscalAdjustmentVo.labelField

[AttVirtualField]
[AttHidden]
public string assetfiscaladjustmentLabelField { get; set; }

Property Value

string

assetgroup

Agrupador.

[AttLenght(50)]
[AttSmartField]
public string assetgroup { get; set; }

Property Value

string

assetmode

Duodécimos/Anual - Quando duodécimos: no 1º e último ano só deprecia um nº de meses específico.

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public AssetMode assetmode { get; set; }

Property Value

AssetMode

assetmodename

[AttLenght(50)]
[AttLocale(typeof(AssetAttInfo), new string[] { "[Asset].[assetmode]" })]
public string assetmodename { get; set; }

Property Value

string

assetnature

From AssetTypeVo.AssetNatureVO.design

[AttVirtualField]
[AttHidden]
public string assetnature { get; set; }

Property Value

string

assetstamp

Stamp

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

Property Value

string

assetstate

Estado do bem - Para identidicar se está Ativo/Alienado/Abatido

[AttVirtualField(typeof(AssetAttInfo))]
[AttList]
[AttInterfaces(new Type[] { typeof(IChange) })]
public AssetState assetstate { get; set; }

Property Value

AssetState

assettaxcode

Código de acordo com a tabela anexa ao DR n.º 25/2009.

[AttLenght(10)]
public string assettaxcode { get; set; }

Property Value

string

assettaxcodeLabelField

From AssetTaxCodeVo.labelField

[AttVirtualField]
[AttHidden]
public string assettaxcodeLabelField { get; set; }

Property Value

string

assettypelabelfield

From AssetTypeVo.labelField

[AttVirtualField]
[AttHidden]
public string assettypelabelfield { get; set; }

Property Value

string

assettypestamp

This field is to connect with AssetTypeVO.

[AttForeignKey(CanDuplicate = true, HiddenField = false)]
[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string assettypestamp { get; set; }

Property Value

string

Remarks

Length 25.

depperiod

Período de depreciação.

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DepPeriod depperiod { get; set; }

Property Value

DepPeriod

depperiodname

[AttLenght(50)]
[AttLocale(typeof(AssetAttInfo), new string[] { "[Asset].[depperiod]" })]
public string depperiodname { get; set; }

Property Value

string

depreciationmethod

Método de depreciação (só para o importador)

public DepreciationMethodType depreciationmethod { get; set; }

Property Value

DepreciationMethodType

depreciationmethods

[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> depreciationmethods { get; set; }

Property Value

List<AssetHistoryVO>

depreciations

Colecção das depreciações

[AttCollection(typeof(DepreciationVO))]
public List<DepreciationVO> depreciations { get; set; }

Property Value

List<DepreciationVO>

disposaldate

[AttVirtualField]
[AttHidden]
public DateTime disposaldate { get; }

Property Value

DateTime

disposalid

From DlVO.labelField

[AttVirtualField]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int disposalid { get; set; }

Property Value

int

fiscaldepreciations

Análise fiscal.

[AttCollection(typeof(FiscalDepreciationVO))]
public List<FiscalDepreciationVO> fiscaldepreciations { get; set; }

Property Value

List<FiscalDepreciationVO>

fiscallifecycle

Número de anos de utilidade esperada fiscal

[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int fiscallifecycle { get; set; }

Property Value

int

fiscallifecyclemonths

Número de anos de utilidade esperada fiscal

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
[AttMaxValue(12)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_MZ })]
public int fiscallifecyclemonths { get; set; }

Property Value

int

hasintegrations

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

Property Value

bool

histaccdepreciation

Data de entrada de sistema - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccdepreciation { get; set; }

Property Value

decimal

histaccfiscaldepreciations

Depreciações aceites fiscalmente acumuladas - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccfiscaldepreciations { get; set; }

Property Value

decimal

histaccfiscalimpairment

Imparidades aceites fiscalmente acumuladas - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccfiscalimpairment { get; set; }

Property Value

decimal

histaccimpairment

Imparidades acumuladas - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccimpairment { get; set; }

Property Value

decimal

histacclostshares

Depreciações perdidas acumuladas - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histacclostshares { get; set; }

Property Value

decimal

histanualdepreciation

Valor de depreciações do ano - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histanualdepreciation { get; set; }

Property Value

decimal

histdepreciatedmonths

Meses depreciados - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int histdepreciatedmonths { get; set; }

Property Value

int

histrecoverdepreciation

Valor de depreciações recuperável - Quando é importado

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histrecoverdepreciation { get; set; }

Property Value

decimal

histsystemdate

Data de entrada de sistema - Quando é importado

[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime histsystemdate { get; set; }

Property Value

DateTime

lastAccountedDepreciationDate

[AttVirtualField]
[AttHidden]
public DateTime lastAccountedDepreciationDate { get; set; }

Property Value

DateTime

lastImpairmentDate

[AttVirtualField]
[AttHidden]
public DateTime lastImpairmentDate { get; set; }

Property Value

DateTime

lifecycle

Número de anos de utilidade esperada. (só para o importador)

public int lifecycle { get; set; }

Property Value

int

lifecyclemonts

Número de meses de utilidade esperada. (só para o importador)

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_MZ })]
public int lifecyclemonts { get; set; }

Property Value

int

lifecycles

[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> lifecycles { get; set; }

Property Value

List<AssetHistoryVO>

local

Localização

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

Property Value

string

localstamp

Localização

[AttForeignKey(CanDuplicate = true, HiddenField = false)]
[AttLenght(70)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string localstamp { get; set; }

Property Value

string

name

Descrição - Para ser identificado cada ativo

[AttLenght(60)]
[AttIndex]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string name { get; set; }

Property Value

string

numberofelements

Nº de elementos - Para identificar o número de elementos

[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public decimal numberofelements { get; set; }

Property Value

decimal

obs

Observações - Para que o utilizador registe as notas que pretender sobre o ativo

[AttFieldType(AttFieldType.InputTypes.memo)]
public string obs { get; set; }

Property Value

string

otherassetrepair

Reparação de outro ativo - Para dar indicação que é um ativo referente a uma reparação.

[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public bool otherassetrepair { get; set; }

Property Value

bool

otherassetrepaircode

Reparação de outro ativo código

[AttLenght(18)]
public string otherassetrepaircode { get; set; }

Property Value

string

purchasedate

Data de aquisição - Para identificar a data de aquisição do ativo

[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttList]
public DateTime purchasedate { get; set; }

Property Value

DateTime

purchasedused

Adquirido usado - Para ter um tratamento diferente nos mapas.

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

Property Value

bool

purchasevalue

Valor de aquisição - Para identificar o valor do ativo

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal purchasevalue { get; set; }

Property Value

decimal

reducedvalue

Todos os elementos são de reduzido valor - Para permitir identificar estes ativos, dado que têm um tratamento diferente nos mapas.

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public bool reducedvalue { get; set; }

Property Value

bool

residualvalue

Valor residual - Para identificar o valor do ativo no fim da depreciação (só para o importador)

public decimal residualvalue { get; set; }

Property Value

decimal

residualvalues

[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> residualvalues { get; set; }

Property Value

List<AssetHistoryVO>

selldate

Data de fim de utilização - Quando é vendido

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

Property Value

DateTime

startdateofuse

Data de início de utilização - Para identificar a data de utilização do ativo (data em que começa a depreciar)

[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime startdateofuse { get; set; }

Property Value

DateTime

valuefortaxpurposes

Valor de aquisição aceite fiscalmente

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttMinValue(0)]
public decimal valuefortaxpurposes { get; set; }

Property Value

decimal

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string