Table of Contents

Class ContractServiceVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("ContractService", 20240723)]
[AttTableVOInfo(typeof(ContractServiceAttInfo))]
[AttTableProducts(new Products[] { Products.Service })]
[AttTableOrderBy("OUSRDATA, OUSRHORA", "D, D")]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.UseDimensions })]
public class ContractServiceVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
ContractServiceVO

Properties

ClVO

[AttExternalCollection(typeof(ClVO), new string[] { "Cl.clstamp", "ContractService.clName" })]
public ClVO ClVO { get; }

Property Value

ClVO

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

StVO

[AttExternalCollection(typeof(StVO), new string[] { "ref", "ref" })]
public StVO StVO { get; }

Property Value

StVO

amount

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

Property Value

decimal

clName

[AttVirtualField(typeof(ContractServiceAttInfo))]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttLogInfo(1)]
[AttList]
public string clName { get; set; }

Property Value

string

clNo

Customer Number.

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
[AttList]
public decimal clNo { get; set; }

Property Value

decimal

Remarks

Length 10.

Searchable field.

clstamp

Stamp of customer.

[AttLenght(25)]
[AttEntityAvailable(typeof(ClVO))]
[AttMandatory]
public string clstamp { get; set; }

Property Value

string

contractNumber

Number of contract.

[AttLenght(10)]
[AttLogInfo(0)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttMinValue(0)]
[AttList]
public decimal contractNumber { get; set; }

Property Value

decimal

Remarks

Length 10.

Searchable field.

contractServDetails

[AttCollection(typeof(ContractServDetailVO))]
public List<ContractServDetailVO> contractServDetails { get; set; }

Property Value

List<ContractServDetailVO>

contractServEquipments

[AttCollection(typeof(ContractServEquipVO))]
public List<ContractServEquipVO> contractServEquipments { get; set; }

Property Value

List<ContractServEquipVO>

contractServInvoices

[AttCollection(typeof(ContractServiceInvoiceVO))]
public List<ContractServiceInvoiceVO> contractServInvoices { get; set; }

Property Value

List<ContractServiceInvoiceVO>

contractServiceFrequency

Represents the contract type

[AttLenght(5)]
[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.integer)]
public ContractServiceVO.ContractServiceFrequencyEnum contractServiceFrequency { get; set; }

Property Value

ContractServiceVO.ContractServiceFrequencyEnum

contractServiceFrequencyName

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

Property Value

string

contractServiceStamp

This field uniquely identifies the record (primary key by default)

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

Property Value

string

contractServiceType

Represents the contract type

[AttLenght(5)]
[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.integer)]
public ContractServiceVO.ContractServiceTypeEnum contractServiceType { get; set; }

Property Value

ContractServiceVO.ContractServiceTypeEnum

contractServiceTypeName

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

Property Value

string

design

[AttVirtualField]
[AttHidden]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string design { get; set; }

Property Value

string

estab

Number that identifies the customer Branch.

[AttLenght(6)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList(Inactive = true)]
public int estab { get; set; }

Property Value

int

Remarks

Length 6.

From what range of software this field is available: Max.

finalDate

The date when the contract ends

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

Property Value

DateTime

ftInAdvance

Allows you to define that you will use advance billing, it occurs before the start of the contract period.

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

Property Value

bool

ftText

OBS.

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

Property Value

string

inactive

This field is to store if the contract is inactive

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

Property Value

bool

initialDate

The date when the contract start

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

Property Value

DateTime

ref

Service Reference.

[AttLenght(50)]
[AttMandatory]
public string @ref { get; set; }

Property Value

string

Remarks

Lenght 50.

refInt

Internal Reference.

[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
public string refInt { get; set; }

Property Value

string

Remarks

Lenght 50.

totalBillableCost

[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public decimal totalBillableCost { get; set; }

Property Value

decimal

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string