Employees

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get All Employees. Active and Inactive ones. Returns List(Of Employee)
    ''' In case of error returns: new List(Of Employee)
    ''' </summary>
    '''  <param name="ActiveStatus">qbActiveStatus enum. Values (ActiveOnly [DEFAULT], InactiveOnly, All[set])</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetAllEmployees(Optional ByVal ActiveStatus As qbActiveStatus = qbActiveStatus.All, Optional ByRef errorMsg As String = "") As List(Of Employee)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get Employees By FullNames. Returns List(Of Employee)
    ''' In case of error returns: new List(Of Employee)
    ''' </summary>
    ''' <param name="FullNames">FullNames of the Employees. If it one FullName, just add one FullName to the List(Of String)</param>
    ''' <param name="ActiveStatus">qbActiveStatus enum. Values (ActiveOnly [DEFAULT], InactiveOnly, All)</param>
    ''' <param name="MaxReturned">max number of records to get</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetEmployeesByFullNames(ByVal FullNames As List(Of String), Optional ByVal ActiveStatus As qbActiveStatus = qbActiveStatus.ActiveOnly, Optional ByVal MaxReturned As Integer = 0, Optional ByRef errorMsg As String = "") As List(Of Employee)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get Employees By DateRange. Returns List(Of Employee)
    ''' In case of error returns: new List(Of Employee)
    ''' </summary>
    ''' <param name="FromModifiedDate">FromDate</param>
    ''' <param name="ToModifiedDate">ToDate</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetEmployeesByDateRange(ByVal FromModifiedDate As DateTime, ByVal ToModifiedDate As DateTime, Optional ByRef errorMsg As String = "") As List(Of Employee)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get Employees By Name. Returns List(Of Employee)
    ''' In case of error returns: new List(Of Employee)
    ''' </summary>
    ''' <param name="Name">Employee Name</param>
    ''' <param name="MatchCriterion">qbMatchCriterion enum. Values(StartsWith, Contains, EndsWith)</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetEmployeeByName(ByVal Name As String, ByVal MatchCriterion As qbMatchCriterion, Optional ByRef errorMsg As String = "") As List(Of Employee)

    ''' <summary>
    ''' QuickBooks connection needs to be open first.
    ''' Get Employees By NameRange. Returns List(Of Employee)
    ''' In case of error returns: new List(Of Employee)
    ''' </summary>
    ''' <param name="FromName">FromName value</param>
    ''' <param name="ToName">ToName value.</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function GetEmployeeByNameRange(ByVal FromName As String, ByVal ToName As String, Optional ByRef errorMsg As String = "") As List(Of Employee)

    ''' <summary>
    ''' It will delete the record from QuickBooks.
    ''' Once deleted, there is no way to retrieve
    ''' </summary>
    ''' <param name="ListID">to add new records to QB set ListID to a temporal one</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function DeleteEmployeeFromQuickBooksByListID(ByVal ListID As String, Optional ByRef errorMsg As String = "") As Boolean

    ''' <summary>
    ''' It will add a new Employee to EmployeeList.
    ''' </summary>
    ''' <param name="_ListID">to add new records to QB set ListID to a temporal one</param>
    ''' <param name="_Operation">set to empty, update, add, or delete</param>
    ''' <param name="errorMsg">returned error message</param>
