Click or drag to resize

clsUpdateEmployeeLoad Method

Load the Employee from MARIProject Database to update the properties.

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.1.0.108
Syntax
public bool Load(
	MPInterface oInterface,
	string EmployeeNumber
)

Parameters

oInterface
Type: MARIInterfaceMPInterface
EmployeeNumber
Type: SystemString
Number of the Employee. Example -> "E014"

Return Value

Type: Boolean
Returns true if successful
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