Show / Hide Table of Contents

Class Account

Wraps an account.

Inheritance
System.Object
JTObject
HasCustomFieldValues
Account
Inherited Members
HasCustomFieldValues.CustomFieldValues
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Moraware.JobTrackerAPI5
Assembly: JobTrackerAPI5.dll
Syntax
public class Account : HasCustomFieldValues

Constructors

Account(Int32)

Creates an account object intended to be used to update an account.

Declaration
public Account(int accountId_)
Parameters
Type Name Description
System.Int32 accountId_

Identifies an existing account.

Account(String)

Creates an account object intended to be used to create a new account.

Declaration
public Account(string accountName_)
Parameters
Type Name Description
System.String accountName_

Name to use for the new account.

Properties

AccountId

Account id.

Declaration
public int AccountId { get; }
Property Value
Type Description
System.Int32

AccountingId

Accounting Id.

Declaration
public string AccountingId { get; set; }
Property Value
Type Description
System.String

AccountName

Account name.

Declaration
public string AccountName { get; set; }
Property Value
Type Description
System.String

AccountStatus

Indicates the account's status. (This property is essentially interchangeable with the IsInactive property.)

Declaration
public Account.AccountStatusType_Enum AccountStatus { get; set; }
Property Value
Type Description
Account.AccountStatusType_Enum

Address

Account address.

Declaration
public Address Address { get; set; }
Property Value
Type Description
Address

CreateSeparateAddressForJob

Indicates whether a separate address will be created whenever a new job is created for this account.

Declaration
public bool CreateSeparateAddressForJob { get; set; }
Property Value
Type Description
System.Boolean

DefaultJobTemplate

Default Job Template to be used when creating new jobs for this account. (Eclusively operates against the built-in "Job" process.)

Declaration
public JobTemplate DefaultJobTemplate { get; set; }
Property Value
Type Description
JobTemplate

IsInactive

Indicates whether the account has been marked inactive.

Declaration
public bool IsInactive { get; set; }
Property Value
Type Description
System.Boolean

Notes

Notes about the account.

Declaration
public string Notes { get; set; }
Property Value
Type Description
System.String

SalespersonId

Salesperson Id.

Declaration
public int? SalespersonId { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
Remarks

When you set this property, the SalespersonName property is automatically cleared.

SalespersonName

Salesperson name.

Declaration
public string SalespersonName { get; set; }
Property Value
Type Description
System.String
Remarks

When you set this property, the SalespersonId property is automatically cleared.

Methods

GetDefaultJobTemplate(Int32)

Default Job Template to be used when creating new jobs for this account.

Declaration
public JobTemplate GetDefaultJobTemplate(int processId_ = 1)
Parameters
Type Name Description
System.Int32 processId_
Returns
Type Description
JobTemplate

SetDefaultJobTemplate(Int32, JobTemplate)

Default Job Template to be used when creating new jobs for this account.

Declaration
public void SetDefaultJobTemplate(int processId_, JobTemplate value)
Parameters
Type Name Description
System.Int32 processId_
JobTemplate value
Back to top Generated by DocFX