protected override void Bind(Sybase.Persistence.ConnectionProfile profile, System.Data.IDataReader rs) { this.__sistema = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"sistema",0); this.__pedido_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"pedido_CodigoSAP",1); this.__pending = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"pending",2); this.__pendingChange = com.sybase.afx.db.ReaderUtil.GetChar(profile,rs,"pendingChange",3); this.__replayPending = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayPending",4); this.__replayFailure = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayFailure",5); this.__surrogateKey = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"surrogateKey",6); this.__replayCounter = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayCounter",7); this.__disableSubmit = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"disableSubmit",8); _isNew = false; _isDirty = false; if (this.IsPending) { this.SetOriginalState(null); this.__originalStateValid = false; } else { YPF.Comercial.RRCC.SUP.ClienteCabeceraPedido os_1 = new YPF.Comercial.RRCC.SUP.ClienteCabeceraPedido(); os_1.CopyAll(this); this.SetOriginalState(os_1); } }
/// <summary> /// Refresh the mobile business object from database. /// </summary> public void Refresh() { if (!_isNew && !__isOsEntity) { YPF.Comercial.RRCC.SUP.ClienteCabeceraPedido ent = Load(_pk()); CopyAll(ent); if (this.IsPending) { this.SetOriginalState(null); this.__originalStateValid = false; } else { YPF.Comercial.RRCC.SUP.ClienteCabeceraPedido os_1 = new YPF.Comercial.RRCC.SUP.ClienteCabeceraPedido(); os_1.CopyAll(this); this.SetOriginalState(os_1); } _isNew = false; _isDirty = false; } }