Class DocumentTemplateInfo
Information about the document template. Passed to plugins to avoid coupling them directly
to database schema.
Inheritance
DocumentTemplateInfo
Assembly: SoDataBase.dll
Syntax
public sealed class DocumentTemplateInfo : IDocumentTemplateInfo
Constructors
DocumentTemplateInfo(DocTmplRow)
Declaration
public DocumentTemplateInfo(DocTmplRow documentTemplateRow)
Parameters
Type |
Name |
Description |
DocTmplRow |
documentTemplateRow |
|
DocumentTemplateInfo(Int32)
Declaration
public DocumentTemplateInfo(int docTemplId)
Parameters
Type |
Name |
Description |
Int32 |
docTemplId |
|
DocumentTemplateInfo(Int32, String, Int32, String, Boolean, String, String)
Declaration
public DocumentTemplateInfo(int id, string name, int rank, string tooltip, bool isDeleted, string fileName, string mimeType)
Parameters
Properties
DocumentStoredInPluginId
The id of the document plugin that handles the document generated from the template.
i.e. the destination plugin. Stored in DocTmpl.AutoEventId in the database.
Declaration
public int DocumentStoredInPluginId { get; }
Property Value
ExternalReference
Physical name of the document template. URL or Filename of the content. Stored in database as DocTmpl.Filename
Declaration
public string ExternalReference { get; }
Property Value
Id
Primary key of the document template.
Declaration
Property Value
IsDeleted
True, if the document is deleted.
Declaration
public bool IsDeleted { get; }
Property Value
MimeType
Mime Type of the document template. Set by the document plugin during template creation.
Declaration
public string MimeType { get; }
Property Value
Name
Display Name of the document template (in lists).
Declaration
public string Name { get; }
Property Value
Rank
Order for the document template.
Declaration
Property Value
Registered
When the template was created.
Declaration
public DateTime Registered { get; }
Property Value
TemplateStoredInPluginId
The id of the document plugin that handles the document template.
i.e. the source plugin. Stored in DocTmpl.LoadTemplateFromPlugin in the database.
Declaration
public int TemplateStoredInPluginId { get; }
Property Value
Tooltip description for the document template
Declaration
public string Tooltip { get; }
Property Value
Updated
When the template was last updated.
Declaration
public DateTime Updated { get; }
Property Value
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)