private void UpdatePclaAppSys(PclaAppSysObjWrapper source, OPclaAppSys target) { target.Code = source.Code; target.Name = source.Name; target.Remark = source.Remark; target.LatestVersion = source.Version; target.TypeCode = source.TypeCode; }
private void CopyPclaAppSys(OPclaAppSys source, PclaAppSysObjWrapper target) { target.Id = source.Id; if (this.IsEditMode) { target.Code = source.Code; target.Name = source.Name; target.Remark = source.Remark; target.Version = source.LatestVersion; target.TypeCode = source.TypeCode; } }
public void SetPclaAppSys(OPclaAppSys pclaAppSys) { _edtPclaAppSys = pclaAppSys; if (_isEditMode) { this.CreatedUser = pclaAppSys.CrtUsrName; this.CreatedDateTime = pclaAppSys.CrtDateTime.ToString("dd/MM/yyyy hh:mm:ss tt"); this.LastModifiedUser = pclaAppSys.MdfUsrName; this.LastModifiedDateTime = pclaAppSys.MdfDateTime.ToString("dd/MM/yyyy hh:mm:ss tt"); } if (this.WrapperObj != null) { this.WrapperObj.ErrorsChanged -= RaiseCanExecuteChanged; this.WrapperObj.Save -= OnSave; } this.WrapperObj = new PclaAppSysObjWrapper(); this.WrapperObj.ErrorsChanged += RaiseCanExecuteChanged; this.WrapperObj.Save += OnSave; this.WrapperObj.IsCodeFocused = true; CopyPclaAppSys(pclaAppSys, this.WrapperObj); }
public void ClearPclaAppSys() { _edtPclaAppSys = null; _pclaAppSys = null; }