protected override void Bind(Sybase.Persistence.ConnectionProfile profile, System.Data.IDataReader rs) { this.__pedido_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"pedido_CodigoSAP",0); this.__pedido_Cuenta = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"pedido_Cuenta",1); this.__pedido_Estado_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"pedido_Estado_CodigoSAP",2); this.__pedido_direccionEntrega = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"pedido_direccionEntrega",3); this.__pedido_FechaCreacion = com.sybase.afx.db.ReaderUtil.GetNullableDate(profile,rs,"pedido_FechaCreacion",4); this.__pedido_HoraCreacion = com.sybase.afx.db.ReaderUtil.GetNullableTime(profile,rs,"pedido_HoraCreacion",5); this.__pedido_FechaAprobacion = com.sybase.afx.db.ReaderUtil.GetNullableDate(profile,rs,"pedido_FechaAprobacion",6); this.__pedido_HoraAprobacion = com.sybase.afx.db.ReaderUtil.GetNullableTime(profile,rs,"pedido_HoraAprobacion",7); this.__pedido_ImporteTotal = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"pedido_ImporteTotal",8); this.__pedido_ImporteFacturado = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"pedido_ImporteFacturado",9); this.__producto_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"producto_CodigoSAP",10); this.__producto_Estado_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"producto_Estado_CodigoSAP",11); this.__producto_Terminal_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"producto_Terminal_CodigoSAP",12); this.__producto_VolumenTotal = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"producto_VolumenTotal",13); this.__producto_VolumenPendiente = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"producto_VolumenPendiente",14); this.__producto_VolumenDespachado = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"producto_VolumenDespachado",15); this.__producto_UnidadMedida = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"producto_UnidadMedida",16); this.__producto_ImporteTotal = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"producto_ImporteTotal",17); this.__entrega_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"entrega_CodigoSAP",18); this.__entrega_NumeroRemito = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"entrega_NumeroRemito",19); this.__entrega_Estado_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"entrega_Estado_CodigoSAP",20); this.__entrega_Patente = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"entrega_Patente",21); this.__entrega_EstadoTransporte_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"entrega_EstadoTransporte_CodigoSAP",22); this.__entrega_FechaPlanificada = com.sybase.afx.db.ReaderUtil.GetNullableDate(profile,rs,"entrega_FechaPlanificada",23); this.__entrega_FechaCarga = com.sybase.afx.db.ReaderUtil.GetNullableDate(profile,rs,"entrega_FechaCarga",24); this.__entrega_FechaInicio = com.sybase.afx.db.ReaderUtil.GetNullableDate(profile,rs,"entrega_FechaInicio",25); this.__pending = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"pending",26); this.__pendingChange = com.sybase.afx.db.ReaderUtil.GetChar(profile,rs,"pendingChange",27); this.__replayPending = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayPending",28); this.__replayFailure = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayFailure",29); this.__surrogateKey = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"surrogateKey",30); this.__replayCounter = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayCounter",31); this.__disableSubmit = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"disableSubmit",32); _isNew = false; _isDirty = false; if (this.IsPending) { this.SetOriginalState(null); this.__originalStateValid = false; } else { YPF.Comercial.RRCC.SUP.ClienteDetallePedido os_1 = new YPF.Comercial.RRCC.SUP.ClienteDetallePedido(); 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.ClienteDetallePedido ent = Load(_pk()); CopyAll(ent); if (this.IsPending) { this.SetOriginalState(null); this.__originalStateValid = false; } else { YPF.Comercial.RRCC.SUP.ClienteDetallePedido os_1 = new YPF.Comercial.RRCC.SUP.ClienteDetallePedido(); os_1.CopyAll(this); this.SetOriginalState(os_1); } _isNew = false; _isDirty = false; } }