Table of Contents

Class Cm3VO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Salesperson

[AttTable("Cm3", 20240503)]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableOrderBy("[Cm3].[nome],[Cm3].[cm]")]
[AttTableVOInfo(typeof(Cm3AttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.FullTextSearchable, TableFlags.TableForJorge, TableFlags.UseInternalRef })]
[AttTableMaintenance(typeof(Cm3Maintenance))]
public class Cm3VO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
Cm3VO

Properties

BeneficiaryVO

[AttExternalCollection(typeof(BeneficiaryVO), new string[] { "[Beneficiary].[beneficiarystamp]", "[Cm3].[beneficiaryStamp]" })]
public BeneficiaryVO BeneficiaryVO { get; }

Property Value

BeneficiaryVO

CommissionConfigVO

[AttExternalCollection(typeof(CommissionConfig), new string[] { "[CommissionConfig].[commissionconfigstamp]", "[Cm3].[commissionconfigstamp]" })]
public CommissionConfigVO CommissionConfigVO { get; }

Property Value

CommissionConfigVO

EarningCodeVO

[AttExternalCollection(typeof(EarningCodeVO), new string[] { "[Cm3].[earningcodecode]", "[EarningCode].[code]" })]
public EarningCodeVO EarningCodeVO { get; }

Property Value

EarningCodeVO

beneficiaryName

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

Property Value

string

beneficiaryStamp

[AttForeignKey(typeof(BeneficiaryVO), HiddenField = false)]
[AttLenght(25)]
public string beneficiaryStamp { get; set; }

Property Value

string

canOnlyAccessSelfCRMEntities

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttProducts(new Products[] { Products.CRM })]
public bool canOnlyAccessSelfCRMEntities { get; set; }

Property Value

bool

cm

Internal number of Salesperson entity.

[AttPrimaryKey]
[AttLenght(4)]
[AttLogInfo(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public int cm { get; set; }

Property Value

int

Remarks

This field is primary key.

Length 4.

Auto incremented field in the backend.

cm3stamp

Stamp of Salespersons record.

Contains the unique key salesperson identification register that is used for connecting to other tables.

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

Property Value

string

Remarks

Length 25.

This field is primary key.

commissionConfigDesc

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

Property Value

string

commissionconfigstamp

[AttForeignKey(typeof(CommissionConfigVO), HiddenField = false)]
[AttLenght(25)]
public string commissionconfigstamp { get; set; }

Property Value

string

earningcodecode

[AttForeignKey(typeof(EarningCodeVO), CanDuplicate = true, HiddenField = false)]
[AttLenght(40)]
public string earningcodecode { get; set; }

Property Value

string

earningcodedescription

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

Property Value

string

employeeName

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

Property Value

string

employeeStamp

[AttForeignKey(typeof(EmployeeVO), HiddenField = false)]
[AttLenght(25)]
public string employeeStamp { get; set; }

Property Value

string

inactive

Inactivo

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

Property Value

bool

isBeneficiary

Identifies if the salesperson is a beneficiary

public bool isBeneficiary { get; set; }

Property Value

bool

isEmployee

Identifies if the salesperson is a Employee

public bool isEmployee { get; set; }

Property Value

bool

isSupervisor

Identifies if the salesperson is a supervisor

public bool isSupervisor { get; set; }

Property Value

bool

nome

Complete Name.

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

Property Value

string

Remarks

Length 40.

obs

Comments.

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

Property Value

string

Remarks

Memo field.

payedBy

[AttVirtualField]
public CommissionPayedBy payedBy { get; set; }

Property Value

CommissionPayedBy

payedByLabel

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

Property Value

string

refInt

Internal reference.

Contains the value of the user's internal reference that created the record.

[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttGama(Gamas.Advanced)]
[AttList(Inactive = true)]
public string refInt { get; set; }

Property Value

string

Remarks

Lenght 50.

supervisor

[AttForeignKey(typeof(Cm3VO), HiddenField = false)]
[AttLenght(25)]
public string supervisor { get; set; }

Property Value

string

supervisorName

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

Property Value

string

usstamp

Field ussstamp from Us table

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

Property Value

string

Remarks

ForeignKey to table Us

Length 25