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
AssetTaxCodeVo
[AttExternalCollection(typeof(AssetTaxCodeVO), new string[] { "AssetTaxCode.code", "assettaxcode" })]
public AssetTaxCodeVO AssetTaxCodeVo { get; }
Property Value
AssetTypeVO
[AttExternalCollection(typeof(AssetTypeVO), new string[] { "AssetType.assettypestamp", "assettypestamp" })]
public AssetTypeVO AssetTypeVO { get; }
Property Value
DisposalVO
[AttExternalCollection(typeof(DlVO), new string[] { "DlVO.assetcode", "assetcode" })]
public DisposalVO DisposalVO { get; }
Property Value
FoVO
[AttExternalCollection(typeof(FoVO), new string[] { "FoVO.asset", "assetcode" })]
public FoVO FoVO { get; }
Property Value
GetFieldStampName
Use only field name without table name
public override string GetFieldStampName { get; }
Property Value
GetStampValue
public override string GetStampValue { get; }
Property Value
Impairments
[AttExternalCollection(typeof(ImpVO), new string[] { "ImpVO.assetcode", "assetcode" })]
public List<ImpVO> Impairments { get; }
Property Value
SzChargeVO
[AttExternalCollection(typeof(SzVO), new string[] { "sz.szstamp", "szstamp" })]
public SzVO SzChargeVO { get; }
Property Value
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
assetcategory
From AssetTypeVo.AssetCategoryVO.design
[AttVirtualField]
[AttHidden]
public string assetcategory { get; set; }
Property Value
assetcode
Código do ativo - Para codificar cada ativo
[AttLenght(18)]
[AttPrimaryKey]
[AttMandatory]
[AttLogInfo(0)]
[AttList]
public string assetcode { get; set; }
Property Value
assetfiscaladjustment
[AttLenght(4)]
public string assetfiscaladjustment { get; set; }
Property Value
assetfiscaladjustmentLabelField
From AssetFiscalAdjustmentVo.labelField
[AttVirtualField]
[AttHidden]
public string assetfiscaladjustmentLabelField { get; set; }
Property Value
assetgroup
Agrupador.
[AttLenght(50)]
[AttSmartField]
public string assetgroup { get; set; }
Property Value
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
assetmodename
[AttLenght(50)]
[AttLocale(typeof(AssetAttInfo), new string[] { "[Asset].[assetmode]" })]
public string assetmodename { get; set; }
Property Value
assetnature
From AssetTypeVo.AssetNatureVO.design
[AttVirtualField]
[AttHidden]
public string assetnature { get; set; }
Property Value
assetstamp
Stamp
[AttLenght(25)]
public string assetstamp { get; set; }
Property Value
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
assettaxcode
Código de acordo com a tabela anexa ao DR n.º 25/2009.
[AttLenght(10)]
public string assettaxcode { get; set; }
Property Value
assettaxcodeLabelField
From AssetTaxCodeVo.labelField
[AttVirtualField]
[AttHidden]
public string assettaxcodeLabelField { get; set; }
Property Value
assettypelabelfield
From AssetTypeVo.labelField
[AttVirtualField]
[AttHidden]
public string assettypelabelfield { get; set; }
Property Value
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
Remarks
Length 25.
depperiod
Período de depreciação.
[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DepPeriod depperiod { get; set; }
Property Value
depperiodname
[AttLenght(50)]
[AttLocale(typeof(AssetAttInfo), new string[] { "[Asset].[depperiod]" })]
public string depperiodname { get; set; }
Property Value
depreciationmethod
Método de depreciação (só para o importador)
public DepreciationMethodType depreciationmethod { get; set; }
Property Value
depreciationmethods
[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> depreciationmethods { get; set; }
Property Value
depreciations
Colecção das depreciações
[AttCollection(typeof(DepreciationVO))]
public List<DepreciationVO> depreciations { get; set; }
Property Value
disposaldate
[AttVirtualField]
[AttHidden]
public DateTime disposaldate { get; }
Property Value
disposalid
From DlVO.labelField
[AttVirtualField]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int disposalid { get; set; }
Property Value
fiscaldepreciations
Análise fiscal.
[AttCollection(typeof(FiscalDepreciationVO))]
public List<FiscalDepreciationVO> fiscaldepreciations { get; set; }
Property Value
fiscallifecycle
Número de anos de utilidade esperada fiscal
[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int fiscallifecycle { get; set; }
Property Value
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
hasintegrations
[AttVirtualField]
public bool hasintegrations { get; set; }
Property Value
histaccdepreciation
Data de entrada de sistema - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccdepreciation { get; set; }
Property Value
histaccfiscaldepreciations
Depreciações aceites fiscalmente acumuladas - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccfiscaldepreciations { get; set; }
Property Value
histaccfiscalimpairment
Imparidades aceites fiscalmente acumuladas - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccfiscalimpairment { get; set; }
Property Value
histaccimpairment
Imparidades acumuladas - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histaccimpairment { get; set; }
Property Value
histacclostshares
Depreciações perdidas acumuladas - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histacclostshares { get; set; }
Property Value
histanualdepreciation
Valor de depreciações do ano - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histanualdepreciation { get; set; }
Property Value
histdepreciatedmonths
Meses depreciados - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int histdepreciatedmonths { get; set; }
Property Value
histrecoverdepreciation
Valor de depreciações recuperável - Quando é importado
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal histrecoverdepreciation { get; set; }
Property Value
histsystemdate
Data de entrada de sistema - Quando é importado
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime histsystemdate { get; set; }
Property Value
lastAccountedDepreciationDate
[AttVirtualField]
[AttHidden]
public DateTime lastAccountedDepreciationDate { get; set; }
Property Value
lastImpairmentDate
[AttVirtualField]
[AttHidden]
public DateTime lastImpairmentDate { get; set; }
Property Value
lifecycle
Número de anos de utilidade esperada. (só para o importador)
public int lifecycle { get; set; }
Property Value
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
lifecycles
[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> lifecycles { get; set; }
Property Value
local
Localização
[AttLenght(60)]
public string local { get; set; }
Property Value
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
name
Descrição - Para ser identificado cada ativo
[AttLenght(60)]
[AttIndex]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string name { get; set; }
Property Value
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
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
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
otherassetrepaircode
Reparação de outro ativo código
[AttLenght(18)]
public string otherassetrepaircode { get; set; }
Property Value
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
purchasedused
Adquirido usado - Para ter um tratamento diferente nos mapas.
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool purchasedused { get; set; }
Property Value
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
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
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
residualvalues
[AttCollection(typeof(AssetHistoryVO))]
public List<AssetHistoryVO> residualvalues { get; set; }
Property Value
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
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
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
Methods
SetStampValue(string)
public override void SetStampValue(string stampID)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
stampID |
string |