Click or drag to resize

clsUpdateEmployeeUpdate Method

Update the Employee data. Use First the Load method to initzalize all fields.

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public bool Update(
	MPInterface oInterface
)

Parameters

oInterface
Type: MARIInterfaceMPInterface

Return Value

Type: Boolean
Returns ture 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