Class ContactViewModel
Base contact ViewModel
Inheritance
Implements
Namespace: Simplic.PlugIn.SAC.Contact.UI
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class ContactViewModel : ExtendableViewModel
Constructors
| Improve this Doc View SourceContactViewModel(Contact)
Initialize new contact viewmodel
Declaration
public ContactViewModel(Contact contact)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | Contact instance |
Properties
| Improve this Doc View SourceAddBank
Gets or set sthe bank to add
Declaration
public ICommand AddBank { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AddBankAccount
Gets or sets the command to add a new bank account
Declaration
public ICommand AddBankAccount { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AddCategory
Gets or sets the command to add a new contact category
Declaration
public ICommand AddCategory { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AddDependingContact
Gets or sets a command for adding a depending contact
Declaration
public ICommand AddDependingContact { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AddDependingContactCommand
Gets or sets the command that add a comment to a depending contact
Declaration
public ICommand AddDependingContactCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
Additional01
Gets or sets an additional address/name field
Declaration
public string Additional01 { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AddonViewModel
Gets or sets the contact addon viewmodel
Declaration
public ContactAddonViewModel AddonViewModel { get; set; }
Property Value
Type | Description |
---|---|
ContactAddonViewModel |
AddOpeningHour
Gets the command to add opening hours
Declaration
public ICommand AddOpeningHour { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AddPhysicalAddress
Declaration
public ICommand AddPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
AllCategories
Gets a list of selectable categories
Declaration
public ObservableCollection<ContactCategoryViewModel> AllCategories { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ContactCategoryViewModel> |
AnalysisData
Gets the contact analysis data viewmodel
Declaration
public ContactAnalysisDataViewModel AnalysisData { get; }
Property Value
Type | Description |
---|---|
ContactAnalysisDataViewModel |
BankAccounts
Gets a list of bank accounts
Declaration
public ObservableCollection<BankAccountViewModel> BankAccounts { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<BankAccountViewModel> |
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 |
CalculateIBAN
Gets or sets the command to calculate the iban
Declaration
public ICommand CalculateIBAN { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
CallSelectedReferencedContact
Gets or sets the command to get a list of phone numbers of a referenced contact
Declaration
public ICommand CallSelectedReferencedContact { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
Categories
Gets all categories
Declaration
public ObservableCollection<ContactCategoryViewModel> Categories { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ContactCategoryViewModel> |
CategoryFilteringBehaviour
Gets the category filtering behaviour
Declaration
public ReturnAllOnEmptySearchtextFilteringBehavior CategoryFilteringBehaviour { get; set; }
Property Value
Type | Description |
---|---|
ReturnAllOnEmptySearchtextFilteringBehavior |
CheckVatIdCommand
Gets or sets the relay-command check-vat-id.
Declaration
public RelayCommand CheckVatIdCommand { get; set; }
Property Value
Type | Description |
---|---|
RelayCommand |
CompanyName
Gets or sets the company name
Declaration
public string CompanyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContactConverterFactories
Gets contact converter factories
Declaration
public IList<IContactConverterFactory> ContactConverterFactories { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IContactConverterFactory> |
ContactId
Gets the Contact id
Declaration
public long? ContactId { get; }
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> |
DaysOfWeek
Gets the DaysOfWeek
Declaration
public ObservableCollection<DayOfWeekViewModel> DaysOfWeek { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<DayOfWeekViewModel> |
DeleteOpeningHour
Gets the command to delete opening hours
Declaration
public ICommand DeleteOpeningHour { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
Department
Gets or sets the department name of the contact
Declaration
public string Department { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DependentContact
Gets dependent account if its exists, else return the current object
Declaration
public ContactViewModel DependentContact { get; }
Property Value
Type | Description |
---|---|
ContactViewModel |
DifferentLocationPhysicalAddress
Gets or sets the location physical address
Declaration
public PhysicalAddressViewModel DifferentLocationPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
PhysicalAddressViewModel |
DifferentLocationPhysicalAddressId
Gets or sets the different physical address id
Declaration
public long? DifferentLocationPhysicalAddressId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
EditReferencedContact
Gets or sets the command to edit a referenced contact
Declaration
public ICommand EditReferencedContact { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
EKSNr
Gets or sets the incomming tax number
Declaration
public string EKSNr { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EMailAddressTypes
Gets or sets all available email addresses
Declaration
public ObservableCollection<EMailAddressType> EMailAddressTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<EMailAddressType> |
EmailSelectedReferencedContact
Gets or sets the command to email a referenced contact
Declaration
public ICommand EmailSelectedReferencedContact { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
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 |
HasSelectedAddress
Gets whether a physical address is selected or not
Declaration
public bool HasSelectedAddress { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasSelectedBank
Gets whether a Bank is selected or not
Declaration
public bool HasSelectedBank { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
Gets the contact guid
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 |
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 field in Contact class through MatchCode property
Declaration
public string MatchCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Model
Gets the contact model instance
Declaration
public Contact Model { get; }
Property Value
Type | Description |
---|---|
Contact |
NickName
Gets or sets the nickname of the contact
Declaration
public string NickName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NoPrimaryPhysicalAddressView
Gets a view which shoes all addresses besides the primary address
Declaration
public CollectionViewSource NoPrimaryPhysicalAddressView { get; }
Property Value
Type | Description |
---|---|
System.Windows.Data.CollectionViewSource |
OpenBusinessHomepage
Gets or sets the command to open the business homepage
Declaration
public ICommand OpenBusinessHomepage { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
OpeningHours
Gets the opening hours
Declaration
public ObservableCollection<OpeningHourViewModel> OpeningHours { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<OpeningHourViewModel> |
PhoneCallContactId
Gets the instance data guid of the contact to start the call with. If the contact has a dependent contact and ResolveOmpanyOnCall is set to true, the company contact will be used
Declaration
public Guid PhoneCallContactId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
PhoneNumberTypes
Gets or sets all available phone number types
Declaration
public ObservableCollection<PhoneNumberType> PhoneNumberTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<PhoneNumberType> |
PhysicalAddresses
Gets all physical addresses.
Declaration
public ObservableCollection<PhysicalAddressViewModel> PhysicalAddresses { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<PhysicalAddressViewModel> |
PoiFieldColor
Gets the POI Field Color
Declaration
public SolidColorBrush PoiFieldColor { get; }
Property Value
Type | Description |
---|---|
System.Windows.Media.SolidColorBrush |
PrimaryPhysicalAddress
Gets or sets the primary physical address
Declaration
public PhysicalAddressViewModel PrimaryPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
PhysicalAddressViewModel |
ProfilePhoto
Gets the contact-photo as bitmap
Declaration
public BitmapImage ProfilePhoto { get; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapImage |
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 |
RemoveBankAccount
Gets or sets the command to remove a selected bank account
Declaration
public ICommand RemoveBankAccount { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
RemovePhysicalAddress
Gets or sets the command for removing a physical address
Declaration
public ICommand RemovePhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
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 |
SelectedBankAccount
Gets the currently selected bank account
Declaration
public BankAccountViewModel SelectedBankAccount { get; set; }
Property Value
Type | Description |
---|---|
BankAccountViewModel |
SelectedPhysicalAddress
Gets or sets the currently selected physical address
Declaration
public PhysicalAddressViewModel SelectedPhysicalAddress { get; set; }
Property Value
Type | Description |
---|---|
PhysicalAddressViewModel |
SelectedReferencedContact
Gets or sets the currently selected referenced contact
Declaration
public Contact SelectedReferencedContact { get; set; }
Property Value
Type | Description |
---|---|
Contact |
SelectedSubType
Gets the currently selected subtype
Declaration
public ContactSubType SelectedSubType { get; set; }
Property Value
Type | Description |
---|---|
ContactSubType |
SelectedSubTypeState
Gets the currently selected subtype
Declaration
public ContactSubTypeState SelectedSubTypeState { get; set; }
Property Value
Type | Description |
---|---|
ContactSubTypeState |
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 |
SubTypes
Gets or sets a list of available sub types
Declaration
public ObservableCollection<ContactSubType> SubTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ContactSubType> |
SubTypeState
Gets or sets the type state by
Declaration
public ContactSubTypeState SubTypeState { get; set; }
Property Value
Type | Description |
---|---|
ContactSubTypeState |
SubTypeStates
Gets or sets SubTypeState
Declaration
public ObservableCollection<ContactSubTypeState> SubTypeStates { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<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 a list of 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 |
WindowTitle
Gets the window title
Declaration
public string WindowTitle { get; }
Property Value
Type | Description |
---|---|
System.String |
Zones
Gets or sets the zones
Declaration
public ObservableCollection<ZoneGroupContactAssignmentViewModel> Zones { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ZoneGroupContactAssignmentViewModel> |
Methods
| Improve this Doc View SourceCheckVatId(Object)
A method which it use for vat-id check.
Declaration
public async void CheckVatId(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | A param which is important for the relay-command. |
Delete(WindowDeleteEventArg)
Delete the current contact in the database Window delete arguments
Declaration
public virtual void Delete(WindowDeleteEventArg e)
Parameters
Type | Name | Description |
---|---|---|
WindowDeleteEventArg | e |
GetAddonPrimaryKey()
Get the current primary key for the addon system
Declaration
public object GetAddonPrimaryKey()
Returns
Type | Description |
---|---|
System.Object |
Save(WindowSaveEventArg)
Save the current contact in the database Window save arugments
Declaration
public virtual void Save(WindowSaveEventArg e)
Parameters
Type | Name | Description |
---|---|---|
WindowSaveEventArg | e |