Table of Contents

Class GenAiTemplatesVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("GenAiTemplates", 20240419)]
[AttTableProducts(new Products[] { Products.GenAIPack })]
[AttTableGama(Gamas.Advanced)]
[AttTableVOInfo(typeof(GenAiTemplatesAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge })]
public class GenAiTemplatesVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
GenAiTemplatesVO

Properties

FusqlVO

[AttExternalCollection(typeof(FusqlVO))]
public FusqlVO FusqlVO { get; }

Property Value

FusqlVO

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

MapDefCabVO

[AttExternalCollection(typeof(MapDefCabVO))]
public MapDefCabVO MapDefCabVO { get; }

Property Value

MapDefCabVO

RoleVO

[AttExternalCollection(typeof(RoleVO), new string[] { "[PF].[pfstamp]", "[GenAiTemplates].[pfstamp]" })]
public RoleVO RoleVO { get; }

Property Value

RoleVO

UserVO

[AttExternalCollection(typeof(UserVO), new string[] { "[US].[usstamp]", "[GenAiTemplates].[usstamp]" })]
public UserVO UserVO { get; }

Property Value

UserVO

aiModel

This field allows choosing the GPT model

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public GenAiApi.AiModelEnum aiModel { get; set; }

Property Value

GenAiApi.AiModelEnum

aiResponseSize

This field identifies the temperature maded on the question

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public GenAiApi.AiResponseSizeEnum aiResponseSize { get; set; }

Property Value

GenAiApi.AiResponseSizeEnum

aiTemperature

This field identifies the temperature maded on the question

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public GenAiApi.AiTemperatureEnum aiTemperature { get; set; }

Property Value

GenAiApi.AiTemperatureEnum

contextGenAI

This field identifies the context maded

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

Property Value

string

design

Design of the EmailTemplate

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

Property Value

string

entity

Entity name

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

Property Value

string

Remarks

Searchable field.

Field available in the basic search results list.

Mandatory field.

Length 60.

CL

entityName

[AttLocale(typeof(GenAiTemplatesAttInfo), new string[] { "[GenAiTemplates].[entity]" })]
[AttList]
[AttVirtualField]
public string entityName { get; set; }

Property Value

string

genAiTempEntityType

[AttLenght(5)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList(Hidden = true)]
public GenAiApi.GenAiEntityTypeEnum genAiTempEntityType { get; set; }

Property Value

GenAiApi.GenAiEntityTypeEnum

genAiTempReportType

[AttLenght(5)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public GenAiApi.GenAiReportTypeEnum genAiTempReportType { get; set; }

Property Value

GenAiApi.GenAiReportTypeEnum

genaitemplatesStamp

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

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

Property Value

string

inactive

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

Property Value

bool

isListMode

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

Property Value

bool

isToIgnoreContext

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

Property Value

bool

isreadonly

If the Template is "ReadOnly" (i.e. was created by PHC)

[AttPhcOwner(new string[] { "inactive" })]
[AttList(Inactive = true)]
public bool isreadonly { get; set; }

Property Value

bool

Remarks

This field is for PHC internal use only.

name

Name of the Template

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

Property Value

string

pfname

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

Property Value

string

pfstamp

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttIndex]
public string pfstamp { get; set; }

Property Value

string

question

This field identifies the question maded

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

Property Value

string

reportName

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

Property Value

string

reportStamp

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

Property Value

string

roletype

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList(Hidden = true)]
public RoleTypes roletype { get; set; }

Property Value

RoleTypes

roletypename

[AttLenght(60)]
[AttLocale(typeof(GenAiTemplatesAttInfo), new string[] { "[GenAiTemplates].[roletype]" })]
public string roletypename { get; set; }

Property Value

string

usname

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

Property Value

string

usstamp

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttIndex]
[AttList(Hidden = true)]
public string usstamp { get; set; }

Property Value

string

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string