clsUpdateEmployee Class |
For the descriptions of the properties see also clsImportEmployee.
Namespace: MARIInterface
The clsUpdateEmployee type exposes the following members.
| Name | Description | |
|---|---|---|
| clsUpdateEmployee | Initializes a new instance of the clsUpdateEmployee class |
| Name | Description | |
|---|---|---|
| EmployeeNumber | NVARCHAR(20) Unique Employee ID formatted in the settings of MARIProject Example "E200" |
| Name | Description | |
|---|---|---|
| Load |
Load the Employee from MARIProject Database to update the properties.
| |
| Update |
Update the Employee data. Use First the Load method to initzalize all fields.
| |
| Validate |
Validates the Employee object
|
| Name | Description | |
|---|---|---|
| AbsenceInternalProject | Absence (internal project) projectnumber | |
| AbsenceProject | absence projectnumber | |
| Adress | NVARCHAR(50) Like "Dear Sir John Doe" | |
| City | NVARCHAR(50) | |
| Country | NVARCHAR(50) ISO Example (DE,US,UK,FR) | |
| County | NVARCHAR(100) | |
| DateOfBirth | Date of birth | |
| DateOfEntry | Beginning date in the company | |
NVARCHAR(50) | ||
| EmployeeMemo | Memo field for the employee | |
| EmployeeName | NVARCHAR(50) Copount Name | |
| ExternalKey | NVARCHAR(50) External Key of the employee | |
| FamilyName | NVARCHAR(50) | |
| Fax | NVARCHAR(20) | |
| FirstName | NVARCHAR(50) Ddivided Name | |
| Flextime | Flextime projectnumber | |
| IllnessProject | number of the illness project | |
| LeavingDate | Leaving Date | |
| Matchcode | NVARCHAR(50) Name for assortment | |
| Mobile | NVARCHAR(20) | |
| oErrors |
Contains all Errors
| |
| Phone | NVARCHAR(20) | |
| PrivateFax | NVARCHAR(20) | |
| PrivatePhone | NVARCHAR(20) | |
| RoundingProject | project number of the rounding project | |
| SpecialLeave | special leave projectnumber | |
| StandardProject | Projectnumber of the standard employee project | |
| Street | NVARCHAR(10) | |
| StreetNo |
MPPersonenstamm.Hausnummer NVARCHAR(10)
| |
| Title | NVARCHAR(50) Title like "Mr., Mrs..." | |
| UnPaidAbsenceProject | absence projectnumber | |
| VacationProject | projectnumber of the vacation project | |
| ZIPCode | NVARCHAR(10) Zipcode |
View: MARIEmployeeMaster: :Table: MPPersonenstamm
View: MARIEmployeesPeriod: :Table: MPPersonenPeriode
View: MARIEmployeesOrganisation: :Table: MPPersonenOrganisation
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()); } }