Public Function AddToEmployeeList(Optional ByVal _ListID As String = "", Optional ByVal _TimeCreated As String = "", Optional ByVal _TimeModified As String = "", Optional ByVal _EditSequence As String = "", Optional ByVal _Name As String = "", Optional ByVal _IsActive As String = "", Optional ByVal _Salutation As String = "", Optional ByVal _FirstName As String = "", Optional ByVal _MiddleName As String = "", Optional ByVal _LastName As String = "", Optional ByVal _Suffix As String = "", Optional ByVal _JobTitle As String = "", Optional ByVal _SupervisorRef_ListID As String = "", Optional ByVal _SupervisorRef_FullName As String = "", Optional ByVal _TargetBonus As String = "", Optional ByVal _Department As String = "", Optional ByVal _Description As String = "", Optional ByVal _EmployeeAddress_Addr1 As String = "", Optional ByVal _EmployeeAddress_Addr2 As String = "", Optional ByVal _EmployeeAddress_City As String = "", Optional ByVal _EmployeeAddress_State As String = "", Optional ByVal _EmployeeAddress_PostalCode As String = "", Optional ByVal _EmployeeAddress_Country As String = "", Optional ByVal _PrintAs As String = "", Optional ByVal _Phone As String = "", Optional ByVal _Mobile As String = "", Optional ByVal _Pager As String = "", Optional ByVal _PagerPIN As String = "", Optional ByVal _AltPhone As String = "", Optional ByVal _Fax As String = "", Optional ByVal _SSN As String = "", Optional ByVal _Email As String = "", Optional ByVal _EmergContactPrimaryName As String = "", Optional ByVal _EmergContactPrimaryValue As String = "", Optional ByVal _EmergContactPrimaryRelation As String = "", Optional ByVal _EmergContactSecondaryName As String = "", Optional ByVal _EmergContactSecondaryValue As String = "", Optional ByVal _EmergContactSecondaryRelation As String = "", Optional ByVal _EmployeeType As String = "", Optional ByVal _Gender As String = "", Optional ByVal _HiredDate As String = "", Optional ByVal _ReleasedDate As String = "", Optional ByVal _BirthDate As String = "", Optional ByVal _AccountNumber As String = "", Optional ByVal _Notes As String = "", Optional ByVal _BillingRateRef_ListID As String = "", Optional ByVal _BillingRateRef_FullName As String = "", Optional ByVal _PartOrFullTime As String = "", Optional ByVal _Exempt As String = "", Optional ByVal _KeyEmployee As String = "", Optional ByVal _OriginalHireDate As String = "", Optional ByVal _AdjustedServiceDate As String = "", Optional ByVal _USCitizen As String = "", Optional ByVal _Ethnicity As String = "", Optional ByVal _Disabled As String = "", Optional ByVal _DisabilityDesc As String = "", Optional ByVal _OnFile As String = "", Optional ByVal _WorkAuthExpireDate As String = "", Optional ByVal _USVeteran As String = "", Optional ByVal _MilitaryStatus As String = "", Optional ByVal _PayPeriod As String = "", Optional ByVal _ClassRef_ListID As String = "", Optional ByVal _ClassRef_FullName As String = "", Optional ByVal _ClearEarnings As String = "", Optional ByVal _IsUsingTimeDataToCreatePaychecks As String = "", Optional ByVal _UseTimeDataToCreatePaychecks As String = "", Optional ByVal _SH_HoursAvailable As String = "", Optional ByVal _SH_AccrualPeriod As String = "", Optional ByVal _SH_HoursAccrued As String = "", Optional ByVal _SH_MaximumHours As String = "", Optional ByVal _SH_IsResettingHoursEachNewYear As String = "", Optional ByVal _SH_HoursUsed As String = "", Optional ByVal _SH_AccrualStartDate As String = "", Optional ByVal _VH_HoursAvailable As String = "", Optional ByVal _VH_AccrualPeriod As String = "", Optional ByVal _VH_HoursAccrued As String = "", Optional ByVal _VH_MaximumHours As String = "", Optional ByVal _VH_IsResettingHoursEachNewYear As String = "", Optional ByVal _VH_HoursUsed As String = "", Optional ByVal _VH_AccrualStartDate As String = "", Optional ByVal _CustomField1 As String = "", Optional ByVal _CustomField2 As String = "", Optional ByVal _CustomField3 As String = "", Optional ByVal _CustomField4 As String = "", Optional ByVal _CustomField5 As String = "", Optional ByVal _CustomField6 As String = "", Optional ByVal _CustomField7 As String = "", Optional ByVal _CustomField8 As String = "", Optional ByVal _CustomField9 As String = "", Optional ByVal _CustomField10 As String = "", Optional ByVal _CustomField11 As String = "", Optional ByVal _CustomField12 As String = "", Optional ByVal _CustomField13 As String = "", Optional ByVal _CustomField14 As String = "", Optional ByVal _CustomField15 As String = "", Optional ByVal _ExternalGUID As String = "", Optional ByVal _UserData As String = "", Optional ByVal _Operation As String = "", Optional ByRef errorMsg As String = "") As Employee

Powered by BetterDocs