private void CopyChageType(OChangeType source, ChangeTypeObjWrapper target) { target.Id = source.Id; if (this.IsEditMode) { target.Code = source.Code; target.Name = source.Name; } }
public void SetChangeType(OChangeType chgType) { _edtChangeType = chgType; if (_isEditMode) { this.CreatedUser = chgType.CrtUsrName; this.CreatedDateTime = chgType.CrtDateTime.ToString("dd/MM/yyyy hh:mm:ss tt"); this.LastModifiedUser = chgType.MdfUsrName; this.LastModifiedDateTime = chgType.MdfDateTime.ToString("dd/MM/yyyy hh:mm:ss tt"); } if (this.WrapperObj != null) { this.WrapperObj.ErrorsChanged -= RaiseCanExecuteChanged; this.WrapperObj.Save -= OnSave; } this.WrapperObj = new ChangeTypeObjWrapper(); this.WrapperObj.ErrorsChanged += RaiseCanExecuteChanged; this.WrapperObj.Save += OnSave; this.WrapperObj.IsCodeFocused = true; CopyChageType(chgType, this.WrapperObj); }
private void UpdateChangeType(ChangeTypeObjWrapper source, OChangeType target) { target.Code = source.Code; target.Name = source.Name; }
public void ClearChangeType() { _edtChangeType = null; _changeType = null; }