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