Click or drag to resize

clsUpdateEmployee Class

Class to update MARIProject employee data.

For the descriptions of the properties see also clsImportEmployee.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsUpdateEmployee

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsUpdateEmployee

The clsUpdateEmployee type exposes the following members.

Constructors
  NameDescription
Public methodclsUpdateEmployee
Initializes a new instance of the clsUpdateEmployee class
Top
Properties
  NameDescription
Public propertyEmployeeNumber
NVARCHAR(20) Unique Employee ID formatted in the settings of MARIProject Example "E200"
Top
Methods
  NameDescription
Public methodCode exampleLoad
Load the Employee from MARIProject Database to update the properties.
Public methodCode exampleUpdate
Update the Employee data. Use First the Load method to initzalize all fields.
Public methodValidate
Validates the Employee object
Top
Fields
  NameDescription
Public fieldAbsenceInternalProject
Absence (internal project) projectnumber
Public fieldAbsenceProject
absence projectnumber
Public fieldAdress
NVARCHAR(50) Like "Dear Sir John Doe"
Public fieldCity
NVARCHAR(50)
Public fieldCountry
NVARCHAR(50) ISO Example (DE,US,UK,FR)
Public fieldCounty
NVARCHAR(100)
Public fieldDateOfBirth
Date of birth
Public fieldDateOfEntry
Beginning date in the company
Public fieldEmail
NVARCHAR(50)
Public fieldEmployeeMemo
Memo field for the employee
Public fieldEmployeeName
NVARCHAR(50) Copount Name
Public fieldExternalKey
NVARCHAR(50) External Key of the employee
Public fieldFamilyName
NVARCHAR(50)
Public fieldFax
NVARCHAR(20)
Public fieldFirstName
NVARCHAR(50) Ddivided Name
Public fieldFlextime
Flextime projectnumber
Public fieldIllnessProject
number of the illness project
Public fieldLeavingDate
Leaving Date
Public fieldMatchcode
NVARCHAR(50) Name for assortment
Public fieldMobile
NVARCHAR(20)
Public fieldoErrors
Contains all Errors
Public fieldPhone
NVARCHAR(20)
Public fieldPrivateFax
NVARCHAR(20)
Public fieldPrivatePhone
NVARCHAR(20)
Public fieldRoundingProject
project number of the rounding project
Public fieldSpecialLeave
special leave projectnumber
Public fieldStandardProject
Projectnumber of the standard employee project
Public fieldStreet
NVARCHAR(10)
Public fieldStreetNo
MPPersonenstamm.Hausnummer NVARCHAR(10)
Public fieldTitle
NVARCHAR(50) Title like "Mr., Mrs..."
Public fieldUnPaidAbsenceProject
absence projectnumber
Public fieldVacationProject
projectnumber of the vacation project
Public fieldZIPCode
NVARCHAR(10) Zipcode
Top
Remarks
Examples
Update Employee Example
MARIInterface.clsUpdateEmployee oEmployee = new MARIInterface.clsUpdateEmployee();
if (oEmployee.Load(oMPInterface, "0007")) {
    oEmployee.Title = "Dr.";
    oEmployee.FirstName = "Carla";
    oEmployee.FamilyName = "Columna";
    oEmployee.Matchcode = "Columna, Carla";

    oEmployee.Street = "Main Street";
    oEmployee.StreetNo = "12";
    oEmployee.City = "Cologne";
    oEmployee.County = "NRW";
    oEmployee.ZIPCode = "50020";
    oEmployee.DateOfBirth = new DateTime(1972, 12, 5);

    if (!oEmployee.Update(oMPInterface)) {
        throw new Exception(oEmployee.oErrors.PrintErrors());
    }
}
See Also