public void CopyValues(IDataReader source) { if (source == null) { return; } _provider_base.Record = _record; _record.CopyValues(source); _provider_base.OidAcreedor = _record.Oid; string oid = ((long)(_record.TipoAcreedor + 1)).ToString("00") + "00000" + Format.DataReader.GetInt64(source, "OID").ToString(); _record.Oid = Convert.ToInt64(oid); _provider_base.CopyCommonValues(source); }
protected override void DataPortal_Update() { if (IsDirty) { try { TransporterRecord obj = Session().Get <TransporterRecord>(Oid); obj.CopyValues(Base.Record); Session().Update(obj); } catch (Exception ex) { iQExceptionHandler.TreatException(ex); } } }