Class Contact
Represents a contact
Inheritance
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class Contact : Framework.Extension.UI.IMultiTenantCompatible
Constructors
| Improve this Doc View SourceContact()
Initialize a new contact instance
Declaration
public Contact()
Properties
| Improve this Doc View SourceAdditional01
Gets or sets an additional address/name field
Declaration
public string Additional01 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BankAccounts
Gets a collaction of bank accounts
Declaration
public ICollection<BankAccount> BankAccounts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<BankAccount> |
Birthday
Gets or sets the contact birthday
Declaration
public DateTime? Birthday { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
BusinessHomePage
Gets or sets the business homepage
Declaration
public string BusinessHomePage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Categories
Gets a collection of Categories
Declaration
public ICollection<ContactCategory> Categories { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactCategory> |
CompanyName
Gets or sets the company name
Declaration
public string CompanyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContactId
Gets or sets the unique contact id (pk)
Declaration
public long? ContactId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ContactIdRef
Gets or sets the referencing contact
Declaration
public long? ContactIdRef { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ContactStatusKeyId
Gets or sets the status to the selected contact type
Declaration
public int? ContactStatusKeyId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ContactSubTypeKeyId
Gets or set the contact type
Declaration
public int? ContactSubTypeKeyId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ContactTypeKeyId
Gets or sets the contact main type id
Declaration
public int ContactTypeKeyId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CreateUserId
Gets or sets the create user id of the contact
Declaration
public int CreateUserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DateTimeCreated
Gets or sets the create-date-time of the contact
Declaration
public DateTime? DateTimeCreated { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
DateTimeUpdated
Gets or sets the update date time of the contact
Declaration
public DateTime? DateTimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Department
Gets or sets the department name of the contact
Declaration
public string Department { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DependentContact
Get the parent contact
Declaration
public Contact DependentContact { get; }
Property Value
Type | Description |
---|---|
Contact |
DifferentLocationPhysicalAddress
Gets or sets a different company location physicall address id
Declaration
public PhysicalAddress DifferentLocationPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
PhysicalAddress |
DifferentLocationPhysicalAddressId
Gets or sets a different company location physicall address id
Declaration
public long? DifferentLocationPhysicalAddressId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
DuplicateState
Gets or sets the duplicate state
Declaration
public DuplicateState DuplicateState { get; set; }
Property Value
Type | Description |
---|---|
DuplicateState |
EKSNr
Gets or sets the incomming tax number
Declaration
public string EKSNr { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EnablePhoneResolving
Gets or sets whether phone resolving is enabled or not
Declaration
public bool EnablePhoneResolving { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FirstName
Gets or sets the firstname of the contact
Declaration
public string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FlatAnalysisValues
Gets a collection of flat indicators
Declaration
public ICollection<ContactFlatAnalysisValue> FlatAnalysisValues { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactFlatAnalysisValue> |
FlatAnalysisYearValues
Load yearly flat analysis values
Declaration
public ICollection<ContactFlatAnalysisYearValue> FlatAnalysisYearValues { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactFlatAnalysisYearValue> |
GeoFences
Gets or sets a list of geo-fences
Declaration
public StatefulCollection<GeoFence> GeoFences { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<GeoFence> |
Id
Gets or sets the unique id of the contact
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsDeleted
Gets or sets the is-deleted flag of the contact
Declaration
public bool IsDeleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTempContact
Gets or sets the the flag for temporary contacts
Declaration
public bool IsTempContact { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
JobTitle
Gets or sets the job-title of the contact
Declaration
public string JobTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LastName
Gets or sets the lastname of the contact
Declaration
public string LastName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LetterSalutation
Gets or sets the lettersalutation
Declaration
public string LetterSalutation { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LetterTitle
Gets or sets the letter title
Declaration
public string LetterTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MatchCode
Gets or sets the matchCode
Declaration
public string MatchCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NickName
Gets or sets the nickname of the contact
Declaration
public string NickName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OpeningHours
Gets the opening hours
Declaration
public ICollection<OpeningHour> OpeningHours { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<OpeningHour> |
PersonalAccounts
Gets a stateful collection of PersonalAccount
Declaration
public ICollection<PersonalAccount> PersonalAccounts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<PersonalAccount> |
PhotoBlob
Gets or sets the photo blob
Declaration
public byte[] PhotoBlob { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
PhotoBlobGuid
Gets or sets the blobguid of the profile picutre
Declaration
public Guid? PhotoBlobGuid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
PhysicalAddresses
Gets a stateful collection of physical addresses
Declaration
public StatefulCollection<PhysicalAddress> PhysicalAddresses { get; protected set; }
Property Value
Type | Description |
---|---|
StatefulCollection<PhysicalAddress> |
PortCode
Declaration
public string PortCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrimaryPhysicalAddress
Gets or sets the primary address of the contact
Declaration
public PhysicalAddress PrimaryPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
PhysicalAddress |
ReadOnlyReferencedContacts
Gets a list of referenced contacts
Declaration
public IList<Contact> ReadOnlyReferencedContacts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Contact> |
Remark
Gets or sets a general remark value
Declaration
public string Remark { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RepresentativeGroup
Gets or sets the represnetative group instance. Will be load when used
Declaration
public RepresentativeGroup RepresentativeGroup { get; set; }
Property Value
Type | Description |
---|---|
RepresentativeGroup |
RepresentativeGroupGuid
Gets or sets a representative group id
Declaration
public Guid? RepresentativeGroupGuid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Salutation
Gets or sets the salutation (mr, mrs, ...)
Declaration
public string Salutation { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SelectedTenant
Gets or sets the currently selected tenant
Declaration
public OrganizationTenant SelectedTenant { get; set; }
Property Value
Type | Description |
---|---|
OrganizationTenant |
SendNewsletter
Gets or sets whether this contact should get newsletter information or not
Declaration
public bool SendNewsletter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SubType
Gets or sets the contact sub type
Declaration
public ContactSubType SubType { get; set; }
Property Value
Type | Description |
---|---|
ContactSubType |
SubTypeState
Gets or sets the type state by Simplic.PlugIn.SAC.Contact.Contact.contactStatusKeyId
Declaration
public ContactSubTypeState SubTypeState { get; set; }
Property Value
Type | Description |
---|---|
ContactSubTypeState |
TaxId
Gets or sets the tax-id of the contact
Declaration
public string TaxId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TenantId
Gets or sets the tenant id
Declaration
public Guid TenantId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Tenants
Gets or sets all available tenants
Declaration
public ObservableCollection<OrganizationTenant> Tenants { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<OrganizationTenant> |
Title
Gets or sets the title of the contact (Prof. Dr., ...)
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets the contact type
Declaration
public ContactType Type { get; set; }
Property Value
Type | Description |
---|---|
ContactType |
UpdateUserId
Gets or sets the user-id of the update user
Declaration
public int UpdateUserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserFunction
Gets or sets the userfunction (in the branch/company) of the contact
Declaration
public string UserFunction { get; set; }
Property Value
Type | Description |
---|---|
System.String |
WIdNr
Gets or sets the contact WIdNr
Declaration
public string WIdNr { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Zones
Gets or sets the zones
Declaration
public StatefulCollection<ZoneGroupContactAssignment> Zones { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<ZoneGroupContactAssignment> |
Methods
| Improve this Doc View SourceLoadBankAccounts()
Load all bank accounts
Declaration
public ICollection<BankAccount> LoadBankAccounts()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<BankAccount> | Stateful-collection of bank accounts connected with this contact |
LoadCategories()
Load all contact categories
Declaration
public ICollection<ContactCategory> LoadCategories()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactCategory> | Stateful-collection of categories connected with this contact |
LoadFlatAnalysisValues()
Load all flat indicators
Declaration
public ICollection<ContactFlatAnalysisValue> LoadFlatAnalysisValues()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactFlatAnalysisValue> | Stateful-collection of bank accounts connected with this contact |
LoadFlatAnalysisYearValues()
Load all flat indicators
Declaration
public ICollection<ContactFlatAnalysisYearValue> LoadFlatAnalysisYearValues()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<ContactFlatAnalysisYearValue> | Stateful-collection of bank accounts connected with this contact |
LoadGeoFences()
Load geo-fences
Declaration
public StatefulCollection<GeoFence> LoadGeoFences()
Returns
Type | Description |
---|---|
StatefulCollection<GeoFence> | Statful-collection of geo fences |
LoadOpeningHours()
Declaration
public ICollection<OpeningHour> LoadOpeningHours()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<OpeningHour> |
LoadPersonalAccounts()
Load all personal accounts
Declaration
public ICollection<PersonalAccount> LoadPersonalAccounts()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<PersonalAccount> | Stateful-collection of personal accounts connected with this contact |
LoadPhysicalAddresses()
Load all physical addresses
Declaration
public ICollection<PhysicalAddress> LoadPhysicalAddresses()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<PhysicalAddress> | Stateful-collection of physical addresses connected with this contact |
LoadReferencedContacts(Boolean)
Load all referencing contacts. For example personal company contacts
Declaration
public ICollection<Contact> LoadReferencedContacts(bool forceUpdate = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | forceUpdate | Forces collection to update |
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<Contact> | Stateful-collection of referencing contacts |
LoadZones()
Loads all zones
Declaration
public StatefulCollection<ZoneGroupContactAssignment> LoadZones()
Returns
Type | Description |
---|---|
StatefulCollection<ZoneGroupContactAssignment> |