Show / Hide Table of Contents

Class DocTmplRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the DocTmpl table.

Inheritance
System.Object
DocTmplRecordData
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class DocTmplRecordData : Object
Remarks

Please use this class instead of a full DocTmplRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding DocTmplTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

DocTmplRecordData()

Declaration
public DocTmplRecordData()

Fields

Accelerator

Accelerator key code for this template

Declaration
public short Accelerator
Field Value
Type Description
System.Int16

AutoeventId

Document plugin id - where the documents generated from this template are to be stored. Copied to the document.archiveProvider when document is created.

Declaration
public int AutoeventId
Field Value
Type Description
System.Int32

DefaultOref

Processed via tag substitution to give document reference

Declaration
public string DefaultOref
Field Value
Type Description
System.String

DefaultPublishType

Should documents based on this template be published=true? Default state of publish flag on documents.

Declaration
public PublishType DefaultPublishType
Field Value
Type Description
PublishType

Deleted

0 -> record is active 1 -> record is 'deleted' and should not be shown in lists

Declaration
public short Deleted
Field Value
Type Description
System.Int16

Direction

1 = incoming, 2 = outgoing, see EAppntDirection

Declaration
public DocTmplDirection Direction
Field Value
Type Description
DocTmplDirection

DocTmplId

Primary key

Declaration
public int DocTmplId
Field Value
Type Description
System.Int32

EmailSubject

Subject line for document templates that represent an email; template tags are accepted in this item

Declaration
public string EmailSubject
Field Value
Type Description
System.String

Filename

Relative to TemplatePath in SOARC. Plugin specific extref in other doc archives. i.e. Google document URL or Notes id.

Declaration
public string Filename
Field Value
Type Description
System.String

IncludeSignature

If True, signature (mail.htm) should be added at bottom of template when used

Declaration
public short IncludeSignature
Field Value
Type Description
System.Int16

IntentId

What is the intention of this document (used by SAINT)

Declaration
public int IntentId
Field Value
Type Description
System.Int32

InvitationDocType

Type for sending email meeting invitation. Not an invitation type template = 0, New = 1, Changed = 2, Cancelled = 3

Declaration
public DocTmplInvitationType InvitationDocType
Field Value
Type Description
DocTmplInvitationType

LoadTemplateFromPlugin

If nonzero, then this is the ID of the document plugin that should supply the template document file, instead of the default so_arc/template

Declaration
public int LoadTemplateFromPlugin
Field Value
Type Description
System.Int32

MimeType

The MIME type, for Web/Browser use of documents of this type

Declaration
public string MimeType
Field Value
Type Description
System.String

Name

The list item

Declaration
public string Name
Field Value
Type Description
System.String

PrivacyDocType

Indicator that this document template has a functional role, related to privacy/GDPR

Declaration
public DocTmplPrivacyType PrivacyDocType
Field Value
Type Description
DocTmplPrivacyType

QuoteDocType

The role this document plays in the Quote system, if any

Declaration
public DocTmplQuoteType QuoteDocType
Field Value
Type Description
DocTmplQuoteType

Rank

Rank order

Declaration
public short Rank
Field Value
Type Description
System.Int16

RecordType

1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes

Declaration
public DocTmplType RecordType
Field Value
Type Description
DocTmplType

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
System.DateTime

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
System.Int32

RegkeyEdit

Registry key to use for Edit; if blank, we simply ask Windows to do the operation for us

Declaration
public string RegkeyEdit
Field Value
Type Description
System.String

RegkeyOpen

Registry key to use for Open, if blank, we simply ask Windows to do the operation for us

Declaration
public string RegkeyOpen
Field Value
Type Description
System.String

RegkeyPrint

Registry key to use for Print; if blank, we simply ask Windows to do the operation for us

Declaration
public string RegkeyPrint
Field Value
Type Description
System.String

SaveInDb

1 = save document records in DB; otherwise not.

Declaration
public short SaveInDb
Field Value
Type Description
System.Int16

SenderEmailAddress

The email address to use in from field

Declaration
public string SenderEmailAddress
Field Value
Type Description
System.String

SenderEmailMode

Type of sender email setting. Always use senderEmailAddress = 0, Use Our contact = 1, Use Support Associate = 2

Declaration
public SenderMailMode SenderEmailMode
Field Value
Type Description
SenderMailMode

ShowCurrents

If True, A dialog or sidebar will be shown for changing current values on Contact, Person

Declaration
public short ShowCurrents
Field Value
Type Description
System.Int16

Tooltip

Tooltip or other description

Declaration
public string Tooltip
Field Value
Type Description
System.String

Updated

Last updated when in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
System.DateTime

UpdatedAssociateId

Last updated by whom

Declaration
public int UpdatedAssociateId
Field Value
Type Description
System.Int32

UpdatedCount

Number of updates made to this record

Declaration
public short UpdatedCount
Field Value
Type Description
System.Int16

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
DocTmplRecordDataExtensions.ToInsert(DocTmplRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top