private void UpdateEmployee(EmployeeObjWrapper source, OEmployee target) { target.EmployeeID = source.EmployeeID; target.GivenName = source.GivenName; target.Surname = source.Surname; target.Fullname = source.Fullname; target.PositionTitle = source.PositionTitle; target.Department = source.Department; target.Function = source.Function; }
private void CopyEmployee(OEmployee source, EmployeeObjWrapper target) { target.Id = source.Id; if (this.IsEditMode) { target.EmployeeID = source.EmployeeID; target.GivenName = source.GivenName; target.Surname = source.Surname; target.Fullname = source.Fullname; target.PositionTitle = source.PositionTitle; target.Department = source.Department; target.Function = source.Function; } }
public void ClearEmployee() { _edtEmployee = null; _Employee = null; }