Table of Contents

Class SnVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

This is the mainform where the client will store the local of their equipments

[AttTable("sn", 20231007)]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.CanUpdFromSourceBD, TableFlags.TableForJorge })]
[AttTableGama(Gamas.Corporate)]
[AttTableProducts(new Products[] { Products.Equipamentos, Products.STOCKS })]
public class SnVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
SnVO

Properties

ClVO

[AttExternalCollection(typeof(ClVO), new string[] { "cl.no", "clNo", "cl.estab", "estab" })]
public ClVO ClVO { get; }

Property Value

ClVO

CountryVO

[AttExternalCollection(typeof(CountryVO), new string[] { "paisesstamp", "countryStamp" })]
public CountryVO CountryVO { get; }

Property Value

CountryVO

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

address

Customer Address

[AttLenght(55)]
[AttRGPDrank(RGPDranks.Personal)]
public string address { get; set; }

Property Value

string

Remarks

Length 55.

address2

Address2

[AttLenght(55)]
[AttRGPDrank(RGPDranks.Personal)]
public string address2 { get; set; }

Property Value

string

Remarks

Length 55.

clName

Customer name.

[AttLenght(100)]
[AttRGPDrank(RGPDranks.Personal)]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string clName { get; set; }

Property Value

string

Remarks

Length 55.

Field available in the basic search results list.

Searchable field.

Mandatory field.

clName2

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

Property Value

string

clNcont

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

Property Value

string

clNo

Customer Number.

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

Property Value

decimal

Remarks

Length 10.

Searchable field.

clstamp

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

Property Value

string

countryName

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

Property Value

string

countryStamp

Country Stamp country

[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string countryStamp { get; set; }

Property Value

string

estab

Branch.

[AttLenght(6)]
[AttGama(Gamas.Advanced)]
[AttLogInfo(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int estab { get; set; }

Property Value

int

Remarks

Searchable field.

local

Localidade

[AttLenght(43)]
[AttRGPDrank(RGPDranks.Personal)]
public string local { get; set; }

Property Value

string

Remarks

Length 43.

obs

Comments

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

Property Value

string

Remarks

Relevant comments about the customer.

refInt

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

Property Value

string

salesPersonName

salesPersonName

[AttLenght(40)]
public string salesPersonName { get; set; }

Property Value

string

snDate

Date of issue of identification.

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

Property Value

DateTime

Remarks

Length 1.

snState

State of Equipment

[AttLenght(50)]
[AttList]
public string snState { get; set; }

Property Value

string

Remarks

Length 50.

snmas

This is the grid lines

[AttCollection(typeof(SnMaVO))]
public List<SnMaVO> snmas { get; set; }

Property Value

List<SnMaVO>

snno

The instalation number

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

Property Value

decimal

snstamp

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

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

Property Value

string

telephone

Telephone.

[AttLenght(60)]
[AttRGPDrank(RGPDranks.Personal)]
public string telephone { get; set; }

Property Value

string

Remarks

Length 60.

zipCode

Zip code

[AttLenght(45)]
[AttRGPDrank(RGPDranks.Personal)]
public string zipCode { get; set; }

Property Value

string

Remarks

Length 45.

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string