Class AnexosVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Entity representing Attachments.
[AttTable("Anexos", 20220611)]
[AttTableOrderBy("usrdata,usrhora", "D,D")]
[AttTableVOInfo(typeof(AnexosAttInfo))]
[AttTableProducts(new Products[] { Products.Documents })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.AddOnNotCustomizable, TableFlags.NotUseHashTag })]
[AttTableMaintenance(typeof(AnexosMaintenance))]
public class AnexosVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
- Inheritance
-
AnexosVO
Remarks
Stores information about the files attached to the application.
This attachment table stores information concerning the type of attached file, Current category and uses the AnexosBean table to save the attached physical file. The file can be attached, being included in the database, or registers only the URL.
Properties
AppConfigVO
[AttExternalCollection(typeof(AppConfigVO), new string[] { "appconfigstamp", "appconfigstamp" })]
public AppConfigVO AppConfigVO { get; }
Property Value
FiscallyRelevant
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool FiscallyRelevant { get; set; }
Property Value
Original
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool Original { get; set; }
Property Value
TabaxVO
[AttExternalCollection(typeof(TabaxVO), new string[] { "[Anexos].[oritable]", "[Tabax].[tabcod]", "[Anexos].[docid]", "[Tabax].[docid]" })]
public TabaxVO TabaxVO { get; }
Property Value
ZipArquivoDigital
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool ZipArquivoDigital { get; set; }
Property Value
anexosstamp
Single registration field, used to link others to this entity.
[AttLenght(25)]
public string anexosstamp { get; set; }
Property Value
Remarks
This field uniquely identifies the record (primary key by default).
Length 25.
bytefile
[AttVirtualField]
public AnexosBeanVO bytefile { get; set; }
Property Value
cloudfolderpath
cloudfolderpath
Folder path from Cloud upload
[AttLenght(200)]
[AttHidden]
public string cloudfolderpath { get; set; }
Property Value
Remarks
Length 200 .
descricao
Attachment description.
[AttFieldType(AttFieldType.InputTypes.memo)]
public string descricao { get; set; }
Property Value
Remarks
Long text field.
docid
Type of Document.
[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal docid { get; set; }
Property Value
Remarks
Contains the number of the category of the document type.
Length 3 .
docname
[AttLenght(40)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string docname { get; set; }
Property Value
fileLenght
File length.
[AttLenght(12, 3)]
[AttList]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public decimal fileLenght { get; set; }
Property Value
Remarks
Lenght 12.
fileType
File extension.
[AttLenght(30)]
public string fileType { get; set; }
Property Value
Remarks
Length 30.
fname
Attached file name.
[AttLenght(150)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string fname { get; set; }
Property Value
Remarks
Length 150.
fromPrint
Identifies if document posted in Accounting.
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool fromPrint { get; set; }
Property Value
Remarks
Non Duplicable Field.
gruaxname
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttList]
public string gruaxname { get; set; }
Property Value
gruaxstamp
Connection field to the table GruaxVO.
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string gruaxstamp { get; set; }
Property Value
Remarks
Connection Field to the Categories table, identifies the Category that will be associated with this attachment.
Length 25 .
grupo
Category.
[AttVirtualField]
public string grupo { get; set; }
Property Value
Remarks
Contains the category name to which the attachment belongs. This category is defined by the field gruaxstamp.
Virtual field.
haveViewAccess
Field that indicates whether this attachment belongs to a Category which user has access to Insert, or if it was created by the user.
[AttVirtualField]
[AttHidden]
public bool haveViewAccess { get; }
Property Value
- bool
True if user has access to Insert the Category of this attachment, False otherwise.
Remarks
Virtual field.
Field not available for the user.
havewriteaccess
Field that indicates whether this attachment belongs to a Category which user has access to Insert, or if it was created by the user.
[AttVirtualField]
public bool havewriteaccess { get; set; }
Property Value
- bool
True if user has access to Insert the Category of this attachment, False otherwise.
Remarks
Virtual field.
Field not available for the user.
isSeriesAvailable
[AttVirtualField]
[AttHidden]
public bool isSeriesAvailable { get; set; }
Property Value
oldfname
Attached file name.
[AttVirtualField]
public string oldfname { get; set; }
Property Value
Remarks
Length 150.
oritable
Entity code.
[AttLenght(80)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string oritable { get; set; }
Property Value
Remarks
Length 80.
Indicates the entity code, that corresponds to the table name.
passw
Password of attachment.
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string passw { get; set; }
Property Value
Remarks
Password of the attached file, will be requested to users who try to consult the file.
Non Duplicable Field.
Lenght 30.
recstamp
Connection field to the original registration, which belongs to the entity represented in the field oritable.
[AttForeignKey(DependsOnRecord = true, Field = "tabnm")]
[AttLenght(25)]
public string recstamp { get; set; }
Property Value
Remarks
Length 25 .
It corresponds for example to the field clstamp of a ClVO, if the value of the field is oritable is "CL".
resumo
Summary
[AttLenght(500)]
[AttLogInfo(0)]
[AttList]
[AttMandatory]
public string resumo { get; set; }
Property Value
Remarks
Name given to the attachment.
Length 80.
storageguid
Name of attachment type.
[AttLenght(50)]
[AttFieldType(AttFieldType.InputTypes.string)]
public string storageguid { get; set; }
Property Value
storageplace
Attachment type.
[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public StoragePlace storageplace { get; set; }
Property Value
storageplacename
Name of attachment type.
[AttLenght(50)]
[AttLocale(typeof(AnexosAttInfo), new string[] { "[Anexos].[storageplace]" })]
public string storageplacename { get; set; }
Property Value
tabnm
Name of the entity.
[AttVirtualField]
[AttLocale(typeof(AnexosAttInfo), new string[] { "[Anexos].[oritable]" })]
[AttList]
public string tabnm { get; set; }
Property Value
Remarks
Contains the translated table name to which the file will be attached. This connection will be made through the field oritable.
Virtual field.
tipo
Attachment type.
[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public Anexostypes tipo { get; set; }
Property Value
Remarks
Sets the attachment type, can exist physically on the database or na external URL.
Length 1.
tipoName
Name of Attachment type.
[AttLenght(50)]
[AttLocale(typeof(AnexosAttInfo), new string[] { "[Anexos].[tipo]" })]
[AttList]
public string tipoName { get; set; }
Property Value
uniqueid
Unique identifier of this Attachment.
[AttLenght(80)]
[AttHidden]
[AttFieldType(AttFieldType.InputTypes.integer)]
public string uniqueid { get; set; }
Property Value
Remarks
Length 80.
Field not available for the user.